2022-05-02 10:00:58 +00:00
|
|
|
# Maintainer: Mighty <mightymb17@gmail.com>
|
|
|
|
# Co-Maintainer: Sicelo <absicsz@gmail.com>
|
2023-03-15 22:58:06 +00:00
|
|
|
# Kernel config based on: arch/arm/configs/omap2plus_defconfig
|
2022-05-02 10:00:58 +00:00
|
|
|
|
|
|
|
pkgname=linux-postmarketos-omap
|
2023-07-15 06:29:54 +00:00
|
|
|
pkgver=6.4.3
|
2023-08-09 19:51:51 +00:00
|
|
|
pkgrel=3
|
2022-05-02 10:00:58 +00:00
|
|
|
pkgdesc="Mainline kernel fork for OMAP devices"
|
|
|
|
arch="armv7"
|
|
|
|
url="https://kernel.org/"
|
|
|
|
license="GPL-2.0-only"
|
2022-09-07 20:43:05 +00:00
|
|
|
options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-community"
|
2022-05-02 10:00:58 +00:00
|
|
|
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"
|
2023-02-27 11:06:08 +00:00
|
|
|
|
2023-07-18 06:14:42 +00:00
|
|
|
_kernver=$pkgver
|
2022-05-02 10:00:58 +00:00
|
|
|
case $pkgver in
|
2023-07-18 06:14:42 +00:00
|
|
|
*.*rc*) _rc=1;;
|
2023-02-27 11:06:08 +00:00
|
|
|
*.*.0) _kernver=${pkgver%.0};;
|
2022-05-02 10:00:58 +00:00
|
|
|
esac
|
2023-07-18 06:14:42 +00:00
|
|
|
|
2022-12-12 08:08:44 +00:00
|
|
|
if [ $_rc ]
|
|
|
|
then
|
|
|
|
_kernsrc="https://git.kernel.org/torvalds/t/linux-$_kernver.tar.gz"
|
|
|
|
else
|
|
|
|
_kernsrc="https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/linux-$_kernver.tar.xz"
|
|
|
|
fi
|
2023-02-27 11:06:08 +00:00
|
|
|
|
2022-05-02 10:00:58 +00:00
|
|
|
source="
|
2022-12-12 08:08:44 +00:00
|
|
|
$_kernsrc
|
2022-05-02 10:00:58 +00:00
|
|
|
$_config
|
|
|
|
0001-Add-TWL6032-dtsi.patch
|
2022-10-19 17:36:51 +00:00
|
|
|
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
|
2023-03-15 22:58:06 +00:00
|
|
|
0008-hsi-ssi_port-force-pio-path.patch
|
2023-07-04 19:57:27 +00:00
|
|
|
0009-n900-dts-volume-keys.patch
|
2023-08-08 20:59:46 +00:00
|
|
|
0010-ARM-dts-disable-twl-off-idle-configuration-for-N900.patch
|
2022-05-02 10:00:58 +00:00
|
|
|
"
|
2023-07-18 06:14:42 +00:00
|
|
|
builddir="$srcdir/linux-$pkgver"
|
2023-03-15 22:58:06 +00:00
|
|
|
replaces="linux-samsung-espresso3g linux-nokia-n900"
|
2022-05-02 10:00:58 +00:00
|
|
|
|
|
|
|
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="
|
2023-07-15 06:29:54 +00:00
|
|
|
67a280d4d50ed9d9ddae1ab35cf24c2e9ada2e09cda4e54e79508c5399b8be4f9528a8a8c18d9042fff0c11f0109eaaa3bd50bc7174831be381299180eb0a908 linux-6.4.3.tar.xz
|
2023-07-28 19:40:00 +00:00
|
|
|
e4491af9fe8ed8ad7b2e270504e82a45c72cff875d1656f68e7c1570925a85416c1bc58cf6f3927bb5baaf06367fbb2c155830074d4a1be2d23fee7defa8aec1 config-postmarketos-omap.armv7
|
2022-05-02 10:00:58 +00:00
|
|
|
727ff96d7d4701e93bf43db5d7bd872b4fbf1a8439edb4d84987a8f89e669d65b7a413740172b4a84df711b990d7e30b7880df5b9365496b7894d129cd4ebfa6 0001-Add-TWL6032-dtsi.patch
|
2022-10-19 17:36:51 +00:00
|
|
|
cbabba85dc1e4de5ad2faaea8d87595ceef5af740a9b06f20aeb5ac5bff37747e17a11f77d66e3cde42e3fdb48134a37a98205e32109464a87ac7bb5e91fb34c 0002-arm-dts-Add-common-dtsi-for-espresso.patch
|
|
|
|
b2c2d81bdfb4095a87d6821342127cc7c74bbc12a70786a81d64fd264b5487d522effab349fc1de2b01752cce494bf782d59021d4e95740aa1e3ff5de12632f7 0003-arm-dts-Add-espresso7-support.patch
|
2022-11-08 10:05:14 +00:00
|
|
|
1029debd9fa9fe357f725c42e901bcabb9a364f8b3fcf7986cc5506a078a075e22db3351dcbb607014af8a87a84d13b780e1e613924c8ad6a767ac8b8b763a94 0004-arm-dts-Add-espresso10-support.patch
|
2022-10-19 17:36:51 +00:00
|
|
|
9dc84421cbc2ea7c2c37847d8704ff46dd4a485485bfa4a671167fdef4ac6f53a4e8f787aa774f3748299c374e7c7dc5d36fd4ba9b1a1a9697e0526f2bf3ece4 0005-Add-TWL6030-power-driver-with-minimal-support-for-power-off.patch
|
2023-02-27 11:06:08 +00:00
|
|
|
1aa4521deb4e6d0977f8e704dd7f38ca3a861212c0ced34145713c72a68d8f255f3631a82c5ef2006f4c8b954fce6198e5d0870392cd4db6b6fb9610abe50c4c 0006-Add-TWL6030-power-button-support-to-twl-pwrbutton.patch
|
2023-03-15 22:58:06 +00:00
|
|
|
c3af9715b3559c2d593f4fcfa078730722c7deeec132c5b83e085ff4d9815d85ef349384097c580efe1bbc37c60f42e18ef559f0abccfe236080670e4403fa77 0008-hsi-ssi_port-force-pio-path.patch
|
2023-07-04 19:57:27 +00:00
|
|
|
af26c754ef2892251abfd085a1a0729df2bceb8a6c15d14ab3fdf4716fb897b3dcb43f4efe98009a48e9023af608c293ecd86dce9f31f0f090cfd9f78a97cd84 0009-n900-dts-volume-keys.patch
|
2023-08-09 19:51:51 +00:00
|
|
|
352b98eead4a0395e74e358865002c69373271bf60d73d97fcb006d90bc9a2b5edd692ca199d5a21d2e3e2f6e84b012d44434042c9919f0e885034974d018c7a 0010-ARM-dts-disable-twl-off-idle-configuration-for-N900.patch
|
2022-05-02 10:00:58 +00:00
|
|
|
"
|