2023-11-02 08:07:41 +00:00
|
|
|
# Maintainer: Jan Jasper de Kroon <jajadekroon@gmail.com>
|
2023-10-28 16:59:11 +00:00
|
|
|
# Co-Maintainer: Arnav Singh <me@arnavion.dev>
|
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
|
2024-01-28 20:21:56 +00:00
|
|
|
pkgver=6.7.2_git20240127
|
2024-02-09 20:18:20 +00:00
|
|
|
pkgrel=2
|
2024-01-28 20:21:56 +00:00
|
|
|
_tag="orange-pi-6.7-20240127-1717"
|
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
|
2021-11-23 17:49:57 +00:00
|
|
|
bash
|
2020-09-11 13:09:37 +00:00
|
|
|
"
|
2021-08-14 08:18:53 +00:00
|
|
|
options="!strip !check !tracedeps
|
|
|
|
pmb:cross-native
|
2022-09-07 20:43:05 +00:00
|
|
|
pmb:kconfigcheck-community
|
2021-08-14 08:18:53 +00:00
|
|
|
"
|
2023-10-16 05:36:53 +00:00
|
|
|
source="$pkgname-$_tag.tar.gz::https://codeberg.org/megi/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
|
2022-04-27 14:19:16 +00:00
|
|
|
0006-dts-pinephone-drop-modem-power-node.patch
|
|
|
|
0007-drm-panel-simple-Add-Hannstar-TQTM070CB501.patch
|
|
|
|
0008-ARM-dts-sun6i-Add-GoClever-Orion-70L-tablet.patch
|
|
|
|
0009-drm-panel-simple-Add-Hannstar-HSD070IDW1-A.patch
|
|
|
|
0010-ARM-dts-sun6i-Add-Lark-FreeMe-70.2S-tablet.patch
|
|
|
|
0011-sunxi-mmc-h6-fix.patch
|
|
|
|
0012-arm64-dts-allwinner-orangepi-3-fix-ethernet.patch
|
2023-10-29 11:13:10 +00:00
|
|
|
0013-Revert-usb-quirks-Add-USB_QUIRK_RESET-for-Quectel-EG25G-Modem.patch
|
|
|
|
0014-usb-serial-option-add-reset-resume-callback-for-WWAN.patch
|
2020-05-24 17:54:52 +00:00
|
|
|
"
|
2023-10-16 05:36:53 +00:00
|
|
|
builddir="$srcdir/linux"
|
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
|
2023-02-23 20:28:41 +00:00
|
|
|
# V=1: workaround for pma#1990
|
2018-09-16 15:53:45 +00:00
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
2019-12-22 15:20:21 +00:00
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor" \
|
2021-11-06 21:28:00 +00:00
|
|
|
CFLAGS_MODULE=-fno-pic \
|
2023-02-23 20:28:41 +00:00
|
|
|
DTC_FLAGS="-@" \
|
|
|
|
V=1
|
2018-09-16 15:53:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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" \
|
2022-07-30 18:11:01 +00:00
|
|
|
INSTALL_DTBS_PATH="$pkgdir/boot/dtbs"
|
2018-09-16 15:53:45 +00:00
|
|
|
}
|
2019-08-25 09:35:17 +00:00
|
|
|
|
2021-05-03 03:48:05 +00:00
|
|
|
sha512sums="
|
2024-01-28 20:21:56 +00:00
|
|
|
0135ca518e82c7f858a7892b87c79e875d5f3f8d3ea884a969e6f3bb7f2a1fe260058debecce286e00a96b03c297533e4edf1859095837bd664793a29aaca41b linux-postmarketos-allwinner-orange-pi-6.7-20240127-1717.tar.gz
|
2024-02-09 20:18:20 +00:00
|
|
|
f082afda7caeac9d8c0f91fbaab7b1d9e25ef9c0777ea7199340e460219ca13f056e201dd6dfa5b530cd2f667e7f6888957732675fca715e06b50387cd267854 config-postmarketos-allwinner.aarch64
|
|
|
|
5cf0dd2fd3ee1146546cd43023f42577847f734870f19f88045eea5f408b9d16ea75072ed1e4fb384af4bb2655f554fd3b3f449de9adb554cdce612760a23bd9 config-postmarketos-allwinner.armv7
|
2022-04-24 12:03:12 +00:00
|
|
|
126e0a65e04f22f14eac1281a69000d9d5b107ed8fd1b52f37e812751f55e6c45b0240ceac61c9d95ae7f0543aaf9d96b85a8532baf59283c077b9945e615367 0001-dts-add-dontbeevil-pinephone-devkit.patch
|
2024-01-10 15:51:27 +00:00
|
|
|
99edeccdee7beae5dc7337d78ba92de2f3d724b7648ede30ab040a66bdac0e38a6595e212e26011d608ccb8a92ffa9e393965f936dfead65ffe9b7eb31dfa345 0002-dts-add-pinetab-dev-old-display-panel.patch
|
|
|
|
82c0203b02c671934d62e52311827ac1cc5b358e0843715ea2235117e4b47d6de63b29fdfc7c1adfc550cc7eb363c384de8276be1ca17da6e48916020124022d 0003-dts-pinetab-add-missing-bma223-ohci1.patch
|
|
|
|
1fcfcc448424af475efd7f848eec04763c5930070f54fdb487e6f28717df7e20b73c0f444e9322d362deeedfd87b4e91c6e61e274d23206fafef36ca97ff95d6 0004-arm64-dts-allwinner-Add-bluetooth-node-to-the-PineTa.patch
|
|
|
|
16373f069c8a3b110f68cce6d60a7b75af32635467454f4203ceeae2f7f3a74dce73f9c41b00bc340fae580cff335f0fa8d4b033cb31907b69e7a05030461b0f 0005-dts-pinetab-make-audio-routing-consistent-with-pinep.patch
|
|
|
|
681c945abdb8dd595d505a36ef84100b968754a1c861e7525c00185f19aa431304ff3c3258750d2d67a8aa2fd8e078a9bbc4b5cabb1802c24637ce26ecd3ee2d 0006-dts-pinephone-drop-modem-power-node.patch
|
|
|
|
c4ab9d65b4cd6ebe443cef51693ddaddfd55d3f73b5955b2c0211ecbc69054b17e875905f56c503873bb61f6fdb39e097d85d264d6e1bd6b7ab6526076ccd535 0007-drm-panel-simple-Add-Hannstar-TQTM070CB501.patch
|
|
|
|
943f8a9791461621c20b1dd0db9946a31734c4fe316626d045de2e2207e6f099d469e1a5b9ab9bd93cd5fca85b6422a211d435c6124aea1a2ecee818c7b35ac2 0008-ARM-dts-sun6i-Add-GoClever-Orion-70L-tablet.patch
|
|
|
|
952e2332cbc85e69259b037302411520d46c18bb90371492b6cfcc9eeeaf96d030875bf0a17edea756c9744faee38fd42288345681e5e903f6e64d0849f76db2 0009-drm-panel-simple-Add-Hannstar-HSD070IDW1-A.patch
|
|
|
|
b7c084bb32cfc18defcec77966f1944fd3b33bb48769a4c0e257709d0f3898c5e0ca2a50c39a5d4513463580eef58b5301e75345bd36d6cc5f84347f7d241a8c 0010-ARM-dts-sun6i-Add-Lark-FreeMe-70.2S-tablet.patch
|
|
|
|
8ee720bc6195b1b454a274e7ad9a245107aa6d127018b98909c5f105d608568bcf1651343bf9633f4804d5649f4df7e3390d6eb72a708666e89337e39427943a 0011-sunxi-mmc-h6-fix.patch
|
|
|
|
370e963805a4c984dc501a6a6f686cac059485a275370c5f55de0841e227c5f6652abb38ad935c8dd046014e632e70129d3f8fbeae9650fe7de6f0d10e9cdc3a 0012-arm64-dts-allwinner-orangepi-3-fix-ethernet.patch
|
|
|
|
c766911f76d36b997582533707d7d7a089ed1272e49a79dbe75f7c1eafef0ba3f1417d6c66f25e12e56124e0cd4bb9f443d400236e252ef1c43d53def9392a87 0013-Revert-usb-quirks-Add-USB_QUIRK_RESET-for-Quectel-EG25G-Modem.patch
|
|
|
|
382e6e8785235788101459ae47c940ec85831007c61e3f14c4e3a43abfa21b95cdaa6bdd1b7fdd6fd26944f4c629d41b9ab776e89d9a18778fbc9f6a7785444b 0014-usb-serial-option-add-reset-resume-callback-for-WWAN.patch
|
2021-05-03 03:48:05 +00:00
|
|
|
"
|