busybox:bootstrap (1196B)
1 {% extends "base" %} 2 {%- block body %} 3 #@pragma:nosandbox 4 #@pragma:nopath 5 #+{{pkg_install_name("musl-cross-make:bootstrap-1")}} 6 #+{{pkg_install_name("gnu-make:bootstrap")}} 7 #@git:aa4d303a3139107919f73cece4eaf85a7dc75db6:busybox 8 #@sha256:9ee52091d7a41e7e492d508574573fbebe64155d85a07980128f21105eaad1e2:busybox/.config 9 10 : ${JOBS:=1} 11 mcm={{pkg_install_dir("musl-cross-make:bootstrap-1")}} 12 make={{pkg_install_dir("gnu-make:bootstrap")}} 13 14 export PATH="$mcm/bin:$make/command:$PATH" 15 export CC="$mcm/bin/{{triplet}}-gcc" 16 export CFLAGS="-D_GNU_SOURCE" 17 export LDFLAGS="-static" 18 19 cd busybox 20 $make/command/make V=1 CROSS_COMPILE={{triplet}}- LDFLAGS=-static HOSTLDFLAGS=-static \ 21 HOSTCC="$CC -static" CC="$CC -static" HOSTCFLAGS=-D_GNU_SOURCE -j$JOBS 22 23 mkdir -p "$pthbs_destdir{{versions}}/$pthbs_package/command" 24 cp -a busybox "$pthbs_destdir{{versions}}/$pthbs_package/command/" 25 cd "$pthbs_destdir{{versions}}/$pthbs_package" 26 echo false | ./command/busybox --list >/dev/null # test if it works 27 ./command/busybox --list | awk ' 28 { print "./command/busybox\t./command/" $0 } 29 END { print "./command/busybox\t./command/busybox" } 30 ' >.install-links.new 31 mv .install-links.new .install-links 32 {% endblock %}