# Reference: # Kernel config based on: arch/arm/configs/u8500_defconfig _flavor="postmarketos-stericsson" pkgname=linux-$_flavor pkgver=5.8_rc3 pkgrel=0 pkgdesc="Mainline kernel fork for ST-Ericsson NovaThor devices" arch="armv7" _carch="arm" url="https://github.com/stericsson-mainline/linux" license="GPL-2.0-only" options="!strip !check !tracedeps pmb:cross-native" makedepends="bison findutils flex installkernel openssl-dev perl" # Source _tag=v${pkgver//_/-}-stericsson 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 } sha512sums="03d3d27f13c17d1f85b6eac9b90ed458744c4c6c70c98f8731deb7cf2afaa2ec814af5e4aedebf18edb3c1587c6360292455d64d5fd6c29b37849051d7604cb6 linux-postmarketos-stericsson-v5.8-rc3-stericsson.tar.gz a6e8197fb981af5e4915cb037afb31c1f75e169a351eabe16ee7ac1a99e93ea8a90d453e954a7d58c25e66db1c5136ff3d3ce6340fcc6b362f120ab40ac7820d config-postmarketos-stericsson.armv7"