pmaports/device/community/linux-postmarketos-qcom-sm6350/APKBUILD
Luca Weiss 64d8dc390e
community/linux-postmarketos-qcom-sm6350: adjust config (MR 3416)
Switch to minimal config that I've been using for development for the
last months, with some minor modifications. In addition to that enable
all the kconfig options that will be a part of the new
pmb:kconfigcheck-community (anbox/waydroid + iwd + nftables + containers
+ zram + netboot).

Note by ollieparanoid:
Re-applied it after I just reverted it. Now realized that I didn't need
to revert this in the first place, this is and aarch64 package and the
cross compilers (x86_64 packages) needed to be published. Anyway, the
gcc mess is mostly resolved now, see issue 2167.

[ci:skip-build] Already built successfuly on CI in MR
2022-09-11 16:43:38 +02:00

61 lines
1.7 KiB
Text

# Maintainer: Luca Weiss <luca@z3ntu.xyz>
_flavor="postmarketos-qcom-sm6350"
pkgname=linux-$_flavor
pkgver=6.0.0_rc1
pkgrel=1
pkgdesc="Mainline Kernel fork for SM6350 devices"
arch="aarch64"
_carch="arm64"
url="https://github.com/z3ntu/linux"
license="GPL-2.0-only"
options="!strip !check !tracedeps
pmb:cross-native
pmb:kconfigcheck-nftables
"
makedepends="bash bison findutils flex installkernel openssl-dev perl"
_repo="linux"
_config="config-$_flavor.$arch"
_commit="4a7a900c7bc482b752cf0d2a25a384233c5250d8"
# Source
source="
$_repo-$_commit.tar.gz::https://github.com/z3ntu/$_repo/archive/$_commit/$_repo-$_commit.tar.gz
$_config
"
builddir="$srcdir/$_repo-$_commit"
prepare() {
default_prepare
cp "$srcdir/config-$_flavor.$arch" .config
}
build() {
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor"
}
package() {
mkdir -p "$pkgdir"/boot
install -Dm644 "$builddir/arch/$_carch/boot/Image.gz" \
"$pkgdir/boot/vmlinuz"
make modules_install dtbs_install \
ARCH="$_carch" \
INSTALL_PATH="$pkgdir"/boot/ \
INSTALL_MOD_PATH="$pkgdir" \
INSTALL_MOD_STRIP=1 \
INSTALL_DTBS_PATH="$pkgdir"/usr/share/dtb
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
install -D "$builddir"/include/config/kernel.release \
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
}
sha512sums="
2f57c4e319368fcc793a4c54c45b9cf6b5a985d77ee4c4211b656319d40baae687788ace9c2d990af86e2cbd687fc3214c0cc68aa89d4d2a1f8ee20077917a94 linux-4a7a900c7bc482b752cf0d2a25a384233c5250d8.tar.gz
ae017de1cb775dd1a5204fb9ca1f28b67d4b4b936a26e46bd3b4702c384dc84232e95065e15f85a535a2972c27bf7a83709737c76fc648f5f430d71daddc78c6 config-postmarketos-qcom-sm6350.aarch64
"