Merge branch 'master' into 'master'

Fix busybox port for OSX

See merge request nakst/essence!3
This commit is contained in:
nakst 2022-01-22 14:39:41 +00:00
commit baa7c72d0a
1 changed files with 8 additions and 0 deletions

View File

@ -1,10 +1,18 @@
set -e
SYSROOT=`realpath root`
VERSION=1.33.1
uname -a | grep Darwin > /dev/null
if [ $? -ne 1 ]; then
PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
fi
bin/build get-source-checked 12cec6bd2b16d8a9446dd16130f2b92982f1819f6e1c5f5887b6db03f5660d28 busybox-$VERSION https://www.busybox.net/downloads/busybox-$VERSION.tar.bz2
cd bin/source
cp ../../ports/busybox/config .config
sed -i "51 i CONFIG_SYSROOT=\"$SYSROOT\"" .config
make -j `nproc`
cp busybox $SYSROOT/Applications/POSIX/bin
cp LICENSE ../BusyBox\ License.txt