diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-03-01 12:11:41 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-03-01 14:41:34 +0900 |
| commit | 51d3df2419e26f15d780c98629a357473855ebd4 (patch) | |
| tree | e5c0e3810156d3f706ed732b67bd5e12b3dfa8f5 /internal/rosa/toybox.go | |
| parent | 1d0fcf3a75bbdbeac24c34f5d55cb5ba347f1782 (diff) | |
internal/rosa/make: split build and check
Doing these together breaks far too many buggy makefiles.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/toybox.go')
| -rw-r--r-- | internal/rosa/toybox.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/internal/rosa/toybox.go b/internal/rosa/toybox.go index aa646db6..329ad736 100644 --- a/internal/rosa/toybox.go +++ b/internal/rosa/toybox.go @@ -19,7 +19,7 @@ func (t Toolchain) newToybox(suffix, script string) pkg.Artifact { SkipConfigure: true, ScriptEarly: ` -LDFLAGS="${LDFLAGS} -static" +LDFLAGS="${LDFLAGS:-''} -static" chmod +w /bin/ ln -rs "$(which bash)" /bin/ || true @@ -37,13 +37,14 @@ make defconfig sed -i \ 's/^CONFIG_TOYBOX_ZHELP=y$/CONFIG_TOYBOX_ZHELP=0/' \ .config - -make "-j$(nproc)" `, ScriptConfigured: script, - CheckName: "USER=cure tests", SkipCheck: t.isStage0(), - ScriptInstall: "PREFIX=/work/system/bin make install_flat", + Check: []string{ + "USER=cure", + "tests", + }, + ScriptInstall: "PREFIX=/work/system/bin make install_flat", Script: ` mkdir -p /work/usr/bin ln -s ../../system/bin/env /work/usr/bin |
