70 lines
2.2 KiB
Text
70 lines
2.2 KiB
Text
_flavor=postmarketos-allwinner
|
|
_config="config-$_flavor.$CARCH"
|
|
pkgname=linux-$_flavor
|
|
pkgver=5.6.0_git20200429
|
|
pkgrel=3
|
|
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="2a6074e53b019db8a4a63cb255bc29422db3fe19"
|
|
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="5c416e18ab0f798a18549cc63591d3eb29ea9e82ee9e48a34f2debfac590c516cecaa09fc1b51d0baedb330bd0f11c1e1f5868a3010591e73413b6d5397acfde linux-postmarketos-allwinner-2a6074e53b019db8a4a63cb255bc29422db3fe19.tar.gz
|
|
15d4ac080c925312971bfde14decf1c89d32879382bdabdb7965652cd6cab51e2dbcf26df8072b6800291de938dd7304fb4b72c7e9a45908b49efa2cd0a772f5 config-postmarketos-allwinner.aarch64
|
|
8cdfb6d8a894e610c261446663dfbe34c01612a091fa029645e86913634de4394db0d1ab7dedb190052dff82330f0ddabe31860bbf7cd6fe0cdf23e37d0a6ca6 disable-power-save.patch
|
|
5f403bb1e3e7528954adcba4429768ce26bf13382dc6325ced245babcfb5252d515bea812b9df16d0e5370c9d4e07b4e0267f4c750281faf3cb6ffb29906700c touch-dts.patch"
|