74 lines
3.3 KiB
Text
74 lines
3.3 KiB
Text
# Maintainer: Mighty <mightymb17@gmail.com>
|
|
# Co-Maintainer: Sicelo <absicsz@gmail.com>
|
|
# Kernel config based on: arch/arm64/configs/omap2plus_defconfig
|
|
|
|
pkgname=linux-postmarketos-omap
|
|
pkgver=6.0.2
|
|
pkgrel=0
|
|
pkgdesc="Mainline kernel fork for OMAP devices"
|
|
arch="armv7"
|
|
url="https://kernel.org/"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-community"
|
|
makedepends="bash bison findutils flex openssl-dev perl gmp-dev mpc1-dev mpfr-dev postmarketos-installkernel xz"
|
|
|
|
_carch="arm"
|
|
_flavor="postmarketos-omap"
|
|
_config="config-$_flavor.armv7"
|
|
case $pkgver in
|
|
*.*.0) _kernver=${pkgver%.0};;
|
|
*.*.*) _kernver=${pkgver%.*}
|
|
_patch="
|
|
linux-$pkgver.patch.xz::https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/patch-$pkgver.xz";;
|
|
*.*) _kernver=$pkgver;;
|
|
esac
|
|
source="
|
|
https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/linux-$_kernver.tar.xz
|
|
$_patch
|
|
$_config
|
|
0001-Add-TWL6032-dtsi.patch
|
|
0002-arm-dts-Add-common-dtsi-for-espresso.patch
|
|
0003-arm-dts-Add-espresso7-support.patch
|
|
0004-arm-dts-Add-espresso10-support.patch
|
|
0005-Add-TWL6030-power-driver-with-minimal-support-for-power-off.patch
|
|
0006-Add-TWL6030-power-button-support-to-twl-pwrbutton.patch
|
|
"
|
|
builddir="$srcdir/linux-$_kernver"
|
|
replaces="linux-samsung-espresso3g"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cp -v "$srcdir"/$_config .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/boot/dtbs"
|
|
|
|
install -D "$builddir"/include/config/kernel.release \
|
|
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
|
|
}
|
|
|
|
|
|
sha512sums="
|
|
bac41a7aeb6e809616cee2f13dcd1c45e829dfd1ccf60aee1dc4c46b1e28532f4485c7d819a32940de84fdfbf89db80a4e919bce8a74b2948c5a01551771b714 linux-6.0.tar.xz
|
|
10b2c1af9cbf2335a1b449de3ee674c68ae2ae1ac4bdc27b6e7692c5152fb3cd096388044c0e0ee6054b106d6eface9af41d746adf8f8264d738e9c8f73a3784 linux-6.0.2.patch.xz
|
|
fb03b18004e8f211015c02e28eac9c45f73acacd5a249006ecbce48fa9cde55c340f814a6957efcb31b47146a9497f4d06c98e2c452826431e7383bd656dce9e config-postmarketos-omap.armv7
|
|
727ff96d7d4701e93bf43db5d7bd872b4fbf1a8439edb4d84987a8f89e669d65b7a413740172b4a84df711b990d7e30b7880df5b9365496b7894d129cd4ebfa6 0001-Add-TWL6032-dtsi.patch
|
|
cbabba85dc1e4de5ad2faaea8d87595ceef5af740a9b06f20aeb5ac5bff37747e17a11f77d66e3cde42e3fdb48134a37a98205e32109464a87ac7bb5e91fb34c 0002-arm-dts-Add-common-dtsi-for-espresso.patch
|
|
b2c2d81bdfb4095a87d6821342127cc7c74bbc12a70786a81d64fd264b5487d522effab349fc1de2b01752cce494bf782d59021d4e95740aa1e3ff5de12632f7 0003-arm-dts-Add-espresso7-support.patch
|
|
61a731933a4f4ef6e4e86007cfa5eafea907ebd2f96629d0abf4c747f15776b5fe571de558d9eb0c9793f7a28d70c4839b6f88332e21515a89df680a06396e1b 0004-arm-dts-Add-espresso10-support.patch
|
|
9dc84421cbc2ea7c2c37847d8704ff46dd4a485485bfa4a671167fdef4ac6f53a4e8f787aa774f3748299c374e7c7dc5d36fd4ba9b1a1a9697e0526f2bf3ece4 0005-Add-TWL6030-power-driver-with-minimal-support-for-power-off.patch
|
|
fdf62d90b1381541743e9502160854a920c05050cc6f530769071e2eb362ba3c1f5c84afd140533d7aa3f318205e1b0b1c55387edc99a643e1593e634e740c10 0006-Add-TWL6030-power-button-support-to-twl-pwrbutton.patch
|
|
"
|