You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.2 KiB
46 lines
1.2 KiB
#!/bin/bash
|
|
|
|
pkgname=(linux)
|
|
pkgver=5.18.2
|
|
pkgrel=1
|
|
pkgdesc='System kernel'
|
|
arch=(x86_64)
|
|
url='http://www.kernel.org'
|
|
license=(GPL2)
|
|
depends=()
|
|
makedepends=(bison flex perl python3)
|
|
options=()
|
|
changelog=ChangeLog
|
|
source=(
|
|
"https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-$pkgver.tar.xz"
|
|
Config
|
|
)
|
|
|
|
sha256sums=(
|
|
83d14126c660186a7a1774a4a5c29d38e170fa5e52cfd2d08fd344dcf1f57d22
|
|
fb5801b7c4f692ac44589ad2f549e1b825a66517fec18e007d4751b2e776ddd5
|
|
)
|
|
|
|
build() {
|
|
cd_unpacked_src
|
|
sed -i \
|
|
-e "/rsync/s@rsync@find usr/include -not -type d -name '*.h' | cpio -dump --quiet \$\(INSTALL_HDR_PATH\); true@" \
|
|
-e '/^CC/s@gcc@cc@g' \
|
|
-e '/^HOSTCC/s@gcc@cc@g' Makefile
|
|
make LLVM=1 LLVM_IAS=1 mrproper
|
|
cp "${srcdir}/Config" .config
|
|
make LLVM=1 LLVM_IAS=1
|
|
}
|
|
|
|
package() {
|
|
groups=(base)
|
|
cd_unpacked_src
|
|
make LLVM=1 LLVM_IAS=1 INSTALL_MOD_PATH="$pkgdir" modules_install
|
|
install -d "${pkgdir}/boot"
|
|
install "arch/${CARCH}/boot/bzImage" "${pkgdir}/boot/vmlinux"
|
|
install .config "${pkgdir}/boot/config"
|
|
# remove build/source links for now
|
|
rm -f "${pkgdir}/lib/modules/${pkgver}/build" \
|
|
"${pkgdir}/lib/modules/${pkgver}/source"
|
|
}
|