Files
maplelinux-bootstrap/sources/linux/linux.spec

23 lines
837 B
RPMSpec
Raw Normal View History

2025-11-14 22:47:02 -05:00
# Maintainer: Alexander Hill <ahill@breadpudding.dev>
SRC_HASH="558c6bbab749492b34f99827fe807b0039a744693c21d3a7e03b3a48edaab96a"
2025-11-11 10:06:56 -05:00
SRC_NAME="linux"
SRC_URL="https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.18.2.tar.xz"
SRC_VERSION="6.18.2"
2025-12-20 23:58:05 -05:00
build() {
tar xf ../$SRC_FILENAME
cd linux-$SRC_VERSION/
# NOTE: LLVM=1 is required for ALL invocations of the kernel's Makefile. GNU
# tools are still used by default in a lot of places and this will
# override them with LLVM tools wherever possible. ~ahill
LLVM=1 make mrproper
# NOTE: YACC defaults to bison, which doesn't exist here, so we tell it
# where to find the parser generator manually. ~ahill
LLVM=1 make -j $TT_PROCS defconfig YACC=byacc
LLVM=1 make -j $TT_PROCS YACC=byacc
2025-12-20 23:58:05 -05:00
}
clean() {
rm -rf libelf-$SRC_VERSION/
}