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
|
2023-05-29 20:49:41 +00:00
|
|
|
pkgver=6.3.5
|
2023-06-02 13:01:08 +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
|
2023-05-29 20:49:41 +00:00
|
|
|
0001-fix-busydetect-ux500.patch
|
2022-12-14 16:18:45 +00:00
|
|
|
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
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
2023-05-29 20:49:41 +00:00
|
|
|
KBUILD_BUILD_VERSION=$((pkgrel + 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="
|
2023-05-29 20:49:41 +00:00
|
|
|
91a98c56191645c4ba32f657da59b6be92021b37a698eaf79e1ed3a79b959626386e7b69c8cb0c9eab0645c287a3e53393b1710158eca67b2f66a8d3eaec13de linux-6.3.5.tar.xz
|
2023-06-02 13:01:08 +00:00
|
|
|
9760c63cbe1319363df137c641d24bfd9c054f5bcee26977fa996baa912511ee119950bcce87e583412ade626bba6dd6cc2139cedb4670f2bf6eda79e294e057 config-postmarketos-stericsson.armv7
|
2023-05-29 20:49:41 +00:00
|
|
|
10df6cacbed7b76d23a879aea4b9913b22551a6e4f9cd49814f491af4b8121dccbae4b3f1400584917f071355bdcd298f900b712ce31905c4ec561247dbb14e0 0001-fix-busydetect-ux500.patch
|
2022-12-14 16:18:45 +00:00
|
|
|
3abf1a2b28077a2784c33f468facf44c2312f8bb54422463cffcb92a0eaa1f8954f1fa5f8f5acac0262495c08692a2161325c1ca68f7d23aecb36c1f9138d7ef 0002-pwm-ab8500-Get-HW-ID-from-reg-value.patch
|
2021-04-08 08:58:40 +00:00
|
|
|
"
|