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-06-22 09:37:10 +00:00
|
|
|
pkgver=5.8_rc2
|
2019-08-23 14:36:47 +00:00
|
|
|
pkgrel=0
|
|
|
|
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-06-22 09:37:10 +00:00
|
|
|
sha512sums="c712ea22e4f89d82464be20b8a5a9192b71abae3cfcc1cd64cf20af5a5c0c8b04decd17a149ba6f134ce2a697c5deb8c603c4894641adae7e3028ecb7de3051c linux-postmarketos-stericsson-v5.8-rc2-stericsson.tar.gz
|
|
|
|
14c02d121cfcace0406975d2e7c6c4b357099a090a5260f485e9c78daac7578295dc340b24d005d438b5e48da5a1fdd5078b8dd1eaceb1b39c41957581a726bc config-postmarketos-stericsson.armv7"
|