# Description: Linux libre kernel that comes with blobs # URL: http://linux-libre.fsfla.org # Maintainer: Silvino, silvino at bk dot ru # Depends on: grub2 dracut name=linux-crux version=4.1.32 release=1 source=(https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-$version.tar.xz \ https://raw.githubusercontent.com/graysky2/kernel_gcc_patch/master/enable_additional_cpu_optimizations_for_gcc_v4.9%2B_kernel_v3.15%2B.patch \ linux-$version.defconfig) build() { cd linux-$version mkdir -p $PKG/usr/src cp $SRC/enable_additional_cpu_optimizations_for_gcc_v4.9%2B_kernel_v3.15%2B.patch $PKG/usr/src/cpu_optimizations.patch cp ../linux-$version.defconfig $PKG/usr/src/ make distclean cp ../linux-$version.defconfig .config make silentoldconfig # make localmodconfig make -j $(nproc) all make INSTALL_MOD_PATH=$PKG modules_install install -m 0644 -D arch/x86_64/boot/bzImage $PKG/boot/vmlinuz-$version-crux install -m 0644 System.map $PKG/boot/System.map-$version-$release install -m 0644 .config $PKG/boot/config-$version-crux rm $PKG/lib/modules/${version}_crux/source rm $PKG/lib/modules/${version}_crux/build #ln /usr/src/linux-$version $PKG/lib/modules/$version-$release/build #ln /usr/src/linux-$version $PKG/lib/modules/$version-$release/source }