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
|
2020-05-02 19:07:31 +00:00
|
|
|
pkgver=5.6.0_git20200429
|
2020-06-20 09:27:27 +00:00
|
|
|
pkgrel=5
|
2018-09-16 15:53:45 +00:00
|
|
|
arch="aarch64"
|
2020-02-08 07:36:31 +00:00
|
|
|
pkgdesc="Kernel fork with Pine64 patches"
|
2019-07-26 09:34:36 +00:00
|
|
|
url="https://gitlab.com/pine64-org/linux/"
|
2020-02-27 06:59:55 +00:00
|
|
|
license="GPL-2.0-only"
|
2020-05-02 19:07:31 +00:00
|
|
|
makedepends="devicepkg-dev perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev openssl-dev file bison flex rsync xz"
|
2020-05-13 16:32:23 +00:00
|
|
|
options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-anbox"
|
2020-05-02 19:07:31 +00:00
|
|
|
_commit="2a6074e53b019db8a4a63cb255bc29422db3fe19"
|
2018-09-16 15:53:45 +00:00
|
|
|
source="
|
2019-12-22 15:20:21 +00:00
|
|
|
$pkgname-$_commit.tar.gz::https://gitlab.com/pine64-org/linux/-/archive/$_commit/linux-$_commit.tar.gz
|
|
|
|
config-$_flavor.aarch64
|
2020-02-27 06:59:55 +00:00
|
|
|
disable-power-save.patch
|
2019-06-01 15:18:59 +00:00
|
|
|
touch-dts.patch
|
2018-09-16 15:53:45 +00:00
|
|
|
"
|
|
|
|
|
2019-08-25 09:35:17 +00:00
|
|
|
subpackages="$pkgname-dev"
|
2018-09-16 15:53:45 +00:00
|
|
|
|
2019-12-22 15:20:21 +00:00
|
|
|
_carch=$CARCH
|
2018-09-16 15:53:45 +00:00
|
|
|
case "$_carch" in
|
|
|
|
aarch64*) _carch="arm64" ;;
|
|
|
|
arm*) _carch="arm" ;;
|
|
|
|
ppc*) _carch="powerpc" ;;
|
|
|
|
s390*) _carch="s390" ;;
|
|
|
|
esac
|
|
|
|
|
2019-12-22 15:20:21 +00:00
|
|
|
builddir="$srcdir/linux-$_commit"
|
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-05-02 19:07:31 +00:00
|
|
|
sha512sums="5c416e18ab0f798a18549cc63591d3eb29ea9e82ee9e48a34f2debfac590c516cecaa09fc1b51d0baedb330bd0f11c1e1f5868a3010591e73413b6d5397acfde linux-postmarketos-allwinner-2a6074e53b019db8a4a63cb255bc29422db3fe19.tar.gz
|
2020-06-20 09:27:27 +00:00
|
|
|
4110573d164bf89487d70dba4e31961ea310010d2912c0285c5dc4b660f066d3cec5115b8eb5d5969a4fae7be2c5937d8045cdc33f8bbc67002afb26c943942a config-postmarketos-allwinner.aarch64
|
2020-02-27 06:59:55 +00:00
|
|
|
8cdfb6d8a894e610c261446663dfbe34c01612a091fa029645e86913634de4394db0d1ab7dedb190052dff82330f0ddabe31860bbf7cd6fe0cdf23e37d0a6ca6 disable-power-save.patch
|
|
|
|
5f403bb1e3e7528954adcba4429768ce26bf13382dc6325ced245babcfb5252d515bea812b9df16d0e5370c9d4e07b4e0267f4c750281faf3cb6ffb29906700c touch-dts.patch"
|