pmaports/device/testing/linux-samsung-coreprimevelte/APKBUILD
Duje Mihanović 189186cc69
linux-samsung-coreprimevelte: upgrade to v6.7-rc7 (MR 4600)
Also add a patch to fix NCM.

[ci:skip-build] already built successfully in CI
2023-12-29 09:40:43 -08:00

59 lines
2.1 KiB
Text

# Maintainer: Duje Mihanović <duje.mihanovic@skole.hr>
_flavor=samsung-coreprimevelte
pkgname=linux-$_flavor
pkgver=6.7_rc7
pkgrel=0
pkgdesc="Samsung Galaxy Core Prime VE LTE mainline kernel"
arch="aarch64"
_carch="arm64"
url="https://gitlab.com/LegoLivesMatter/linux"
_commit="5bfc28c48fcdfecfacdbfb9d2d761b38cf85615f"
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
0001-usb-gadget-u_ether-Re-attach-netif-device-to-mirror-.patch
"
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="
5ef16167232dac0d9e734d21a9cd504369976b129b5c5d441aec91aab506804ce5fe130fe678bf56c0849a4f4196a4aa15887d27ac71eb0ec76bf7f375442201 linux-samsung-coreprimevelte-5bfc28c48fcdfecfacdbfb9d2d761b38cf85615f.tar.gz
3668fc46659991df20cfe2eae2d22ecc376388b1f5a38ac184be7bc55ca3fee042241ef8094758dfd897c91b491a500f67ee1135a63bc42f44fbd12e725dbf02 config-samsung-coreprimevelte.aarch64
e56eed6e0cd447539479c12f2227ebd9e4a4c2ded055a81595e6fe5f6545b55b05c0a3790f45e4ee1354b7f79a0eddef0434bebd612f1ba8c230ea44001c84a4 0001-usb-gadget-u_ether-Re-attach-netif-device-to-mirror-.patch
"