diff options
| -rw-r--r-- | internal/rosa/package/toybox.az | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/internal/rosa/package/toybox.az b/internal/rosa/package/toybox.az index 720c736a..c2b8fb53 100644 --- a/internal/rosa/package/toybox.az +++ b/internal/rosa/package/toybox.az @@ -34,7 +34,7 @@ chmod +w /bin/ ln -rs "$(which bash)" /bin/ || true chmod +w kconfig tests -rm \ +rm -f \ tests/du.test \ tests/sed.test \ tests/tar.test \ @@ -91,8 +91,16 @@ LDFLAGS="${LDFLAGS:-''} -static" chmod +w /bin/ ln -rs "$(which bash)" /bin/ || true +if [ -n "${CC+x}" ]; then + echo '#!/bin/sh' > '/system/bin/`+linuxArch+`-cc' + echo "exec $CC "'"$@"' >> '/system/bin/`+linuxArch+`-cc' + chmod +x '/system/bin/`+linuxArch+`-cc' + unset CC + export CROSS_COMPILE=`+linuxArch+`- +fi + chmod +w kconfig tests -rm \ +rm -f \ tests/du.test \ tests/sed.test \ tests/tar.test \ |
