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>
|
2020-09-30 19:03:08 +00:00
|
|
|
# Co-Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
|
2021-02-15 21:24:48 +00:00
|
|
|
# Co-Maintainer: Clayton Craft <clayton@craftyguy.net>
|
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
|
2021-05-03 03:48:05 +00:00
|
|
|
pkgver=5.12.6_git20210523
|
2021-03-19 23:01:35 +00:00
|
|
|
pkgrel=0
|
2021-05-03 03:48:05 +00:00
|
|
|
_tag="orange-pi-5.12-20210523-1501"
|
2020-09-30 19:03:08 +00:00
|
|
|
pkgdesc="Kernel fork with Pine64 patches (megi's tree, slightly patched)"
|
2021-03-19 13:34:11 +00:00
|
|
|
arch="aarch64 armv7"
|
2020-09-30 19:03:08 +00:00
|
|
|
url="https://megous.com/git/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
|
2020-12-26 19:08:40 +00:00
|
|
|
findutils
|
2020-09-11 13:09:37 +00:00
|
|
|
flex
|
2021-03-19 13:34:11 +00:00
|
|
|
gmp-dev
|
2020-09-11 13:09:37 +00:00
|
|
|
installkernel
|
2021-03-19 13:34:11 +00:00
|
|
|
mpc1-dev
|
|
|
|
mpfr-dev
|
2020-09-11 13:09:37 +00:00
|
|
|
openssl-dev
|
|
|
|
perl
|
|
|
|
rsync
|
|
|
|
xz
|
|
|
|
"
|
2020-05-13 16:32:23 +00:00
|
|
|
options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-anbox"
|
2020-09-30 19:03:08 +00:00
|
|
|
source="$pkgname-$_tag.tar.gz::https://github.com/megous/linux/archive/$_tag.tar.gz
|
2019-12-22 15:20:21 +00:00
|
|
|
config-$_flavor.aarch64
|
2021-03-19 13:34:11 +00:00
|
|
|
config-$_flavor.armv7
|
2020-09-30 19:03:08 +00:00
|
|
|
0001-dts-add-dontbeevil-pinephone-devkit.patch
|
|
|
|
0002-dts-add-pinetab-dev-old-display-panel.patch
|
2021-02-15 21:24:48 +00:00
|
|
|
0003-dts-pinetab-add-missing-bma223-ohci1.patch
|
|
|
|
0004-arm64-dts-allwinner-Add-bluetooth-node-to-the-PineTa.patch
|
2020-12-10 21:20:32 +00:00
|
|
|
0005-dts-pinetab-make-audio-routing-consistent-with-pinep.patch
|
2021-02-15 21:24:48 +00:00
|
|
|
0006-dts-pinephone-remove-bt-firmware-suffix.patch
|
|
|
|
0007-media-ov5640-Implement-autofocus.patch
|
2021-05-03 03:48:05 +00:00
|
|
|
0008-dts-pinephone-drop-modem-power-node.patch
|
|
|
|
0009-dts-pinephone-jack-detection.patch
|
|
|
|
0010-pinephone-fix-pogopin-i2c.patch
|
|
|
|
0011-drm-panel-simple-Add-Hannstar-TQTM070CB501.patch
|
|
|
|
0012-ARM-dts-sun6i-Add-GoClever-Orion-70L-tablet.patch
|
|
|
|
0013-drm-panel-simple-Add-Hannstar-HSD070IDW1-A.patch
|
|
|
|
0014-ARM-dts-sun6i-Add-Lark-FreeMe-70.2S-tablet.patch
|
2020-05-24 17:54:52 +00:00
|
|
|
"
|
2019-08-25 09:35:17 +00:00
|
|
|
subpackages="$pkgname-dev"
|
2020-09-30 19:03:08 +00:00
|
|
|
builddir="$srcdir/linux-$_tag"
|
2018-09-16 15:53:45 +00:00
|
|
|
|
2021-03-19 13:34:11 +00:00
|
|
|
case "$CARCH" in
|
|
|
|
aarch64*) _carch="arm64" ;;
|
|
|
|
arm*) _carch="arm" ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
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
|
|
|
|
2021-05-03 03:48:05 +00:00
|
|
|
sha512sums="
|
|
|
|
1340be62c1a7b805e20d54383b98ef3bc1cfe2a8ed790f8368c75d195f00fe9d80a0ad32357452793296c9d817794febc6c4d704cfd22a20bc586689f39e8ebc linux-postmarketos-allwinner-orange-pi-5.12-20210523-1501.tar.gz
|
2021-05-13 08:14:45 +00:00
|
|
|
389506881c7c8ad2182f94305358a71b0007b43903bd524aaeea4e7f3db8223de0312b62d2d109b706eea6e696500a217f9222a0e131f785af2deac283d5cf63 config-postmarketos-allwinner.aarch64
|
2021-05-03 03:48:05 +00:00
|
|
|
bd0bf2ab037e70a826f26a0ef1c441f0d5bada458128b676b2de0102d05c72961f0be9f00974c7dfab291d95f8612cde88011124497852c53dff30426096114b config-postmarketos-allwinner.armv7
|
|
|
|
126e0a65e04f22f14eac1281a69000d9d5b107ed8fd1b52f37e812751f55e6c45b0240ceac61c9d95ae7f0543aaf9d96b85a8532baf59283c077b9945e615367 0001-dts-add-dontbeevil-pinephone-devkit.patch
|
|
|
|
1dc710f5abacdd5698169d5e985efeca8114986c774c3d65e89812d08ceb3db5ebdc6dd64dd76a262c761f3bfc3ffb6bc237fd5236bd1f89c5975d12e42eda04 0002-dts-add-pinetab-dev-old-display-panel.patch
|
|
|
|
96849f40f6defc4ad7646256814bea5ac353c4e0479fd069365ff27456d63da801541ec616f6db736d60f3134384321a9eeb5bfbd555363bf1259c8de63d17fa 0003-dts-pinetab-add-missing-bma223-ohci1.patch
|
|
|
|
925bd630f3694d118b24f2f5a838ba105e4ca9ed8dd4294b6632310d8d6b1f421cdd673e2013758f9de7159050aa54e0f76e04edcff65f755842b1c95b6637e7 0004-arm64-dts-allwinner-Add-bluetooth-node-to-the-PineTa.patch
|
|
|
|
9bc6c2afadae8d367471f901b86a94be7fa70daf7a4bdde5bc6d4b1458b5ddd0e063a7765d962c68231c8f022d1c660d422124c31a2c899de768985d91d377ea 0005-dts-pinetab-make-audio-routing-consistent-with-pinep.patch
|
|
|
|
f6b35e61e88d933b612ee3212d71bb3e1aba8590c4985d9c17817426283df578476c00f3297683e43b570599384e78bb1fe76c506b3df93428e2101c4ccb1f3d 0006-dts-pinephone-remove-bt-firmware-suffix.patch
|
|
|
|
5e0566074fcb18b95c8ea079178f5d6716eb1ea325a25176e67f80eff1e5b10f90e282c8059a0a3315606546c61f05bd9ebad06adb67086cd123f0276cccbdc8 0007-media-ov5640-Implement-autofocus.patch
|
|
|
|
62809ac84db9d684b02d56dfc543451a1a13f319287466cfe913a847b945584ec60f7f556b1259ad3e26a44259a3fe587eeabeef6333f73a77204c3d3573f2ab 0008-dts-pinephone-drop-modem-power-node.patch
|
|
|
|
55d9bcd712c7b5402ec470e8c37d724348896b3b47136490a134e6ed305a2ec7734d977426952486537071098c8b64ebbe2f16b2f9e4b3f5796072734d7d4b89 0009-dts-pinephone-jack-detection.patch
|
|
|
|
0a9a97ae044c6aecdd1e28fa41065df4017f9925ff2e3448b5afc4f54739c57350a28cf5eb2e1eaa9fb0535a7e144c4d566a0516f37dc70d4e1d6a1d764e6c31 0010-pinephone-fix-pogopin-i2c.patch
|
|
|
|
c61d4f86eddecca99df1ea1323f988e575f9c49130b64a0c50d61028ff96e24aaa3131fb3731e62e9b07db67019104d98933e31457891a5ce1e6010e06232875 0011-drm-panel-simple-Add-Hannstar-TQTM070CB501.patch
|
|
|
|
7f57e4ebc0b0cebb624f340c568f22e93116f2753b634d9bc75eea1a1bc013b8f9375e1efd24a20bff79c3725166df210a3a30bb7643a4525e3d40b63b91c536 0012-ARM-dts-sun6i-Add-GoClever-Orion-70L-tablet.patch
|
|
|
|
71fad7ecff66a2cb692f3dd3d02301c4b419873f27693de81f50226b8ab93c229299e7dc663fdd07a7e8f03a6541527f3bb449626f865fcfde6a780ef1b91976 0013-drm-panel-simple-Add-Hannstar-HSD070IDW1-A.patch
|
|
|
|
902708a5a8dd8a815d3d1793933d307c551e3c10368d1805431b70691ee5d4438b7146c466549f457468e365f94073a35ae3304928af7581e5dc91ba5c8fa682 0014-ARM-dts-sun6i-Add-Lark-FreeMe-70.2S-tablet.patch
|
|
|
|
"
|