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>
|
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-01-05 16:23:46 +00:00
|
|
|
pkgver=5.10.4_git20210102
|
|
|
|
pkgrel=0
|
|
|
|
_tag="orange-pi-5.10-20210102-0145"
|
2020-09-30 19:03:08 +00:00
|
|
|
pkgdesc="Kernel fork with Pine64 patches (megi's tree, slightly patched)"
|
2020-09-11 13:09:37 +00:00
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
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
|
|
|
|
installkernel
|
|
|
|
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
|
2020-09-30 19:03:08 +00:00
|
|
|
0001-dts-add-dontbeevil-pinephone-devkit.patch
|
|
|
|
0002-dts-add-pinetab-dev-old-display-panel.patch
|
2020-12-10 21:20:32 +00:00
|
|
|
0003-media-gc2145-Added-BGGR-bayer-mode.patch
|
|
|
|
0004-dts-pinetab-add-missing-bma223-ohci1.patch
|
|
|
|
0005-dts-pinetab-make-audio-routing-consistent-with-pinep.patch
|
|
|
|
0006-arm64-dts-allwinner-Add-bluetooth-node-to-the-PineTa.patch
|
|
|
|
0007-dts-pinephone-remove-bt-firmware-suffix.patch
|
|
|
|
0008-media-ov5640-Implement-autofocus.patch
|
2020-12-26 18:55:57 +00:00
|
|
|
0009-leds-gpio-set-max_brightness-to-1.patch
|
2020-12-28 19:07:21 +00:00
|
|
|
0010-dts-pinephone-Add-pine64-pinephone-to-compat-list.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
|
|
|
|
|
|
|
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-01-05 16:23:46 +00:00
|
|
|
sha512sums="0b9971fbbebbfe50e4560292e821c6253443d76cad931666981a38a805f82e64dde8d8ec918fc2d38294a4260cd6952a3ac07c3e3a1a5e9ce066de53db86277e linux-postmarketos-allwinner-orange-pi-5.10-20210102-0145.tar.gz
|
|
|
|
f0a1c30dce59713113027850c8ed1ab70052b396224c5f20fb8d7fc18b8219ab9edd6e56189521044d24e8a266df1c37b9719ad10c7591cb5b4e54df4f75468d config-postmarketos-allwinner.aarch64
|
2020-11-18 10:43:27 +00:00
|
|
|
6b96dcdca84f0581d1f6354dfb752ef382b2a70793e881233e71c2af0c58d0eed965be7a494308a639e2e9035e46535f659e0c1721c0e3b8444a2ac981d7dc99 0001-dts-add-dontbeevil-pinephone-devkit.patch
|
|
|
|
5cd62667ebe1d5213d5d89423fe2a810c55fa84a238790af5f087b31cee3a3db66bcaba14001c345731bc1212060f74c0629433403be2485a5bbd4f0dd1c4f65 0002-dts-add-pinetab-dev-old-display-panel.patch
|
2020-12-10 21:20:32 +00:00
|
|
|
d92db05628de20c57f69edd0558fc56eb5a1c90f6dd3046813dc2b8c7393030f55e4980ae4135f9a03dadfe9ea0d51755d997c0ba8933af7091277a5fa3a611b 0003-media-gc2145-Added-BGGR-bayer-mode.patch
|
|
|
|
10eb10fe09258e524b8770961e44bcda55189f86b0f21cf12c831beb94e9b81c66857771bbe75833d56a7bd44907efceb0e1c4022fcaaf8f1d106a83ec8a19eb 0004-dts-pinetab-add-missing-bma223-ohci1.patch
|
|
|
|
26bd19eb7849ad59ac73a002edeb5d015630c0f802b4da1ec75a01581aeb406350097b5e37ef5c0981cc503cdbfc4d24d446c193a533f01e3e4b51426c9e192e 0005-dts-pinetab-make-audio-routing-consistent-with-pinep.patch
|
|
|
|
79f244794906b84f2033b04429f9bf187f171291c8f808a65f6d2c3a9b8a029eb0460f281148ff4a43c12be4fac3d78fcc4ddfa4c14e687a3f7fc310a5921048 0006-arm64-dts-allwinner-Add-bluetooth-node-to-the-PineTa.patch
|
|
|
|
11e3210958afcd9a04885f364d9ce707845173430581601cc8d08451529f80aab137f1c578ab3453e7249fe38001eb6aafe728ba5e34e39b65c7e47a3ecd9fda 0007-dts-pinephone-remove-bt-firmware-suffix.patch
|
2020-12-26 18:55:57 +00:00
|
|
|
510e1cf463485315f99dfc86511fb7271591159c39cf1bbeecbc1056f8861c35603d61946f3488bfbb7a779ce9324c69d230fa159386b7920f866b47ada444a4 0008-media-ov5640-Implement-autofocus.patch
|
2020-12-28 19:07:21 +00:00
|
|
|
6dee374e8459279e2e61894ab9146574283dad61605e4547a1258dd09e02646e46712059431b4086aebb95d24ab44c8b5dc21aa9d004f0190f864045a20b336a 0009-leds-gpio-set-max_brightness-to-1.patch
|
|
|
|
27c091b4fd306b5f6fbadac5881ecc5465804ea910eb299445f7d4f04d09e05b8cb708bf4ac24f9ae2a77afa287bfbebe691f6d90db189896c6951ff8f30bcf5 0010-dts-pinephone-Add-pine64-pinephone-to-compat-list.patch"
|