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.03e06250b7acd3aad4222be3e3eded91886c4a605ad2712f46f9359dd99a8646
      5 #+gnu-make.e7ff1e81614b0d3c152cd2b39eb961289d08617e45a0a749932d053bba398337
      6 #@git:aa4d303a3139107919f73cece4eaf85a7dc75db6:busybox
      7 #@sha256:9ee52091d7a41e7e492d508574573fbebe64155d85a07980128f21105eaad1e2:busybox/.config
      8 
      9 : ${JOBS:=1}
     10 mcm=/versions/musl-cross-make.03e06250b7acd3aad4222be3e3eded91886c4a605ad2712f46f9359dd99a8646
     11 make=/versions/gnu-make.e7ff1e81614b0d3c152cd2b39eb961289d08617e45a0a749932d053bba398337
     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