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-06-29 11:19:19 +00:00
|
|
|
pkgver=6.10_rc5
|
2024-06-29 12:29:53 +00:00
|
|
|
pkgrel=1
|
2023-11-05 13:39:58 +00:00
|
|
|
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-06-29 11:19:19 +00:00
|
|
|
e7b1980d55e981b4af20ab2079f77aee28f38023afff259c7fad6694f6faf5ce000bfb0ae56a76dd3d208888bdaf5e783bd0cdf85dd80f2317a2decdeee04298 linux-samsung-coreprimevelte-6.10-rc5.tar.gz
|
2024-06-29 12:29:53 +00:00
|
|
|
7ac769fcbf7ad97e2314649468f203ae9035b1c90b52c3cc1bc74f28fc9dac2d8c86493629f81aeae7ae26dfa9a30b2e095a8a50c0724fb449e60afe407b47c2 config-samsung-coreprimevelte.aarch64
|
2023-11-05 12:26:03 +00:00
|
|
|
"
|