pmaports/device/testing/linux-samsung-coreprimevelte/APKBUILD
Duje Mihanović f578581ad0
linux-samsung-coreprimevelte: upgrade to 6.6 (MR 4540)
Bluetooth and poweroff support are also added.

[ci:skip-build]: already built successfully in CI
2023-11-08 19:48:15 +01:00

57 lines
1.8 KiB
Text

# Maintainer: Duje Mihanović <duje.mihanovic@skole.hr>
_flavor=samsung-coreprimevelte
pkgname=linux-$_flavor
pkgver=6.6
pkgrel=0
pkgdesc="Samsung Galaxy Core Prime VE LTE mainline kernel"
arch="aarch64"
_carch="arm64"
url="https://gitlab.com/LegoLivesMatter/linux"
_commit="80318011d9fec6646a64b0df617646b1fb4ba4ac"
license="GPL-2.0-only"
options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-nftables
pmb:kconfigcheck-zram"
makedepends="bash bc bison devicepkg-dev findutils flex gmp-dev mpc1-dev
mpfr-dev openssl-dev perl postmarketos-installkernel pxa-mkbootimg dtc"
# Source
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::$url/-/archive/$_commit/linux-$_commit.tar.gz
$_config
"
builddir="$srcdir/linux-$_commit"
prepare() {
default_prepare
cp "$srcdir/config-$_flavor.$arch" "$builddir"/.config
}
build() {
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
}
package() {
mkdir -p "$pkgdir"/boot
make zinstall modules_install dtbs_install \
ARCH="$_carch" \
INSTALL_MOD_STRIP=1 \
INSTALL_PATH="$pkgdir"/boot \
INSTALL_MOD_PATH="$pkgdir" \
INSTALL_DTBS_PATH="$pkgdir/usr/share/dtb"
install -D include/config/kernel.release \
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
# Master DTB (deviceinfo_bootimg_qcdt)
pxa1908-dtbTool -p scripts/dtc/ -o arch/$_carch/boot/dt.img arch/$_carch/boot/dts/marvell/
install -Dm644 arch/$_carch/boot/dt.img "$pkgdir"/boot/dt.img
}
sha512sums="
48acee2f58d5e2ae3debab5cfe4e8af16f5ec2e5060a1ca58fabacec6b54231e48737fc322ee19a7320dd7be1849a3a64ab708047e61faa9b100278765f5702f linux-samsung-coreprimevelte-80318011d9fec6646a64b0df617646b1fb4ba4ac.tar.gz
c1aa7bbc8e2fb53797cb2cf6eb6b18fafe4cb238296a95f91094c200fa166b7046d50d865ccdc08ea32f5a3322b186e7b71889d6ef1e68255dea38dbcefe5859 config-samsung-coreprimevelte.aarch64
"