diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-11-04 01:07:33 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-11-04 01:07:33 +0900 |
| commit | 80af3a5ff3a31bce227326b77d425254d78aaa2d (patch) | |
| tree | 7bd383ccdcd6493121baa133c64afe68fb5d9645 /internal/rosa | |
| parent | 512b563ee2002a5d2e8f529d8b9987c28f352510 (diff) | |
internal/rosa/package/toybox: enable cross-compilation
The previous change enabled cross-compilation for the early variant,
this duplicates the change for the standard variant.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa')
| -rw-r--r-- | internal/rosa/package/toybox.az | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/rosa/package/toybox.az b/internal/rosa/package/toybox.az index 43faceee..edc5b386 100644 --- a/internal/rosa/package/toybox.az +++ b/internal/rosa/package/toybox.az @@ -33,6 +33,14 @@ LDFLAGS="${LDFLAGS:-''} -static" chmod +w /bin/ ln -rs "$(which bash)" /bin/ || true +if [ -n "${CC+x}" ]; then + echo '#!/bin/sh' > '`+prefix+`/bin/`+llvmArch+`-cc' + echo "exec $CC "'"$@"' >> '`+prefix+`/bin/`+llvmArch+`-cc' + chmod +x '`+prefix+`/bin/`+llvmArch+`-cc' + unset CC + export CROSS_COMPILE=`+llvmArch+`- +fi + chmod +w kconfig tests rm -f \ tests/du.test \ |
