aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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(