diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2022-04-29 21:22:24 -0400 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2022-04-29 21:22:24 -0400 |
commit | e5a5b64c61de0b687b465fb19d8f0208df7cc14e (patch) | |
tree | 00d8967a3cf7506e37d969e484a200b68c63b2c8 /build-busybox.sh | |
parent | 700a1b10b3a9d021b6a02d0f837ddfde52578634 (diff) |
add complete build system
Diffstat (limited to 'build-busybox.sh')
-rwxr-xr-x | build-busybox.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/build-busybox.sh b/build-busybox.sh new file mode 100755 index 0000000..e370e9c --- /dev/null +++ b/build-busybox.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +if [ ! -e ./busybox-1.20.0.tar.bz2 ] ; then + echo "Fetching busybox..." + wget https://www.busybox.net/downloads/busybox-1.20.0.tar.bz2 +fi + +if [ ! -e ./busybox-1.20.0 ] ; then + echo "Extracting busybox..." + tar xf busybox-1.20.0.tar.bz2 + cp config-busybox-1.20.0 busybox-1.20.0/.config + cd busybox-1.20.0 + patch include/libbb.h < ../busybox/libbb.h.patch + cd .. +fi + +make -C busybox-1.20.0 -j8 + +lzma -zc9 busybox-1.20.0/busybox > floppy/boot/busyboz +echo "Busybox is now installed to the floppy folder." + |