90c71ce639
Drop 0002-ARM-dts-n900-remove-rx51-battery.patch, because this wasn't needed for postmarketOS in the first place. The patch was created for Maemo Leste as upower quirk initially and they don't carry it anymore either. Drop other patches, as they have been upstreamed. Co-Authored-By: Oliver Smith <ollieparanoid@postmarketos.org>
73 lines
3.5 KiB
Text
73 lines
3.5 KiB
Text
# Maintainer: Sicelo <absicsz@gmail.com>
|
|
# Co-Maintainer: Danct12 <danct12@disroot.org>
|
|
|
|
pkgname=linux-nokia-n900
|
|
pkgver=5.18.1
|
|
pkgrel=0
|
|
pkgdesc="Mainline kernel fork for Nokia N900"
|
|
arch="armv7"
|
|
url="https://kernel.org/"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-nftables"
|
|
makedepends="bison findutils flex openssl-dev perl gmp-dev mpc1-dev mpfr-dev postmarketos-installkernel"
|
|
|
|
_carch="arm"
|
|
_flavor=nokia-n900
|
|
_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-ARM-dts-n900-increase-charge-current-limit-to-950mA.patch
|
|
0002-power-supply-bq27xxx-expose-battery-data-when-CI.patch
|
|
0003-wip-Revert-dma-direct-Fix-potential-NULL-pointer-der.patch
|
|
0004-ARM-dts-omap3_n900-disable-thermal-for-now.patch
|
|
0005-iio-accel-st-accel-add-lis302dl.patch
|
|
0006-ARM-dts-N900-use-iio-driver-for-accelerometer.patch
|
|
0007-Revert-ARM-omap3-enable-off-mode-automatically.patch
|
|
"
|
|
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" \
|
|
INSTALL_MOD_STRIP=1 \
|
|
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"
|
|
}
|
|
|
|
sha512sums="
|
|
dbbc9d1395898a498fa4947fceda1781344fa5d360240f753810daa4fa88e519833e2186c4e582a8f1836e6413e9e85f6563c7770523b704e8702d67622f98b5 linux-5.18.tar.xz
|
|
d8f105b34b4a0f933cddc631f8f54ca2e50f055365c864f33c389972df03cb2cdf415eb47a2b2fbc0d43af6679fe21e3bb459d79d02103a2db8782146473910e linux-5.18.1.patch.xz
|
|
461e48aa7e26cc41de349da303df3751cf6a3d7c8aa0897a946b39ccab2240696e07a5671649d4d5c994051e649138a708011048a44e236d15e8fcb42f2a6179 config-nokia-n900.armv7
|
|
04a39253afd25a7de03dc45ff322161672005406543c44b97d2dc293f202de7de446aee9707a690a290641c55c7bed6e78bbe096ca323dd7d88d3207427c8d31 0001-ARM-dts-n900-increase-charge-current-limit-to-950mA.patch
|
|
3cc2036ba264bd855358361aacb309ad1cf1660cb82a0978523508d1b3fe513676c58f6efc5bb64f7601b77392c19d2c609b6d83541db7e418c1737cff3973e8 0002-power-supply-bq27xxx-expose-battery-data-when-CI.patch
|
|
991237276bee4ff7bca24cf3a26afe3f12a2a604452793ad905a605890f761ac98374b5509cfbcab33c7b7ccf3da5cc286e70afe27b8e201387f403bf5025ae9 0003-wip-Revert-dma-direct-Fix-potential-NULL-pointer-der.patch
|
|
ea33adda06e1fb64b763c34f1f598bb00ccfdba5400d0996871138284b4cb8a51e021c7c0ace9d4bc16027530027fb2a443d5013c6f0b22ed3d64f36152c8854 0004-ARM-dts-omap3_n900-disable-thermal-for-now.patch
|
|
d5a78e68c10a51f4354a420475db2d10e0be92632df9588c9136dba5b0e5e0c8757f0d8e1bd4fdf99cbbf2f93c54d20eacee1c3a668070037afeac1fded1531a 0005-iio-accel-st-accel-add-lis302dl.patch
|
|
302aa8e6677e7ecfae473553806cdf5d47687c4f8e73322d0ace78486f9290ba503069ed6b41250fe38802b6c6091c7c4eac06ab387e011f1316b84ad5e2641d 0006-ARM-dts-N900-use-iio-driver-for-accelerometer.patch
|
|
acf3beef5448da7f3be19b862ac2fef65379d9f1617246baaab296083901174d891526cd9bf781162d4406089969c311701dfded04219bafd3c5c7784bc4c2e6 0007-Revert-ARM-omap3-enable-off-mode-automatically.patch
|
|
"
|