2019-08-23 14:36:47 +00:00
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
2021-09-15 17:27:00 +00:00
|
|
|
# Maintainer: Newbyte <newbyte@disroot.org>
|
2019-08-23 14:36:47 +00:00
|
|
|
# Kernel config based on: arch/arm/configs/u8500_defconfig
|
|
|
|
|
2020-06-21 12:53:43 +00:00
|
|
|
_flavor="postmarketos-stericsson"
|
2021-04-08 08:58:40 +00:00
|
|
|
_config="config-$_flavor.armv7"
|
2020-06-21 12:53:43 +00:00
|
|
|
pkgname=linux-$_flavor
|
2022-12-14 16:18:45 +00:00
|
|
|
pkgver=6.1
|
2023-04-23 13:06:54 +00:00
|
|
|
pkgrel=1
|
2022-08-13 21:38:06 +00:00
|
|
|
pkgdesc="Mainline kernel for ST-Ericsson NovaThor devices"
|
2019-08-23 14:36:47 +00:00
|
|
|
arch="armv7"
|
|
|
|
_carch="arm"
|
2022-08-13 21:38:06 +00:00
|
|
|
url="https://kernel.org"
|
2019-08-23 14:36:47 +00:00
|
|
|
license="GPL-2.0-only"
|
2021-07-17 15:03:47 +00:00
|
|
|
options="!strip !check !tracedeps
|
|
|
|
pmb:cross-native
|
2022-10-08 18:36:46 +00:00
|
|
|
pmb:kconfigcheck-waydroid
|
2021-09-17 14:27:28 +00:00
|
|
|
pmb:kconfigcheck-containers
|
2021-07-17 15:03:47 +00:00
|
|
|
pmb:kconfigcheck-zram
|
2021-07-19 21:17:01 +00:00
|
|
|
pmb:kconfigcheck-nftables
|
2021-07-17 15:03:47 +00:00
|
|
|
"
|
2021-10-12 10:46:33 +00:00
|
|
|
makedepends="
|
2022-06-18 16:59:47 +00:00
|
|
|
bash
|
2021-10-12 10:46:33 +00:00
|
|
|
bison
|
|
|
|
findutils
|
|
|
|
gmp-dev
|
|
|
|
flex
|
|
|
|
mpc1-dev
|
|
|
|
mpfr-dev
|
|
|
|
openssl-dev
|
|
|
|
perl
|
|
|
|
postmarketos-installkernel
|
|
|
|
"
|
2021-11-06 13:15:57 +00:00
|
|
|
case $pkgver in
|
|
|
|
*.*.*) _kernver=${pkgver%.0};;
|
|
|
|
*.*) _kernver=$pkgver;;
|
|
|
|
esac
|
2019-08-23 14:36:47 +00:00
|
|
|
source="
|
2022-07-21 14:20:16 +00:00
|
|
|
https://cdn.kernel.org/pub/linux/kernel/v${_kernver%%.*}.x/linux-$_kernver.tar.xz
|
2019-08-23 14:36:47 +00:00
|
|
|
config-$_flavor.armv7
|
2022-12-14 16:18:45 +00:00
|
|
|
0001-Disable-busy-detect-on-Ux500-MMCI.patch
|
|
|
|
0002-pwm-ab8500-Get-HW-ID-from-reg-value.patch
|
2022-04-05 16:57:18 +00:00
|
|
|
"
|
|
|
|
builddir="$srcdir/linux-${_kernver//_/-}"
|
2019-08-23 14:36:47 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
cp "$srcdir/config-$_flavor.$CARCH" .config
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
2023-04-23 15:15:23 +00:00
|
|
|
# V=1: workaround for pma#1990
|
2019-08-23 14:36:47 +00:00
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
2023-04-23 15:15:23 +00:00
|
|
|
KBUILD_BUILD_VERSION=$((pkgrel + 1 )) \
|
|
|
|
V=1
|
2019-08-23 14:36:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
mkdir -p "$pkgdir"/boot
|
|
|
|
make zinstall modules_install dtbs_install \
|
|
|
|
ARCH="$_carch" \
|
|
|
|
INSTALL_PATH="$pkgdir"/boot \
|
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
2022-07-30 18:11:01 +00:00
|
|
|
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
|
2019-08-23 14:36:47 +00:00
|
|
|
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
|
|
|
|
|
|
|
|
install -D "$builddir"/include/config/kernel.release \
|
|
|
|
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
|
|
|
|
}
|
|
|
|
|
2021-04-08 08:58:40 +00:00
|
|
|
sha512sums="
|
2022-12-14 16:18:45 +00:00
|
|
|
6ed2a73c2699d0810e54753715635736fc370288ad5ce95c594f2379959b0e418665cd71bc512a0273fe226fe90074d8b10d14c209080a6466498417a4fdda68 linux-6.1.tar.xz
|
2023-04-23 13:06:54 +00:00
|
|
|
a84a5fbd68f8d68ab92a8c181eeec65309a5f062b93e3b5b143aa0adc4201bfb4d2f7daafa55d31ce593cf73b3bb9251ace9a02848f0c236e53861d12f2692f6 config-postmarketos-stericsson.armv7
|
2022-12-14 16:18:45 +00:00
|
|
|
2850f2c7a4405ed13c6ae18c97a1e8b3b0be545fb517a0b692666e559efdc00981a177f556c4c8fb6c8115d1c29674b6487a10700d9c30317ffb8d953c595281 0001-Disable-busy-detect-on-Ux500-MMCI.patch
|
|
|
|
3abf1a2b28077a2784c33f468facf44c2312f8bb54422463cffcb92a0eaa1f8954f1fa5f8f5acac0262495c08692a2161325c1ca68f7d23aecb36c1f9138d7ef 0002-pwm-ab8500-Get-HW-ID-from-reg-value.patch
|
2021-04-08 08:58:40 +00:00
|
|
|
"
|