2150879f9f
[ci:skip-build]: already built successfully in CI
84 lines
3.8 KiB
Text
84 lines
3.8 KiB
Text
# Maintainer: Mighty <mightymb17@gmail.com>
|
|
# Co-Maintainer: Sicelo <absicsz@gmail.com>
|
|
# Kernel config based on: arch/arm/configs/omap2plus_defconfig
|
|
|
|
pkgname=linux-postmarketos-omap
|
|
pkgver=6.5
|
|
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"
|
|
|
|
_kernver=$pkgver
|
|
case $pkgver in
|
|
*.*rc*) _rc=1;;
|
|
*.*.0) _kernver=${pkgver%.0};;
|
|
esac
|
|
|
|
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
|
|
|
|
source="
|
|
$_kernsrc
|
|
$_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
|
|
0008-hsi-ssi_port-force-pio-path.patch
|
|
0009-n900-dts-volume-keys.patch
|
|
0010-ARM-dts-disable-twl-off-idle-configuration-for-N900.patch
|
|
"
|
|
builddir="$srcdir/linux-$pkgver"
|
|
replaces="linux-samsung-espresso3g linux-nokia-n900"
|
|
|
|
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="
|
|
1b59dc5e65d4922c3217a8c8f19022dfd6595ae89747861d825bfeb51a4ae6c85449d05db69635a712bef7b355b80318195665582d8933b1fed6ba582f6ff257 linux-6.5.tar.xz
|
|
2ead11e7be7b6f4f5eebdf606cd62b0e4eb3034107e1a3d1987353eabda9e403e4891efc704087e4d84b541ad56ff81ebf47441a8c232a89076c8119fee780bb config-postmarketos-omap.armv7
|
|
fe4307a6af41913a7e5d59288b563865116797d3272e0570faff4532e198831e764e0067f53afdd39e57665196ae44f05d554bbd7d55d556d4b2d3c9d2efd41f 0001-Add-TWL6032-dtsi.patch
|
|
2c13c46b4db0d4a75c3aae3a46041fe43f841dc4ab3c7b08cd9db22a73c8355701d85c8c1e979aba93002b96d63ad3f1f8e46c15ecdde4391ea677b71dd17b45 0002-arm-dts-Add-common-dtsi-for-espresso.patch
|
|
4efda42604f5a6d5f9d4ceb9f87aaa5ad81d9299b3cd8ae930aafa895df5041ff5ee2cf441bbf7fdd002a52df378ee08c0bde85657e5d2086404b9f08b3a742d 0003-arm-dts-Add-espresso7-support.patch
|
|
f0bb41630d8e08adcffa433f3c82047e8787c96b7cc7301eb80bf5e5298010c136cd10c756278fb2331d66dde33d6a13128420f5af022b117f9e3ddb23070934 0004-arm-dts-Add-espresso10-support.patch
|
|
9dc84421cbc2ea7c2c37847d8704ff46dd4a485485bfa4a671167fdef4ac6f53a4e8f787aa774f3748299c374e7c7dc5d36fd4ba9b1a1a9697e0526f2bf3ece4 0005-Add-TWL6030-power-driver-with-minimal-support-for-power-off.patch
|
|
63d3030006c8af3cbba6967cf4cce87c80992f98f80205a9fac3714a295ce9dd706515252b8ab07d147b315769d856ba9ba435e365caac106ed1ca84b5f7876c 0006-Add-TWL6030-power-button-support-to-twl-pwrbutton.patch
|
|
c3af9715b3559c2d593f4fcfa078730722c7deeec132c5b83e085ff4d9815d85ef349384097c580efe1bbc37c60f42e18ef559f0abccfe236080670e4403fa77 0008-hsi-ssi_port-force-pio-path.patch
|
|
b98ce806b3d5a0122086e4c9670639174470ff6d29851c60258cc5d699ce9a479dbf4996b24299fc075d25e9fe8f6b1250fafdff742deea0ddeaf53d342a9d72 0009-n900-dts-volume-keys.patch
|
|
66abb5548910ad369608b08200f5835d5a8526c04cc3617221ef546f3e3d22cd944db91dc6727a5c26a102b24d8ef1306ea01254c9c382759afced91b31747ef 0010-ARM-dts-disable-twl-off-idle-configuration-for-N900.patch
|
|
"
|