2022-01-05 07:49:02 +00:00
|
|
|
# Maintainer: Sicelo <absicsz@gmail.com>
|
|
|
|
# Co-Maintainer: Danct12 <danct12@disroot.org>
|
2020-03-17 01:45:47 +00:00
|
|
|
|
|
|
|
pkgname=linux-nokia-n900
|
2022-01-08 16:22:12 +00:00
|
|
|
pkgver=5.15.13
|
2022-01-05 07:49:02 +00:00
|
|
|
pkgrel=1
|
2020-03-17 01:45:47 +00:00
|
|
|
pkgdesc="Mainline kernel fork for Nokia N900"
|
|
|
|
arch="armv7"
|
|
|
|
url="https://kernel.org/"
|
|
|
|
license="GPL-2.0-only"
|
2021-03-29 02:41:52 +00:00
|
|
|
options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-nftables"
|
2022-01-02 20:21:17 +00:00
|
|
|
makedepends="bison findutils flex openssl-dev perl gmp-dev mpc1-dev mpfr-dev postmarketos-installkernel"
|
2020-03-17 01:45:47 +00:00
|
|
|
|
|
|
|
_carch="arm"
|
|
|
|
_flavor=nokia-n900
|
|
|
|
_config="config-$_flavor.armv7"
|
|
|
|
case $pkgver in
|
|
|
|
*.*.*) _kernver=${pkgver%.*};;
|
|
|
|
*.*) _kernver=$pkgver;;
|
|
|
|
esac
|
|
|
|
source="
|
|
|
|
https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/linux-$_kernver.tar.xz
|
|
|
|
$_config
|
|
|
|
0001-ARM-dts-n900-increase-charge-current-limit-to-950mA.patch
|
|
|
|
0002-ARM-dts-n900-remove-rx51-battery.patch
|
|
|
|
0003-power-supply-bq27xxx_battery-ignore-inaccurate-flag.patch
|
2022-01-02 20:21:17 +00:00
|
|
|
0004-ARM-dts-omap3_n900-disable-thermal-for-now.patch
|
|
|
|
0005-ARM-dts-omap3_n900-fix-lp5523-for-multi-color.patch
|
|
|
|
0006-leds-lp55xx-initialise-output-direction-from-dts.patch
|
|
|
|
0007-Revert-ARM-omap3-enable-off-mode-automatically.patch
|
2022-01-08 16:22:12 +00:00
|
|
|
0008-wl1251-specify-max.-IE-length.patch
|
2020-03-17 01:45:47 +00:00
|
|
|
"
|
|
|
|
if [ "${pkgver%.0}" = "$pkgver" ]; then
|
|
|
|
source="$source
|
2020-04-23 10:54:35 +00:00
|
|
|
linux-$pkgver.patch.xz::https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/patch-$pkgver.xz"
|
2020-03-17 01:45:47 +00:00
|
|
|
fi
|
|
|
|
builddir="$srcdir/linux-$_kernver"
|
|
|
|
|
|
|
|
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" \
|
2020-04-23 10:54:35 +00:00
|
|
|
INSTALL_MOD_STRIP=1 \
|
2020-03-17 01:45:47 +00:00
|
|
|
INSTALL_PATH="$pkgdir"/boot \
|
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
|
|
INSTALL_DTBS_PATH="$pkgdir/usr/share/dtb"
|
|
|
|
|
|
|
|
install -D "$builddir"/include/config/kernel.release \
|
|
|
|
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
|
|
|
|
}
|
|
|
|
|
2021-06-28 06:34:03 +00:00
|
|
|
sha512sums="
|
2022-01-02 20:21:17 +00:00
|
|
|
d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a linux-5.15.tar.xz
|
2022-01-08 16:22:12 +00:00
|
|
|
0dd0386f430158e60ee788598686ae5b3df26a9e6d99e21d831ff6180317c5b2697cf49370f7e8432e0750e429dd7e0f72dc45b40cfff5cfbf88fe83665b5db5 config-nokia-n900.armv7
|
2020-03-17 01:45:47 +00:00
|
|
|
04a39253afd25a7de03dc45ff322161672005406543c44b97d2dc293f202de7de446aee9707a690a290641c55c7bed6e78bbe096ca323dd7d88d3207427c8d31 0001-ARM-dts-n900-increase-charge-current-limit-to-950mA.patch
|
|
|
|
c1055c7a4d2e39ce13db3871d948022b62eb7ebeb898777d197169b3e7c04d705ce7f52f28214754e3cefe99d1dd66f339a1a5770bae1ee970d5926067032061 0002-ARM-dts-n900-remove-rx51-battery.patch
|
2021-06-28 06:34:03 +00:00
|
|
|
93e82f7041e347b63fc32ce54176ee3fe7e8260cc793810bcf0146a3699567b63a0cb7ce8c531b0484390907a25c51bfbeb15b32dddb2220c2481ec1f86e5eb5 0003-power-supply-bq27xxx_battery-ignore-inaccurate-flag.patch
|
2022-01-02 20:21:17 +00:00
|
|
|
ea33adda06e1fb64b763c34f1f598bb00ccfdba5400d0996871138284b4cb8a51e021c7c0ace9d4bc16027530027fb2a443d5013c6f0b22ed3d64f36152c8854 0004-ARM-dts-omap3_n900-disable-thermal-for-now.patch
|
|
|
|
95699ddfa06c7eb59c8a55c931322ac25fa93f23886a67155e7b3db31db74be8ff2e72c304747b9a6fe3971005dc0d804daf3d1e3ce5953a9a99ada8cf703a5c 0005-ARM-dts-omap3_n900-fix-lp5523-for-multi-color.patch
|
|
|
|
066e05a285f9a93f718461cd29eb6d917ca0e7cfa532660825059142391925ab780201b99e7d1966f90b8ca092ad0722209ae8bbe260ac40fa16a76d761debfe 0006-leds-lp55xx-initialise-output-direction-from-dts.patch
|
|
|
|
acf3beef5448da7f3be19b862ac2fef65379d9f1617246baaab296083901174d891526cd9bf781162d4406089969c311701dfded04219bafd3c5c7784bc4c2e6 0007-Revert-ARM-omap3-enable-off-mode-automatically.patch
|
2022-01-08 16:22:12 +00:00
|
|
|
acaa153809c390957ee8d80caae440a41d84c78f045268ac226f05019dbdd69959b5cf56b6bac2e2c0300bcdb68649ffb847e7a0a333408bf5b4426fc969afe8 0008-wl1251-specify-max.-IE-length.patch
|
|
|
|
36f2c500b7391d1d33eaf844c1f9f63ee54ae1a5284739dc438a0758837df088226921c0b3a51a9fc29b193fafef1aa44afbb3379f8fa0f550e040507b5004b4 linux-5.15.13.patch.xz
|
2021-06-28 06:34:03 +00:00
|
|
|
"
|