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-03-03 17:25:40 +00:00
|
|
|
pkgver=5.17_rc1
|
|
|
|
_commit=3205c463457e0bec98ef7d707889e9daefec79ca
|
2021-11-06 13:15:57 +00:00
|
|
|
pkgrel=0
|
2019-08-23 14:36:47 +00:00
|
|
|
pkgdesc="Mainline kernel fork for ST-Ericsson NovaThor devices"
|
|
|
|
arch="armv7"
|
|
|
|
_carch="arm"
|
2020-06-21 12:53:43 +00:00
|
|
|
url="https://github.com/stericsson-mainline/linux"
|
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
|
2021-09-16 17:22:32 +00:00
|
|
|
pmb:kconfigcheck-anbox
|
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="
|
|
|
|
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-03-03 17:25:40 +00:00
|
|
|
https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git/snapshot/linux-nomadik-$_commit.tar.gz
|
2019-08-23 14:36:47 +00:00
|
|
|
config-$_flavor.armv7
|
|
|
|
"
|
2022-03-03 17:25:40 +00:00
|
|
|
builddir="$srcdir/linux-nomadik-$_commit"
|
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}" \
|
|
|
|
KBUILD_BUILD_VERSION=$((pkgrel + 1 ))
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
mkdir -p "$pkgdir"/boot
|
|
|
|
make zinstall modules_install dtbs_install \
|
|
|
|
ARCH="$_carch" \
|
|
|
|
INSTALL_PATH="$pkgdir"/boot \
|
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
|
|
INSTALL_DTBS_PATH="$pkgdir"/usr/share/dtb
|
|
|
|
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-03-03 17:25:40 +00:00
|
|
|
615cee2040d060eaabfe7fadbcf8590daf54bfe7555d56d183de814c6b13db1eed43fbc283e8cad7bcee79606f695a06c669f16cde0f026444c6073da4830d0a linux-nomadik-3205c463457e0bec98ef7d707889e9daefec79ca.tar.gz
|
|
|
|
8bf5ffb6e5adb64b468ee203a0897f3e0746a4ce548a058f3ff3e09b2aa527cafc213a328c3bf356c73212e0a9025eebac25d39d2cd083b76435c5080318ca70 config-postmarketos-stericsson.armv7
|
2021-04-08 08:58:40 +00:00
|
|
|
"
|