2020-09-11 13:09:37 +00:00
|
|
|
# Maintainer: Martijn Braam <martijn@brixit.nl>
|
|
|
|
# Co-Maintainer: Luca Weiss <luca@z3ntu.xyz>
|
|
|
|
# Co-Maintainer: Bart Ribbers <bribbers@disroot.org>
|
2018-09-16 15:53:45 +00:00
|
|
|
_flavor=postmarketos-allwinner
|
2019-12-22 15:20:21 +00:00
|
|
|
_config="config-$_flavor.$CARCH"
|
|
|
|
pkgname=linux-$_flavor
|
2020-09-11 13:09:37 +00:00
|
|
|
pkgver=5.8.0_git20200911
|
2020-09-13 15:12:33 +00:00
|
|
|
pkgrel=2
|
2020-09-11 13:09:37 +00:00
|
|
|
_commit="e1c26b7bd643515d3be20268cd2385df2388f8b9"
|
2020-02-08 07:36:31 +00:00
|
|
|
pkgdesc="Kernel fork with Pine64 patches"
|
2020-09-11 13:09:37 +00:00
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
2019-07-26 09:34:36 +00:00
|
|
|
url="https://gitlab.com/pine64-org/linux/"
|
2020-02-27 06:59:55 +00:00
|
|
|
license="GPL-2.0-only"
|
2020-09-11 13:09:37 +00:00
|
|
|
makedepends="
|
|
|
|
bison
|
|
|
|
devicepkg-dev
|
|
|
|
flex
|
|
|
|
installkernel
|
|
|
|
openssl-dev
|
|
|
|
perl
|
|
|
|
rsync
|
|
|
|
xz
|
|
|
|
"
|
2020-05-13 16:32:23 +00:00
|
|
|
options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-anbox"
|
2020-05-24 17:54:52 +00:00
|
|
|
source="$pkgname-$_commit.tar.gz::https://gitlab.com/pine64-org/linux/-/archive/$_commit/linux-$_commit.tar.gz
|
2019-12-22 15:20:21 +00:00
|
|
|
config-$_flavor.aarch64
|
2020-02-27 06:59:55 +00:00
|
|
|
disable-power-save.patch
|
2019-06-01 15:18:59 +00:00
|
|
|
touch-dts.patch
|
2020-09-01 14:40:19 +00:00
|
|
|
convergence.patch
|
2020-09-11 13:09:37 +00:00
|
|
|
camera-added-bggr-bayer-mode.patch
|
2020-05-24 17:54:52 +00:00
|
|
|
"
|
2019-08-25 09:35:17 +00:00
|
|
|
subpackages="$pkgname-dev"
|
2019-12-22 15:20:21 +00:00
|
|
|
builddir="$srcdir/linux-$_commit"
|
2018-09-16 15:53:45 +00:00
|
|
|
|
|
|
|
prepare() {
|
2019-04-08 14:12:45 +00:00
|
|
|
default_prepare
|
2019-04-18 20:59:11 +00:00
|
|
|
|
2019-04-08 14:12:45 +00:00
|
|
|
REPLACE_GCCH=0 \
|
2020-04-01 07:09:30 +00:00
|
|
|
. downstreamkernel_prepare
|
2018-09-16 15:53:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
2019-12-22 15:20:21 +00:00
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor" \
|
2018-09-16 15:53:45 +00:00
|
|
|
CFLAGS_MODULE=-fno-pic
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-03-22 23:51:36 +00:00
|
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
|
2018-09-16 15:53:45 +00:00
|
|
|
|
2020-03-22 23:51:36 +00:00
|
|
|
make -j1 modules_install dtbs_install \
|
2018-09-16 15:53:45 +00:00
|
|
|
ARCH="$_carch" \
|
2020-05-02 19:07:31 +00:00
|
|
|
INSTALL_MOD_STRIP=1 \
|
2018-09-16 15:53:45 +00:00
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
|
|
INSTALL_DTBS_PATH="$pkgdir/usr/share/dtb"
|
|
|
|
}
|
2019-08-25 09:35:17 +00:00
|
|
|
|
|
|
|
dev() {
|
|
|
|
provides="linux-headers"
|
|
|
|
replaces="linux-headers"
|
|
|
|
|
|
|
|
cd $builddir
|
|
|
|
|
|
|
|
# https://github.com/torvalds/linux/blob/master/Documentation/kbuild/headers_install.rst
|
|
|
|
make -j1 headers_install \
|
|
|
|
ARCH="$_carch" \
|
|
|
|
INSTALL_HDR_PATH="$subpkgdir"/usr
|
|
|
|
}
|
2020-06-24 21:32:48 +00:00
|
|
|
|
2020-09-11 13:09:37 +00:00
|
|
|
sha512sums="a976daf8ffeeff1d650edc48a3268e84e7ac7a1b1151311376590d2972826e24f5b4c9c2880a1f1bcb1324d5162e06be96ef74e46fd96f081193ba376957a921 linux-postmarketos-allwinner-e1c26b7bd643515d3be20268cd2385df2388f8b9.tar.gz
|
2020-09-13 15:12:33 +00:00
|
|
|
1cc6be56373d40f14405b8a678d6b32b72c8562a9064c7d411e94ea12f73ca32e572f7ad899f4bf057797d7df4e0d593df6db700412d8666ba083691c2d8c3f5 config-postmarketos-allwinner.aarch64
|
2020-06-29 14:52:34 +00:00
|
|
|
3c0d9d282a36a5f6a442b434839d77851f9b20185725cb73aee88e6e209c68fd3d71df8e2a36ffcdb605c47f86df5dbcda5d00353c75c23303861936196924e0 disable-power-save.patch
|
2020-09-01 14:40:19 +00:00
|
|
|
c6e1ff1c060f68a59fa57a7cfc573a500fc8d200f56193530f7c1967e4f70f17cb2c930496f6a6489a6a10de130a2e66f5cd328eb6c4ae936f4af348a7413c3b touch-dts.patch
|
2020-09-11 13:09:37 +00:00
|
|
|
3e38a3d25c5981d0bb2e40cedb1ff473477be48b1ed3919e77aea23a108f12e8a3794aced53d8e96ce03f03a81dbcad59d61cff023f8714971e01e714f74b368 convergence.patch
|
|
|
|
fc708cbb12b6419858f4d4efd885bdd34eee72be78601bc9542cbd69e6ba576ac15426a75ccbc7ca57b01db735f0d097e4410afdbb9fd35a20806cdb170e4115 camera-added-bggr-bayer-mode.patch"
|