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-07-21 23:58:57 +00:00
|
|
|
pkgver=6.9.10_git20240721
|
2024-05-13 05:38:25 +00:00
|
|
|
pkgrel=0
|
2024-07-21 23:58:57 +00:00
|
|
|
_tag="orange-pi-6.9-20240721-2345"
|
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
|
2024-05-13 05:38:25 +00:00
|
|
|
0003-dts-pinetab-add-missing-ohci1.patch
|
|
|
|
0004-dts-pinetab-make-audio-routing-consistent-with-pinep.patch
|
|
|
|
0005-dts-pinephone-drop-modem-power-node.patch
|
|
|
|
0006-drm-panel-simple-Add-Hannstar-TQTM070CB501.patch
|
|
|
|
0007-ARM-dts-sun6i-Add-GoClever-Orion-70L-tablet.patch
|
|
|
|
0008-drm-panel-simple-Add-Hannstar-HSD070IDW1-A.patch
|
|
|
|
0009-ARM-dts-sun6i-Add-Lark-FreeMe-70.2S-tablet.patch
|
|
|
|
0010-eMMC-workaround.patch
|
|
|
|
0011-arm64-dts-allwinner-orangepi-3-fix-ethernet.patch
|
|
|
|
0012-ARM-dts-allwinner-sun5i-a13-pocketbook-614-plus-Add-.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-07-21 23:58:57 +00:00
|
|
|
c6081383741fe883d8f6e223caa45d7ecf179f4cd0c759432bbbb2e43603088840393a0cf58735ab5dda4dbf5e2655d8c9b053a74b029ac4768c200ff6ca6f65 linux-postmarketos-allwinner-orange-pi-6.9-20240721-2345.tar.gz
|
|
|
|
97f38f22c52578144a719dac157c3580ed55935c45c5c913f48664efa05157b46995908a19bcef8f27a26342757eb7447f7fd106e525523f56343f48f29e4b68 config-postmarketos-allwinner.aarch64
|
|
|
|
46b613469dc4c8f22bf03b143bd8822c2afc5993fd1ef3ed58bd681469ee283ed26c8e6ba4cb5a7eee5dcf0474dede72e39c4f65931baec00bfc05b8452776fe config-postmarketos-allwinner.armv7
|
2024-05-13 05:38:25 +00:00
|
|
|
a1fe1a21c34062eb92b6a4a9d2ef330d0e745859af283ccf05fc899ec263f9d452c1399c29620a0e4c748eca4b0c13645668b2fc0dc72f5703426d472f1294be 0001-dts-add-dontbeevil-pinephone-devkit.patch
|
|
|
|
0ef26b34fa834c119ebff6daa27b1dd3fac27448d6a40c0b2022a00c239dad0ef3e2b3ab3f9eec5460f921c9c6ea21db360adc175a7e658d5c34c5d0aacc498f 0002-dts-add-pinetab-dev-old-display-panel.patch
|
|
|
|
d37d929100a9de9431cc3cef6b714b61b5af9633e35a2880fcc8b60279fdc9ab65198fa70d01e070a9f263818d994b9b851973bb079ddea1ca66d2b7964f365d 0003-dts-pinetab-add-missing-ohci1.patch
|
|
|
|
e368935e8e1a2380b0b42961ca65e7ebb842916e80b7b3e96211d5091413d5b8112e60f2437f82795e9c21183411f81daf1f2806b7a93b0c03dca0a64e25f079 0004-dts-pinetab-make-audio-routing-consistent-with-pinep.patch
|
|
|
|
e4dd137537cecc8cfbb2152120134ee4fb19b930ed0e66313c414fb14061f9d2dd4c280cfbde722f8f39531868823c8f12ec79e45800f5c6e0ded03475557f79 0005-dts-pinephone-drop-modem-power-node.patch
|
|
|
|
0234490da9ea6d172ccea95092ab8a0623d2b57d43b0066d0b77a096b4a5e2a02047579f12b09d2e6bc1b77a3f9ea67dc26e9d5c02b947a7126f822132c85d30 0006-drm-panel-simple-Add-Hannstar-TQTM070CB501.patch
|
|
|
|
09e8a2b06b45bb0be75a4c09f6a9d165861a950bf6ed1cd91faa493710dd9fdc0aa35a38e23a731bb3f281c30c353310e4a17cdea3ddc6ab7ec3436722eb3b07 0007-ARM-dts-sun6i-Add-GoClever-Orion-70L-tablet.patch
|
|
|
|
96d7b7d8161dcd7379092b6aec531ca47ee0566c308057aec2f934256f67ee9f3dcd2fb7ca592b056a5305600ea4125932c96f2c244966d7d46f9b1f3fb77052 0008-drm-panel-simple-Add-Hannstar-HSD070IDW1-A.patch
|
|
|
|
22cf608d79337aee6354e7db6bf1f177a6b4ab89f7b26da46e0cf2e280978ace7203829a0e87675449ef41b488ab114cedd5ab911e326b87fa823a0073c8d1fc 0009-ARM-dts-sun6i-Add-Lark-FreeMe-70.2S-tablet.patch
|
|
|
|
898f1227fe27e38706ea8e6e2846cbc9bded328090ddb457733cf6417f2e1da5bac2d9caa753b29a0667a2733a937b9d447b666a070462a93d1cfea3f88daea7 0010-eMMC-workaround.patch
|
|
|
|
4acfd79aa2978d6b8078fbd7649a2dda4ef5a1e03b52d7e034a7cc40b5a7349c4dc741fab9cb7722fa61eb022fd270719ed5257ac8487796c9e2b1135a123e86 0011-arm64-dts-allwinner-orangepi-3-fix-ethernet.patch
|
|
|
|
0770f510a12f8ec29fa2798682b0687438f733634df0b339876b8181c08cd154904412aa88d5dd5df336803da3a4f5c274cba5008be533e036dc5deb3c41fb17 0012-ARM-dts-allwinner-sun5i-a13-pocketbook-614-plus-Add-.patch
|
2021-05-03 03:48:05 +00:00
|
|
|
"
|