a428f968e4
[ci:skip-build]: already built successfully in CI
56 lines
1.8 KiB
Text
56 lines
1.8 KiB
Text
# Maintainer: Duje Mihanović <duje.mihanovic@skole.hr>
|
|
|
|
_flavor=samsung-coreprimevelte
|
|
pkgname=linux-$_flavor
|
|
pkgver=6.9_rc1
|
|
pkgrel=0
|
|
pkgdesc="Samsung Galaxy Core Prime VE LTE mainline kernel"
|
|
arch="aarch64"
|
|
_carch="arm64"
|
|
url="https://gitlab.com/LegoLivesMatter/linux"
|
|
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-${pkgver/_/-}.tar.gz::$url/-/archive/v${pkgver/_/-}-pxa1908/linux-v${pkgver/_/-}-pxa1908.tar.gz
|
|
$_config
|
|
"
|
|
builddir="$srcdir/linux-v${pkgver/_/-}-pxa1908"
|
|
|
|
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="
|
|
b43801b08e9e6d23a4d6e9ba3abc8faca50178ea97ebcbf081201cef1a3acb47545ae55d52fb4197ba2609c6a780a4cabc707169683e8859312223abb15119cb linux-samsung-coreprimevelte-6.9-rc1.tar.gz
|
|
0281c4d86fcab302f7646a2bed7db45ffb11177d8c91856c4c6f8d7935fafbef8df22bd2cc3d20d13e7b7918d2543cbade11facfc3a0a1304dcde19cfe95ddb0 config-samsung-coreprimevelte.aarch64
|
|
"
|