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-05-30 18:01:44 +00:00
|
|
|
pkgver=5.18.1
|
2022-02-26 12:16:31 +00:00
|
|
|
pkgrel=0
|
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
|
2022-03-24 22:23:34 +00:00
|
|
|
*.*.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;;
|
2020-03-17 01:45:47 +00:00
|
|
|
esac
|
|
|
|
source="
|
|
|
|
https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/linux-$_kernver.tar.xz
|
2022-03-24 22:23:34 +00:00
|
|
|
$_patch
|
2020-03-17 01:45:47 +00:00
|
|
|
$_config
|
|
|
|
0001-ARM-dts-n900-increase-charge-current-limit-to-950mA.patch
|
2022-05-30 18:01:44 +00:00
|
|
|
0002-power-supply-bq27xxx-expose-battery-data-when-CI.patch
|
|
|
|
0003-wip-Revert-dma-direct-Fix-potential-NULL-pointer-der.patch
|
2022-01-02 20:21:17 +00:00
|
|
|
0004-ARM-dts-omap3_n900-disable-thermal-for-now.patch
|
2022-02-26 12:16:31 +00:00
|
|
|
0005-iio-accel-st-accel-add-lis302dl.patch
|
|
|
|
0006-ARM-dts-N900-use-iio-driver-for-accelerometer.patch
|
2022-01-02 20:21:17 +00:00
|
|
|
0007-Revert-ARM-omap3-enable-off-mode-automatically.patch
|
2020-03-17 01:45:47 +00:00
|
|
|
"
|
|
|
|
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-05-30 18:01:44 +00:00
|
|
|
dbbc9d1395898a498fa4947fceda1781344fa5d360240f753810daa4fa88e519833e2186c4e582a8f1836e6413e9e85f6563c7770523b704e8702d67622f98b5 linux-5.18.tar.xz
|
|
|
|
d8f105b34b4a0f933cddc631f8f54ca2e50f055365c864f33c389972df03cb2cdf415eb47a2b2fbc0d43af6679fe21e3bb459d79d02103a2db8782146473910e linux-5.18.1.patch.xz
|
|
|
|
461e48aa7e26cc41de349da303df3751cf6a3d7c8aa0897a946b39ccab2240696e07a5671649d4d5c994051e649138a708011048a44e236d15e8fcb42f2a6179 config-nokia-n900.armv7
|
2020-03-17 01:45:47 +00:00
|
|
|
04a39253afd25a7de03dc45ff322161672005406543c44b97d2dc293f202de7de446aee9707a690a290641c55c7bed6e78bbe096ca323dd7d88d3207427c8d31 0001-ARM-dts-n900-increase-charge-current-limit-to-950mA.patch
|
2022-05-30 18:01:44 +00:00
|
|
|
3cc2036ba264bd855358361aacb309ad1cf1660cb82a0978523508d1b3fe513676c58f6efc5bb64f7601b77392c19d2c609b6d83541db7e418c1737cff3973e8 0002-power-supply-bq27xxx-expose-battery-data-when-CI.patch
|
|
|
|
991237276bee4ff7bca24cf3a26afe3f12a2a604452793ad905a605890f761ac98374b5509cfbcab33c7b7ccf3da5cc286e70afe27b8e201387f403bf5025ae9 0003-wip-Revert-dma-direct-Fix-potential-NULL-pointer-der.patch
|
2022-01-02 20:21:17 +00:00
|
|
|
ea33adda06e1fb64b763c34f1f598bb00ccfdba5400d0996871138284b4cb8a51e021c7c0ace9d4bc16027530027fb2a443d5013c6f0b22ed3d64f36152c8854 0004-ARM-dts-omap3_n900-disable-thermal-for-now.patch
|
2022-05-30 18:01:44 +00:00
|
|
|
d5a78e68c10a51f4354a420475db2d10e0be92632df9588c9136dba5b0e5e0c8757f0d8e1bd4fdf99cbbf2f93c54d20eacee1c3a668070037afeac1fded1531a 0005-iio-accel-st-accel-add-lis302dl.patch
|
2022-02-26 12:16:31 +00:00
|
|
|
302aa8e6677e7ecfae473553806cdf5d47687c4f8e73322d0ace78486f9290ba503069ed6b41250fe38802b6c6091c7c4eac06ab387e011f1316b84ad5e2641d 0006-ARM-dts-N900-use-iio-driver-for-accelerometer.patch
|
2022-01-02 20:21:17 +00:00
|
|
|
acf3beef5448da7f3be19b862ac2fef65379d9f1617246baaab296083901174d891526cd9bf781162d4406089969c311701dfded04219bafd3c5c7784bc4c2e6 0007-Revert-ARM-omap3-enable-off-mode-automatically.patch
|
2021-06-28 06:34:03 +00:00
|
|
|
"
|