2023-11-05 13:39:58 +00:00
|
|
|
# Maintainer: Duje Mihanović <duje.mihanovic@skole.hr>
|
2020-12-21 20:15:35 +00:00
|
|
|
|
2023-11-05 13:39:58 +00:00
|
|
|
_flavor=samsung-coreprimevelte
|
|
|
|
pkgname=linux-$_flavor
|
2024-03-29 15:26:33 +00:00
|
|
|
pkgver=6.9_rc1
|
2023-11-05 13:39:58 +00:00
|
|
|
pkgrel=0
|
|
|
|
pkgdesc="Samsung Galaxy Core Prime VE LTE mainline kernel"
|
2020-12-21 20:15:35 +00:00
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
2023-11-05 13:39:58 +00:00
|
|
|
url="https://gitlab.com/LegoLivesMatter/linux"
|
2020-12-21 20:15:35 +00:00
|
|
|
license="GPL-2.0-only"
|
2023-11-05 13:39:58 +00:00
|
|
|
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"
|
2020-12-21 20:15:35 +00:00
|
|
|
|
|
|
|
# Source
|
|
|
|
_config="config-$_flavor.$arch"
|
|
|
|
source="
|
2024-03-29 15:26:33 +00:00
|
|
|
$pkgname-${pkgver/_/-}.tar.gz::$url/-/archive/v${pkgver/_/-}-pxa1908/linux-v${pkgver/_/-}-pxa1908.tar.gz
|
2020-12-21 20:15:35 +00:00
|
|
|
$_config
|
|
|
|
"
|
2024-03-29 15:26:33 +00:00
|
|
|
builddir="$srcdir/linux-v${pkgver/_/-}-pxa1908"
|
2020-12-21 20:15:35 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
2023-11-05 13:39:58 +00:00
|
|
|
cp "$srcdir/config-$_flavor.$arch" "$builddir"/.config
|
2020-12-21 20:15:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
2023-11-05 13:39:58 +00:00
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
2020-12-21 20:15:35 +00:00
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-11-05 13:39:58 +00:00
|
|
|
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"
|
2020-12-21 20:15:35 +00:00
|
|
|
|
|
|
|
# Master DTB (deviceinfo_bootimg_qcdt)
|
2023-11-05 13:39:58 +00:00
|
|
|
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
|
2020-12-21 20:15:35 +00:00
|
|
|
}
|
|
|
|
|
2023-11-05 12:26:03 +00:00
|
|
|
sha512sums="
|
2024-03-29 15:26:33 +00:00
|
|
|
b43801b08e9e6d23a4d6e9ba3abc8faca50178ea97ebcbf081201cef1a3acb47545ae55d52fb4197ba2609c6a780a4cabc707169683e8859312223abb15119cb linux-samsung-coreprimevelte-6.9-rc1.tar.gz
|
|
|
|
0281c4d86fcab302f7646a2bed7db45ffb11177d8c91856c4c6f8d7935fafbef8df22bd2cc3d20d13e7b7918d2543cbade11facfc3a0a1304dcde19cfe95ddb0 config-samsung-coreprimevelte.aarch64
|
2023-11-05 12:26:03 +00:00
|
|
|
"
|