Some kconfig changes to reduce kernel size to avoid conflict of 0x8000 (kernel load address) + uncompressed kernel size (arch/arm/boot/Image) + compressed kernel size (arch/arm/boot/zImage) being bigger than 0x1e00000 (tags address). This causes mostly silent boot failures, with CONFIG_DEBUG_LL messages such as "no ATAGS support: can't continue" or "Error: invalid dtb and unrecognized/unsupported machine ID" can be seen on UART, though they're not very clear that the kernel image is essentially too big for what lk is setting up. Manual kconfig changes: * Convert some =y to =m to reduce kernel size, mostly NFS_FS and CIFS since those are quite big and there's no point in having them built-in. * Disable EXT2_FS & EXT3_FS - handled by EXT4 driver * Disable PCI - unused [ci:skip-build]: already built successfully in CI
67 lines
1.7 KiB
Plaintext
67 lines
1.7 KiB
Plaintext
# Maintainer: Alexey Minnekhanov <alexeymin@postmarketos.org>
|
|
# Co-Maintainer: Luca Weiss <luca@lucaweiss.eu>
|
|
_flavor=postmarketos-qcom-msm8974
|
|
_config="config-$_flavor.$CARCH"
|
|
|
|
pkgname=linux-$_flavor
|
|
pkgver=6.11.4
|
|
pkgrel=0
|
|
_tag="v${pkgver/_/-}-msm8974"
|
|
pkgdesc="Kernel close to mainline with extra patches for Qualcomm MSM8974 devices"
|
|
arch="armv7"
|
|
_carch="arm"
|
|
url="https://kernel.org/"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps
|
|
pmb:cross-native
|
|
pmb:kconfigcheck-community
|
|
"
|
|
makedepends="
|
|
bash
|
|
bison
|
|
findutils
|
|
flex
|
|
gmp-dev
|
|
mpc1-dev
|
|
mpfr-dev
|
|
openssl-dev
|
|
perl
|
|
postmarketos-installkernel
|
|
python3
|
|
"
|
|
source="
|
|
linux-$_tag.tar.gz::https://github.com/msm8974-mainline/linux/archive/refs/tags/$_tag.tar.gz
|
|
config-$_flavor.armv7
|
|
"
|
|
builddir="$srcdir/linux-${_tag#v}"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cp "$srcdir/config-$_flavor.$CARCH" .config
|
|
}
|
|
|
|
build() {
|
|
unset LDFLAGS
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor"
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"/boot
|
|
make zinstall modules_install dtbs_install \
|
|
ARCH="$_carch" \
|
|
INSTALL_PATH="$pkgdir"/boot \
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
INSTALL_MOD_STRIP=1 \
|
|
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
|
|
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
|
|
|
|
install -D "$builddir/include/config/kernel.release" \
|
|
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
|
|
}
|
|
|
|
sha512sums="
|
|
309c67155f975445fb24006a14c0e1a12d922e607dd64949b9b7dcc09737c80f098a0857e11d13ec3a78377216342bd1b6725ed0c7a56b5ecb51ca07936c8bc1 linux-v6.11.4-msm8974.tar.gz
|
|
af9fefbe456cd14bfb374d9dc6eadb584d120ecf26937396b4b879b6f75b610515b8b84b1adfa40a199102e57e9fcd7248261deb34762e5284bea2146efe24ea config-postmarketos-qcom-msm8974.armv7
|
|
"
|