Files
pmaports-rtwo/device/testing/linux-htc-flounder/APKBUILD
T
Luca Weiss 972d39afe9 device/*: comply to updated kconfig checks (MR 6087)
This was done in 7 steps:
* prepare by running pmbootstrap kconfig migrate
* fix up kconfig category:uefi
* fix up kconfig category:zram
* fix up kconfig category:default
* fix up kconfig category:default (NULL_TTY)
* fix up kconfig category:input
* bump pkgrels

[ci:skip-build]
[ci:ignore-count]
2025-01-29 17:38:06 +01:00

60 lines
1.8 KiB
Bash

# Maintainer: Segfault <awarnecke002@hotmail.com>
pkgname=linux-htc-flounder
pkgver=6.0.0
pkgrel=5
pkgdesc="Google Nexus 9 kernel fork"
arch="aarch64"
_carch="arm64"
_flavor="htc-flounder"
url="https://kernel.org"
license="GPL-2.0-only"
options="!strip !check !tracedeps pmb:cross-native
pmb:kconfigcheck-nftables pmb:kconfigcheck-zram
pmb:kconfigcheck-containers pmb:kconfigcheck-waydroid"
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev
devicepkg-dev bison flex openssl-dev xz findutils gzip"
# Source
_repository="linux"
_commit="1af7ece0542ef888433623a572ed8e19ca5e956a"
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::https://github.com/TuxThePenguin0/$_repository/archive/$_commit.tar.gz
$_config
"
builddir="$srcdir/$_repository-$_commit"
_outdir="out"
prepare() {
default_prepare
REPLACE_GCCH=0 \
. downstreamkernel_prepare
}
build() {
unset LDFLAGS
# V=1: workaround for pma#1990
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS" V=1
}
package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
make modules_install dtbs_install \
O="$_outdir" ARCH="$_carch" \
INSTALL_MOD_STRIP=1 \
INSTALL_MOD_PATH="$pkgdir" \
INSTALL_DTBS_PATH="$pkgdir/boot/dtbs"
# Flounder requires a gzip compressed kernel
gzip "$pkgdir"/boot/vmlinuz
mv "$pkgdir"/boot/vmlinuz.gz "$pkgdir"/boot/vmlinuz
}
sha512sums="
ee712d770cc863a6acff52ee32c5009657480864fcd748f0ccc7afb9edba912d727e56bd1d484bd391c5f3d0fed0d063ec8fca36af80c88572bcf85a6f00522e linux-htc-flounder-1af7ece0542ef888433623a572ed8e19ca5e956a.tar.gz
24cd0364ed2110f4889514eb7596c70284cafae0b311ea56dcf0e29455f86778c2dea2b92f20c1290ab5f87293e1c1d4bde025811e71dd13629c5ab4e188a8f5 config-htc-flounder.aarch64
"