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
|
2023-12-22 18:31:18 +00:00
|
|
|
pkgver=6.7_rc6
|
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"
|
2023-12-22 18:31:18 +00:00
|
|
|
_commit="fcbf65a4f68cab65de26bc95613785b93996db22"
|
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="
|
2023-11-05 13:39:58 +00:00
|
|
|
$pkgname-$_commit.tar.gz::$url/-/archive/$_commit/linux-$_commit.tar.gz
|
2020-12-21 20:15:35 +00:00
|
|
|
$_config
|
|
|
|
"
|
2023-11-05 13:39:58 +00:00
|
|
|
builddir="$srcdir/linux-$_commit"
|
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="
|
2023-12-22 18:31:18 +00:00
|
|
|
5bd87f6b9582cebae24316b9ee1a62e837aaa6d342a2833b35ba6fda83f8e0519a673a8879cff171eaef76c52948ee19a4286b2badb33412b6b312be7ff67a15 linux-samsung-coreprimevelte-fcbf65a4f68cab65de26bc95613785b93996db22.tar.gz
|
|
|
|
caa4d561713c6b1df96774aa77bae713fdc9b7a2b87272fd37b55ef1046b932fc7a9edb3b2045562741101f8b785e50e004aba01c6f26c7a375722184f2ab018 config-samsung-coreprimevelte.aarch64
|
2023-11-05 12:26:03 +00:00
|
|
|
"
|