f33ade5ae6
Also add hardware enabled in arch/arm/configs/u8500_defconfig
80 lines
2.9 KiB
Text
80 lines
2.9 KiB
Text
# Reference: <https://postmarketos.org/vendorkernel>
|
|
# Maintainer: Newbyte <newbyte@disroot.org>
|
|
# Kernel config based on: arch/arm/configs/u8500_defconfig
|
|
|
|
_flavor="postmarketos-stericsson"
|
|
_config="config-$_flavor.armv7"
|
|
pkgname=linux-$_flavor
|
|
pkgver=5.18_rc4
|
|
pkgrel=0
|
|
pkgdesc="Mainline kernel fork for ST-Ericsson NovaThor devices"
|
|
arch="armv7"
|
|
_carch="arm"
|
|
url="https://github.com/stericsson-mainline/linux"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps
|
|
pmb:cross-native
|
|
pmb:kconfigcheck-anbox
|
|
pmb:kconfigcheck-containers
|
|
pmb:kconfigcheck-zram
|
|
pmb:kconfigcheck-nftables
|
|
"
|
|
makedepends="
|
|
bison
|
|
findutils
|
|
gmp-dev
|
|
flex
|
|
mpc1-dev
|
|
mpfr-dev
|
|
openssl-dev
|
|
perl
|
|
postmarketos-installkernel
|
|
"
|
|
case $pkgver in
|
|
*.*.*) _kernver=${pkgver%.0};;
|
|
*.*) _kernver=$pkgver;;
|
|
esac
|
|
source="
|
|
https://git.kernel.org/torvalds/t/linux-${_kernver//_/-}.tar.gz
|
|
config-$_flavor.armv7
|
|
arm-dts-ux500-add-line-impedance-to-fuel-gauge.patch
|
|
disable-busy-detect-on-ux500-mmci.patch
|
|
power-supply-ab8500-exit-maintenance-if-too-low-voltage.patch
|
|
power-supply-ab8500-respect-charge_restart_voltage_uv.patch
|
|
pwm-ab8500-get-hw-id-from-reg-value.patch
|
|
"
|
|
builddir="$srcdir/linux-${_kernver//_/-}"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cp "$srcdir/config-$_flavor.$CARCH" .config
|
|
}
|
|
|
|
build() {
|
|
unset LDFLAGS
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
KBUILD_BUILD_VERSION=$((pkgrel + 1 ))
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"/boot
|
|
make zinstall modules_install dtbs_install \
|
|
ARCH="$_carch" \
|
|
INSTALL_PATH="$pkgdir"/boot \
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
INSTALL_DTBS_PATH="$pkgdir"/usr/share/dtb
|
|
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
|
|
|
|
install -D "$builddir"/include/config/kernel.release \
|
|
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
|
|
}
|
|
|
|
sha512sums="
|
|
ad6a7468bfdf1140db9cfda897dbf43f5b2e654d375bba7a5bdf9ea2675deb4f9d7ef857246e3bd371cb0d6160b514dd315a3dd8a7f9e2dcca4585c14cf0be8c linux-5.18-rc4.tar.gz
|
|
fb0f125dfeaca68c6b9d927d152f0676b08506d10dadfed76617c0a8fee018b4af03f499a3fa24901bc51214716642da03d331b5613ed696bd186b9d7281a5ac config-postmarketos-stericsson.armv7
|
|
abd32f479cec53b9df092f2c0f434343b1e228be2cf340d26f6f61d4fabbba127f24ec1bd561b5b2fc806cec16eef46e18f6d5c781dd3ef256797acc5409dc62 arm-dts-ux500-add-line-impedance-to-fuel-gauge.patch
|
|
4ea0fd3fa602bab21f0cc2c31462d3ef6958c63394b41061ddf0bc2c8baa8b9c571cb5553a37c43315df84049eb7d6a6dc4f873c6d06d9ea4883c37dce40d7ec disable-busy-detect-on-ux500-mmci.patch
|
|
56c0e375d9078abf1144bf6df25dab176794a18d5c33f77e76b5dc44fc60f0f40ffe26991f0529ff36deaef0b3b66f8ae880968aa2459f774feb4c7993658bdd power-supply-ab8500-exit-maintenance-if-too-low-voltage.patch
|
|
81c1acf81a250326b6917503ec70572e18b06864248f704c1a691b0f2fd096f9d0a87acd4e05e258583b4c21c990a3f3230a360a7a02f00b6e83e3034902641c power-supply-ab8500-respect-charge_restart_voltage_uv.patch
|
|
56126fcfee94121cddacf6987d64517c88fb35739285143fd2fb7f8c3c10d3e326d931c5a981d3cbc5a09d7286e41c9013866b36532a410441140b4af80a2808 pwm-ab8500-get-hw-id-from-reg-value.patch
|
|
"
|