mrrl

Minimal Reliable Reproducible Linux
git clone https://ccx.te2000.cz/git/mrrl
Log | Files | Refs | Submodules | README

busybox:bootstrap (1314B)


      1 #!/usr/bin/env pthbs-build
      2 #@pragma:nosandbox
      3 #@pragma:nopath
      4 #+musl-cross-make.c5f63db204250bee710bcb107e17bbeb0d13b170f93598c72bb522c8eef5f57a
      5 #+gnu-make.2814a4c328a63bd9b145954875b915678b480103d4dbf3d6df83600815a5abe2
      6 #@git:aa4d303a3139107919f73cece4eaf85a7dc75db6:busybox
      7 #@sha256:9ee52091d7a41e7e492d508574573fbebe64155d85a07980128f21105eaad1e2:busybox/.config
      8 
      9 : ${JOBS:=1}
     10 mcm=/versions/musl-cross-make.c5f63db204250bee710bcb107e17bbeb0d13b170f93598c72bb522c8eef5f57a
     11 make=/versions/gnu-make.2814a4c328a63bd9b145954875b915678b480103d4dbf3d6df83600815a5abe2
     12 
     13 export PATH="$mcm/bin:$make/command:$PATH"
     14 export CC="$mcm/bin/x86_64-linux-musl-gcc"
     15 export CFLAGS="-D_GNU_SOURCE"
     16 export LDFLAGS="-static"
     17 
     18 cd busybox
     19 $make/command/make V=1 CROSS_COMPILE=x86_64-linux-musl- LDFLAGS=-static HOSTLDFLAGS=-static \
     20       HOSTCC="$CC -static" CC="$CC -static" HOSTCFLAGS=-D_GNU_SOURCE -j$JOBS
     21 
     22 mkdir -p "$pthbs_destdir/versions/$pthbs_package/command"
     23 cp -a busybox "$pthbs_destdir/versions/$pthbs_package/command/"
     24 cd "$pthbs_destdir/versions/$pthbs_package"
     25 echo false | ./command/busybox --list >/dev/null # test if it works
     26 ./command/busybox --list | awk '
     27 { print "./command/busybox\t./command/" $0 }
     28 END { print "./command/busybox\t./command/busybox" }
     29 ' >.install-links.new
     30 mv .install-links.new .install-links