pmaports/device/main/linux-postmarketos-allwinner/APKBUILD
Arnav Singh 646e0b50df
linux-postmarketos-allwinner: upgrade to 6.8.4_git20240405 (MR 5008)
- 0003-dts-pinetab-add-missing-bma223-ohci1.patch

  The original patch added a node for BMA223 and a node for ohci1.
  The former is already present in upstream, so the new patch
  0003-dts-pinetab-add-missing-ohci1.patch only adds the latter.

- 0004-arm64-dts-allwinner-Add-bluetooth-node-to-the-PineTa.patch

  The patch is now present in upstream so it has been removed.
  However it's worth noting that upstream's node has the wake GPIOs
  reversed from the original patch. The original patch added:

      device-wake-gpios = <&r_pio 0 6 GPIO_ACTIVE_LOW>; /* PL6 */
      host-wake-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */

  ... while upstream has:

      device-wake-gpios = <&r_pio 0 5 GPIO_ACTIVE_LOW>; /* PL5 */
      host-wake-gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */

  This has not been tested on a PineTab.

- 0005-dts-pinetab-make-audio-routing-consistent-with-pinep.patch

  The first hunk of the patch is in upstream and has been removed.

- 0013-Revert-usb-quirks-Add-USB_QUIRK_RESET-for-Quectel-EG25G-Modem.patch

  This patch reverted upstream commit that was present until v6.7
  ( f9e3e7ea4e )
  but is not present in v6.8, so the patch has been removed.

- 0014-usb-serial-option-add-reset-resume-callback-for-WWAN.patch

  The patch is now present in upstream so it has been removed.
2024-04-06 12:54:29 -07:00

99 lines
4.6 KiB
Text

# Maintainer: Jan Jasper de Kroon <jajadekroon@gmail.com>
# Co-Maintainer: Arnav Singh <me@arnavion.dev>
_flavor=postmarketos-allwinner
_config="config-$_flavor.$CARCH"
pkgname=linux-$_flavor
pkgver=6.8.4_git20240405
pkgrel=1
_tag="orange-pi-6.8-20240405-1842"
pkgdesc="Kernel fork with Pine64 patches (megi's tree, slightly patched)"
arch="aarch64 armv7"
url="https://megous.com/git/linux/"
license="GPL-2.0-only"
makedepends="
bison
devicepkg-dev
findutils
flex
gmp-dev
installkernel
mpc1-dev
mpfr-dev
openssl-dev
perl
rsync
xz
bash
"
options="!strip !check !tracedeps
pmb:cross-native
pmb:kconfigcheck-community
"
source="$pkgname-$_tag.tar.gz::https://codeberg.org/megi/linux/archive/$_tag.tar.gz
config-$_flavor.aarch64
config-$_flavor.armv7
0001-dts-add-dontbeevil-pinephone-devkit.patch
0002-dts-add-pinetab-dev-old-display-panel.patch
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
"
builddir="$srcdir/linux"
case "$CARCH" in
aarch64*) _carch="arm64" ;;
arm*) _carch="arm" ;;
esac
prepare() {
default_prepare
REPLACE_GCCH=0 \
. downstreamkernel_prepare
}
build() {
unset LDFLAGS
# V=1: workaround for pma#1990
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor" \
CFLAGS_MODULE=-fno-pic \
DTC_FLAGS="-@" \
V=1
}
package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
make -j1 modules_install dtbs_install \
ARCH="$_carch" \
INSTALL_MOD_STRIP=1 \
INSTALL_MOD_PATH="$pkgdir" \
INSTALL_DTBS_PATH="$pkgdir/boot/dtbs"
}
sha512sums="
c1cd45c10536b729377190507af1fe646826adb2f9e8cd0bf8a6096d480ae2b53fe8231d7dd4a3855ec645d66ac31e9c781c8b9a6efe4b4d3f12ec744d7cd905 linux-postmarketos-allwinner-orange-pi-6.8-20240405-1842.tar.gz
1f6bc947852f00125644a9ff661244b522fc033c2c43078a216c1e23771b44d49fa2fb062445b568ab5d9c4480125fe2a69a8cb622d394f38cd25d5d45d219af config-postmarketos-allwinner.aarch64
b00738187d2092a356a6295aed7ce993dce5cd7042e1b221a2850098c215e4e063b2e9ba62c1f792f5cb2d60200d329cd472e118a3db0a5cc8bb00c3fa8b6ca0 config-postmarketos-allwinner.armv7
a45678961d0ad1ef65ca3e3817a2d24f45f8048734fdcbe7983f188be86e9dc16a84c047b5d7ceb35b76a9e28e765ecbb48e7e6430c412fa0ebe070537d3be64 0001-dts-add-dontbeevil-pinephone-devkit.patch
46920fccbdd8e21f6c7cee9fe762f9b082889ed53ba57c0823570177c86f40ea08fe369245c3d179e53990d5f285105ab23d018be2b1eb7a649273b3f16b306d 0002-dts-add-pinetab-dev-old-display-panel.patch
1827612578b73f01f5c52c2b4a01980d8168cf12336ef56c147029bd14ace6d3c0d4a1803a7d5ca79556c6614ab16176e7962048617930ce7db8ed79772a7172 0003-dts-pinetab-add-missing-ohci1.patch
8c2d3d4d0aa6780ad2b43b7408b072452720bd3dedd68c9f199b32c432ce9650915e0f1564504532206f256bc0844f068c4e1e3235063f7821dbcfbeba6e78b9 0004-dts-pinetab-make-audio-routing-consistent-with-pinep.patch
7a1f26ec69c76855524b79815999ea4a9cc472952cd7473d08fea3c0ec6a6aa5874538109ff713e1a8d6bdbdd3504c9aa7d617285c08761adca6277e7641bb59 0005-dts-pinephone-drop-modem-power-node.patch
d753efdd6198638b6dc376d32d7de0fcd738b7236c436ed31ed23ac3f61ee98c7d7e72127905cb3199f141d51dc3adb741663d33ab37aecad0ed083d7c461336 0006-drm-panel-simple-Add-Hannstar-TQTM070CB501.patch
c76484821710e17b9b381ebb77298dfe8a74140f8769f9381567d2dd752fc418e2e0c1bb900abe0bb22b71bd73559d8f4f277e4f46d6f46490a65d9640d987a9 0007-ARM-dts-sun6i-Add-GoClever-Orion-70L-tablet.patch
31950f5b181127706e2c68ad4c7c9262d2e0c07bf61728cb68f79a6cac41409069cd7ea5c8d2bb2e111cdb40f8df4497afbf21aff9bc055698cbefd501ce654c 0008-drm-panel-simple-Add-Hannstar-HSD070IDW1-A.patch
953d35289eb076918fc964c26cc184bcd344915a9f2cefba86ea64ef33726833e6b29b7cf5c485d978628e99d10c390740636521864be71c7c2aabc6f9a373dc 0009-ARM-dts-sun6i-Add-Lark-FreeMe-70.2S-tablet.patch
63246de2077f2f6d9494f5816c974dd033747178878b0834c6de9520a15333cff8f44663c43d6d937c46d9ee81a34c7d09a825ab4b0b8de6ed5277cf07957a93 0010-eMMC-workaround.patch
e68796dc481aa198855b458ff1917c5e8813f93c90cb97860fe391c088ae684c9ebed750029f25a06e2962d5c38d92fb0acb7c2bfbee1162b0bda21fbca2418b 0011-arm64-dts-allwinner-orangepi-3-fix-ethernet.patch
a1bc4d8d0232614ef28d96e17386e231b3be65f4d93533c947f3c03ad8ffaec968b41ff1367fb65f3762f476cc17340590ca700c1df09259ab3efed4a55e7fd7 0012-ARM-dts-allwinner-sun5i-a13-pocketbook-614-plus-Add-.patch
"