0b00e23280
This enables mult-sensor support in sun6i-csi, support for the gc2145 front camera, the new panel driver from mainline linux and a small fix for the anx7688 that prevents it spamming the kernel log when no cable is plugged in on 1.2a hardware.
70 lines
2.2 KiB
Text
70 lines
2.2 KiB
Text
_flavor=postmarketos-allwinner
|
|
_config="config-$_flavor.$CARCH"
|
|
pkgname=linux-$_flavor
|
|
pkgver=5.7.0_git20200704
|
|
pkgrel=0
|
|
arch="aarch64"
|
|
pkgdesc="Kernel fork with Pine64 patches"
|
|
url="https://gitlab.com/pine64-org/linux/"
|
|
license="GPL-2.0-only"
|
|
makedepends="devicepkg-dev perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev openssl-dev file bison flex rsync xz"
|
|
options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-anbox"
|
|
_commit="b7b625b8b43859aa1c46d34106541eb5cda373a5"
|
|
source="$pkgname-$_commit.tar.gz::https://gitlab.com/pine64-org/linux/-/archive/$_commit/linux-$_commit.tar.gz
|
|
config-$_flavor.aarch64
|
|
disable-power-save.patch
|
|
touch-dts.patch
|
|
"
|
|
|
|
subpackages="$pkgname-dev"
|
|
|
|
_carch=$CARCH
|
|
case "$_carch" in
|
|
aarch64*) _carch="arm64" ;;
|
|
arm*) _carch="arm" ;;
|
|
ppc*) _carch="powerpc" ;;
|
|
s390*) _carch="s390" ;;
|
|
esac
|
|
|
|
builddir="$srcdir/linux-$_commit"
|
|
|
|
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="99adf9816c40691ebe2213f16c4c3ccbefdc564974115482f772ff3252fcb4b419f63368964e999a946997ce90e0e339fbe1653a4bc4c2cee69f51fd528175d9 linux-postmarketos-allwinner-b7b625b8b43859aa1c46d34106541eb5cda373a5.tar.gz
|
|
8bf4c9811e8e4abef7210567c5901efc9a8a80a8434289b9c92d0d3755508c246f13e00f1c83d83b69dafb61336d5e0a9e671ab5341bbba77e9269d7fdb100f5 config-postmarketos-allwinner.aarch64
|
|
3c0d9d282a36a5f6a442b434839d77851f9b20185725cb73aee88e6e209c68fd3d71df8e2a36ffcdb605c47f86df5dbcda5d00353c75c23303861936196924e0 disable-power-save.patch
|
|
c6e1ff1c060f68a59fa57a7cfc573a500fc8d200f56193530f7c1967e4f70f17cb2c930496f6a6489a6a10de130a2e66f5cd328eb6c4ae936f4af348a7413c3b touch-dts.patch"
|