aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-02-05 18:13:48 +0900
committerOphestra <cat@gensokyo.uk>2026-02-05 18:13:48 +0900
commit0142fc90b0bf966a6ecf4acddc4d25f038ed98b6 (patch)
tree13b6c30b708449026545c71e84a90a69a3ca9fed
parent3c9f7cfcd0d0ecdff108ce12eefc24f236e1c566 (diff)
internal/rosa/make: post-configure script
Required for some projects with broken build scripts. Signed-off-by: Ophestra <cat@gensokyo.uk>
-rw-r--r--internal/rosa/make.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/internal/rosa/make.go b/internal/rosa/make.go
index 8d301356..c1c90bc2 100644
--- a/internal/rosa/make.go
+++ b/internal/rosa/make.go
@@ -41,9 +41,11 @@ type MakeAttr struct {
// Additional environment variables.
Env []string
- // Runs before cmake.
+ // Runs before configure.
ScriptEarly string
- // Runs after cmake.
+ // Runs after configure.
+ ScriptConfigured string
+ // Runs after install.
Script string
// Remain in working directory set up during ScriptEarly.
@@ -151,7 +153,7 @@ func (t Toolchain) NewViaMake(
finalExtra...,
), nil, attr.Env, scriptEarly+`
/usr/src/`+name+`/configure \
- --prefix=/system`+buildFlag+configureFlags+`
+ --prefix=/system`+buildFlag+configureFlags+attr.ScriptConfigured+`
make "-j$(nproc)"`+strings.Join(makeTargets, " ")+`
make DESTDIR=/work install
`+attr.Script, pkg.Path(AbsUsrSrc.Append(