diff --git a/pkg/arch/kernel/PKGBUILD b/pkg/arch/kernel/PKGBUILD index 8b67cf6a7..54073f090 100644 --- a/pkg/arch/kernel/PKGBUILD +++ b/pkg/arch/kernel/PKGBUILD @@ -13,11 +13,17 @@ url="https://github.com/archlinux/linux/commits/$_srctag" arch=(x86_64) license=(GPL2) makedepends=( - bc libelf cpio perl tar xz + bc + cpio + gettext + git + libelf + perl + tar + xz python # we don't need `pahole` as deps because we disable `CONFIG_DEBUG_INFO` # ignoring deps for docs because we don't build docs package - git ) optdepends=('iptsd: Touchscreen support' 'linux-firmware: Firmware files for Linux' @@ -78,13 +84,20 @@ export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EP _mok_crt="$PWD/MOK.crt" _mok_key="$PWD/MOK.key" +_make() { + test -s version + make KERNELRELEASE="$( localversion.10-pkgrel echo "${pkgbase#linux}" > localversion.20-pkgname + make defconfig + make -s kernelrelease > version + make mrproper # setup git git config --local user.email "surfacebot@users.noreply.github.com" @@ -103,29 +116,41 @@ prepare() { # cp ../config .config # merge the two configs together ./scripts/kconfig/merge_config.sh -m ../config ../surface.config ../arch.config - make olddefconfig + _make olddefconfig - make -s kernelrelease > version echo "Prepared $pkgbase version $(