9ef583c26a
[ci:skip-build]: already built successfully in CI
70 lines
1.7 KiB
Text
70 lines
1.7 KiB
Text
# Maintainer: Newbyte <newbyte@disroot.org>
|
|
# Kernel config based on: arch/arm/configs/u8500_defconfig
|
|
|
|
_flavor="postmarketos-stericsson"
|
|
_config="config-$_flavor.armv7"
|
|
pkgname=linux-$_flavor
|
|
pkgver=6.7.0
|
|
pkgrel=0
|
|
pkgdesc="Mainline kernel for ST-Ericsson NovaThor devices"
|
|
arch="armv7"
|
|
_carch="arm"
|
|
url="https://kernel.org"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps
|
|
pmb:cross-native
|
|
pmb:kconfigcheck-waydroid
|
|
pmb:kconfigcheck-containers
|
|
pmb:kconfigcheck-zram
|
|
pmb:kconfigcheck-nftables
|
|
"
|
|
makedepends="
|
|
bash
|
|
bison
|
|
findutils
|
|
gmp-dev
|
|
flex
|
|
mpc1-dev
|
|
mpfr-dev
|
|
openssl-dev
|
|
perl
|
|
postmarketos-installkernel
|
|
"
|
|
case $pkgver in
|
|
*.*.*) _kernver=${pkgver%.0};;
|
|
*.*) _kernver=$pkgver;;
|
|
esac
|
|
source="
|
|
https://cdn.kernel.org/pub/linux/kernel/v${_kernver%%.*}.x/linux-$_kernver.tar.xz
|
|
config-$_flavor.armv7
|
|
"
|
|
builddir="$srcdir/linux-${_kernver//_/-}"
|
|
|
|
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"/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="
|
|
de06de556191614bd9daf077ae239360352a402bab407748e67f1e5108c92fd933e451707840ab22fe0f9976db3d1e1b60ca9d41cf894f015ca09b3f652b74ad linux-6.7.tar.xz
|
|
2f71e984835fe838031d07ea084a6179674c09ba1a9688c84d4eff0d1c19686475cd92bb2519e033f557f781aea056efcddbe2bb2d6092eb3cf39d577c96ea89 config-postmarketos-stericsson.armv7
|
|
"
|