linux (1458B)
1 {% extends "genlinks" %} 2 {%- block script %} 3 #+{{pkg_install_name("busybox")}} 4 #+{{pkg_install_name("gnu-make")}} 5 #+{{pkg_install_name("musl-cross-make")}} 6 #+{{pkg_install_name("diffutils")}} 7 #+{{pkg_install_name("patch")}} 8 #+{{pkg_install_name("flex")}} 9 #+{{pkg_install_name("bison")}} 10 #+{{pkg_install_name("rsync")}} 11 #+{{pkg_install_name("libelf-compat")}} 12 #@untar:-J:sha256:2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb:. 13 #@sha256:d9b01e4dac3dd140c394227603c8b3339bb2f1e10c97afd3607d84e3003ec75a:patch-6.1.34.xz 14 #@sha256:{{files["lh_bootstrap-x86_64-config"]}}:linux.config 15 #@sha256:{{files["noobjtool.patch"]}}:noobjtool.patch 16 17 export CFLAGS="-L$pthbs_build_environment/library -L$pthbs_build_environment/library.so" 18 export LD_LIBRARY_PATH="$pthbs_build_environment/library:$pthbs_build_environment/library.so" 19 export CPATH="$pthbs_build_environment/include" 20 21 cd linux-6.1 22 unxz -c < ../patch-6.1.34.xz | patch -p1 -N 23 patch -p1 -N <../noobjtool.patch 24 cp -v ../linux.config .config 25 linux64 {{make}} olddefconfig 26 diff -u ../linux.config .config || true 27 linux64 {{make}} 28 29 installdir="$pthbs_destdir/{{versions}}/$pthbs_package" 30 mkdir -p "$installdir" 31 cp -v .config "$installdir/config" 32 mkdir -p "$installdir/doc" 33 mv Documentation/* "$installdir/doc" 34 linux64 make modules_install install \ 35 INSTALL_MOD_PATH="$installdir" \ 36 INSTALL_MOD_STRIP=1 \ 37 INSTALL_PATH="$installdir"/boot \ 38 INSTALL_DTBS_PATH="$installdir/boot/dtbs" 39 {% endblock %}