5efdbd13fa
This patches from the megi solves the issue of the MIPI-DSI panels framerate being at 2/3rd of actual or expected rate. [ci:skip-build]: already built successfully in CI
96 lines
4.9 KiB
Text
96 lines
4.9 KiB
Text
# Maintainer: Martijn Braam <martijn@brixit.nl>
|
|
# Co-Maintainer: Luca Weiss <luca@z3ntu.xyz>
|
|
# Co-Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
# Co-Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
|
|
_flavor=postmarketos-allwinner
|
|
_config="config-$_flavor.$CARCH"
|
|
pkgname=linux-$_flavor
|
|
pkgver=5.9.1_git20201019
|
|
pkgrel=3
|
|
_tag="orange-pi-5.9-20201019-1553"
|
|
pkgdesc="Kernel fork with Pine64 patches (megi's tree, slightly patched)"
|
|
arch="aarch64"
|
|
_carch="arm64"
|
|
url="https://megous.com/git/linux/"
|
|
license="GPL-2.0-only"
|
|
makedepends="
|
|
bison
|
|
devicepkg-dev
|
|
flex
|
|
installkernel
|
|
openssl-dev
|
|
perl
|
|
rsync
|
|
xz
|
|
"
|
|
options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-anbox"
|
|
source="$pkgname-$_tag.tar.gz::https://github.com/megous/linux/archive/$_tag.tar.gz
|
|
config-$_flavor.aarch64
|
|
0001-dts-add-dontbeevil-pinephone-devkit.patch
|
|
0002-dts-add-pinetab-dev-old-display-panel.patch
|
|
0003-Disable-8723cs-power-saving.patch
|
|
0004-media-gc2145-Added-BGGR-bayer-mode.patch
|
|
0005-dts-pinephone-Disable-flash-led-in-OV5640-node.patch
|
|
0006-dts-pinetab-add-missing-bma223-ohci1.patch
|
|
0007-dts-pinetab-make-audio-routing-consistent-with-pinep.patch
|
|
0008-pinetab-bluetooth.patch
|
|
0009-dts-pinephone-remove-bt-firmware-suffix.patch
|
|
0010-usb-musb-avoid-the-hang-in-musb_pm_runtime_check_ses.patch
|
|
0011-media-i2c-ov5640-implement-autofocus.patch
|
|
0012-drm-sun4i-Fix-mipi-dsi-panel-framerate-being-2-3-of-.patch
|
|
0013-drm-panel-st7703-Fix-xbd599-timings-to-make-refresh-.patch
|
|
"
|
|
subpackages="$pkgname-dev"
|
|
builddir="$srcdir/linux-$_tag"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
REPLACE_GCCH=0 \
|
|
. downstreamkernel_prepare
|
|
}
|
|
|
|
build() {
|
|
unset LDFLAGS
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor" \
|
|
CFLAGS_MODULE=-fno-pic
|
|
}
|
|
|
|
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/usr/share/dtb"
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
sha512sums="fd08e2c580ca2e89513d5d78e09af2c782dc8b06165fa5125ee0ebdafc002f0748c631aaba54415d0dbc520b8b7388f39076de4ce0c6510878089877478dacf0 linux-postmarketos-allwinner-orange-pi-5.9-20201019-1553.tar.gz
|
|
87158c006c26bdb05e2e071d465035bfa065c2d7203d2b2e75ce751af2080a13218ded455d899acb8b8ec470591f2c6a986f15e14787e6f78c9c5f08c656e1fa config-postmarketos-allwinner.aarch64
|
|
bfeb383784e495a5d7c58fdd7abf44fa0d3460b48ddae09d69997791bb58beb55da8d04f05f30d12f4bdadbe81d0d5f8781c37a4904c1d7a283da3f7ecbadeda 0001-dts-add-dontbeevil-pinephone-devkit.patch
|
|
c157e2495a02417c2ef54c9e1788db7b32a111dd412146c4c925f2f489d0b5a94be4b484d71285abe83c4523f1ae1d4ec6f4af0acad922cb676e8a8f07611698 0002-dts-add-pinetab-dev-old-display-panel.patch
|
|
ab72dffc08e56c7ee96f87b30454f38eed6c4deb041f4cc562bdbf358a66821a698517ba9b095e327a0648cfc10e3b014187d428926ab87cb1c2441171ce2040 0003-Disable-8723cs-power-saving.patch
|
|
38d024a472dfc070b09c922548ba4eb952fde16bedbf265667c7609056f06d6d637a6236227a511198e488120bd0a2dcec5ccfc4708dc3efd800402c1904384c 0004-media-gc2145-Added-BGGR-bayer-mode.patch
|
|
796d59dc83b331e72be5943cdf899244e47f6ef14cace26950b1bb6b3f0fe5a942adf6da126a27ee0421c9a2cf862a9a18be4f1832e0ea15e4afe8a10151643a 0005-dts-pinephone-Disable-flash-led-in-OV5640-node.patch
|
|
60322820a6048c95f7a62180f3aa872f929c8c0aa6bc5cecff882cf671c132666ef803c6754e6d6f4b3d4342362ba9901c21cb23e5186601327ea17ac3d97573 0006-dts-pinetab-add-missing-bma223-ohci1.patch
|
|
36c310b00520650aec1e4ece3e995ab649d79315e5057f85587f3a6b1b5546549599c7db14bbf9b6cba76d87512116e132d0064f14aed0a6b7bbe66856e322d9 0007-dts-pinetab-make-audio-routing-consistent-with-pinep.patch
|
|
5bb1352b0bf35ff72eb9729248162faa37b0f1fe28c5cf9bd39b54148ff7750ca53d5934d6a128002a7a190180ef8e626733f260db722831ac35e3a5c1b25661 0008-pinetab-bluetooth.patch
|
|
a392e7b04dc411986b90adf8774ce8f4b77617993e7ca068ea202aa3c925d0ec3bdbd4c395505696816dce6284955bf96901d75833a9b6ca9df544386b07ff65 0009-dts-pinephone-remove-bt-firmware-suffix.patch
|
|
f222b41c7900609210795c062b6d9f2fd79c9989f9a604d1d67f10e915b3fc18fcfc712f364b343b506461ff717ac9de2b5ec0edd5d69b2c73f9a5461ab4a919 0010-usb-musb-avoid-the-hang-in-musb_pm_runtime_check_ses.patch
|
|
69d7f6e2123d78910930302a4628c8af5c9baeee4e88873f15334c13dc8ed53425f1aa47c16b1a0ad8525ac396576d0dd5cdd962d645f1273837229ad817f3f3 0011-media-i2c-ov5640-implement-autofocus.patch
|
|
65210b347455e91cf85fce043ca031ee139500da89bcef05a7c97326705b14a1c59ef1277282fee5507998a6408e4c3b945126cbbf648a3ce69d3c68a995aae2 0012-drm-sun4i-Fix-mipi-dsi-panel-framerate-being-2-3-of-.patch
|
|
669cf3aaf1c101a924808185bda51f735fadad9e6f5c0485e368347312a36427f7b53430bb08798b8ceb1a661a3ca4a36dd1787cb074a3b40bbb6af02dd32618 0013-drm-panel-st7703-Fix-xbd599-timings-to-make-refresh-.patch"
|