2019-08-23 14:36:47 +00:00
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
|
|
|
# Kernel config based on: arch/arm/configs/u8500_defconfig
|
|
|
|
|
2020-06-21 12:53:43 +00:00
|
|
|
_flavor="postmarketos-stericsson"
|
|
|
|
pkgname=linux-$_flavor
|
2020-08-03 10:11:18 +00:00
|
|
|
pkgver=5.8
|
2020-06-29 08:07:53 +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"
|
2020-04-21 01:24:27 +00:00
|
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
2020-06-21 12:53:43 +00:00
|
|
|
makedepends="bison findutils flex installkernel openssl-dev perl"
|
2019-08-23 14:36:47 +00:00
|
|
|
|
|
|
|
# Source
|
2020-06-22 09:37:10 +00:00
|
|
|
_tag=v${pkgver//_/-}-stericsson
|
2019-08-23 14:36:47 +00:00
|
|
|
source="
|
|
|
|
$pkgname-$_tag.tar.gz::$url/archive/$_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 ))
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2020-08-03 10:11:18 +00:00
|
|
|
sha512sums="a0971727404aaad70f9d1b670db9b0759a7e338fd647366918f145203347c546851b6cb242ef10b76f8060b09da3dbab5b163fddcecb26c8f0f35ea2afad23f0 linux-postmarketos-stericsson-v5.8-stericsson.tar.gz
|
|
|
|
55aa7a5d6a7a4b171450ac2bb896c7eccd47f05f75695045420b0e09dc55024466795c77a4e86d657a0b4fd0832e3d75dbf59620fda008f391c1438c2aba00db config-postmarketos-stericsson.armv7"
|