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-01-21 11:50:27 +00:00
|
|
|
pkgver=6.7.0
|
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"
|
2024-01-21 11:50:27 +00:00
|
|
|
_commit="68da4eca6f89a1f937e7bead30b2624b3ab2bf03"
|
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-12-27 16:16:57 +00:00
|
|
|
0001-usb-gadget-u_ether-Re-attach-netif-device-to-mirror-.patch
|
2020-12-21 20:15:35 +00:00
|
|
|
"
|
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="
|
2024-01-21 11:50:27 +00:00
|
|
|
c1b368ca9b2ef75ff3abb0d0ea337fa723ce4b263824fe2c51aa5d5438a643b8e272b70a665b9f48542e66d057d2309c80fbee618f7c7fdcd67565564c7c32aa linux-samsung-coreprimevelte-68da4eca6f89a1f937e7bead30b2624b3ab2bf03.tar.gz
|
|
|
|
a0d10ea9a3e109b711b8103e3bcfde6d981b2438c31584de9efae492266e43e1e4c9c1a0d8c7d5a00f6c63db32bd06a3d755eb0bb38398c6595011deb02d364a config-samsung-coreprimevelte.aarch64
|
2023-12-27 16:16:57 +00:00
|
|
|
e56eed6e0cd447539479c12f2227ebd9e4a4c2ded055a81595e6fe5f6545b55b05c0a3790f45e4ee1354b7f79a0eddef0434bebd612f1ba8c230ea44001c84a4 0001-usb-gadget-u_ether-Re-attach-netif-device-to-mirror-.patch
|
2023-11-05 12:26:03 +00:00
|
|
|
"
|