98197693f5
Since mesa-grate is armv7 now, we can switch too. [ci:skip-build]: already built successfully in CI
151 lines
11 KiB
Text
151 lines
11 KiB
Text
# Reference: <https://postmarketos.org/vendorkernel>
|
|
# Kernel config based on: arch/arm/configs/tegra_defconfig
|
|
|
|
pkgname="linux-samsung-i927"
|
|
pkgver=4.20.4
|
|
pkgrel=2
|
|
pkgdesc="Samsung Captivate Glide kernel fork"
|
|
arch="armv7"
|
|
_carch="arm"
|
|
_flavor="samsung-i927"
|
|
url="https://kernel.org"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps"
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev flex bison openssl-dev"
|
|
|
|
# Compiler: latest GCC from Alpine
|
|
HOSTCC="${CC:-gcc}"
|
|
HOSTCC="${HOSTCC#${CROSS_COMPILE}}"
|
|
|
|
# Source
|
|
_repository="linux"
|
|
_config="config-${_flavor}.${arch}"
|
|
source="
|
|
$pkgname-$pkgver.tar.gz::https://kernel.org/pub/linux/kernel/v4.x/linux-$pkgver.tar.gz
|
|
$_config
|
|
0001-dt-bindings-drm-panel-Add-Samsung-s6e63m0-panel-docu.patch
|
|
0002-drm-panel-Add-driver-for-Samsung-S6E63M0-panel.patch
|
|
0003-drm-tegra-Hacks-for-S6E63M0.patch
|
|
0004-iio-gyro-mpu3050-get-chip-ID-correctly.patch
|
|
0005-soc-tegra-fix-build-for-Tegra.patch
|
|
0006-mmc-core-Add-a-quirk-for-NVIDIA-Tegra-EMMC.patch
|
|
0007-leds-Add-led-class-support-isa1200-vibration-motor.patch
|
|
0008-iio-accel-kxcjk-Add-device-tree-support.patch
|
|
0009-ARM-dts-tegra20-glide-Samsung-SGH-I927-support.patch
|
|
0010-Input-stmpe-keypad-add-STMPE1801-support.patch
|
|
0011-Add-tegra_wm8994-driver.patch
|
|
0012-HACK-Fix-wm8994-Kconfig.patch
|
|
0013-ASoC-tegra_wm8994-cleanup.patch
|
|
0014-ARM-dts-tegra20-glide-Device-Tree-changes.patch
|
|
0015-ARM-dts-tegra20-glide-add-memory-node-address.patch
|
|
0016-ARM-dts-tegra20-glide-comment-out-MHL.patch
|
|
0017-ARM-dts-tegra20-glide-fix-duplicate-i2c-bus-address.patch
|
|
0018-ARM-dts-tegra20-glide-fix-USB-gadget-mode.patch
|
|
0019-ARM-dts-tegra20-glide-change-display-timings.patch
|
|
0020-ARM-dts-tegra20-glide-add-intrrupt-binding-for-charg.patch
|
|
0021-drm-panel-s6e63m0-disable-rotation.patch
|
|
0022-ARM-dts-tegra20-glide-set-panel-reset-GPIO-pin-to-ac.patch
|
|
0023-power-supply-max17040-Fix-voltage-reporting.patch
|
|
0024-power-supply-max17040-Set-initial-RCOMP-value.patch
|
|
0025-drm-panel-s6e63m0-Increase-back-porch.patch
|
|
0026-ARM-dts-tegra20-glide-fix-AK8975.patch
|
|
0027-Input-mcs_touchkey-Add-parse-DT-function-from-device.patch
|
|
0028-input-keyboard-mcs_touchkey-Convert-to-devm_-managed.patch
|
|
0029-input-keyboard-mcs_touchkey-add-sentinel-into-array-.patch
|
|
0030-TRATS2-dts-exynos4412-m0.dts-Add-mcs-touchkey-node.patch
|
|
0031-ARM-dts-tegra20-glide-Add-touchkey-binding.patch
|
|
0032-ARM-dts-tegra20-glide-Add-keyboard-backlight-LED.patch
|
|
0033-input-keyboard-mcs_touchkey-LED-support.patch
|
|
0034-ARM-dts-tegra20-glide-Add-HALL-GPIO-binding.patch
|
|
0035-ARM-dts-tegra20-glide-Change-keyboard-keycodes.patch
|
|
0036-ARM-dts-tegra20-glide-Fix-UART-bindings.patch
|
|
0037-ARM-dts-tegra20-glide-USB-OTG-mode-and-power.patch
|
|
0038-ARM-dts-tegra20-glide-Remove-WiFi-host-wake-GPIO.patch
|
|
0039-ARM-dts-tegra20-glide-Add-bindings-for-microphone.patch
|
|
"
|
|
builddir="$srcdir/${_repository}-${pkgver}"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
# Prepare kernel config ('yes ""' for kernels lacking olddefconfig)
|
|
cp "$srcdir/$_config" "$builddir"/.config
|
|
yes "" | make -C "$builddir" ARCH="$_carch" HOSTCC="$HOSTCC" oldconfig
|
|
}
|
|
|
|
build() {
|
|
unset LDFLAGS
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
|
}
|
|
|
|
package() {
|
|
cat "$builddir/arch/arm/boot/zImage" \
|
|
"$builddir/arch/arm/boot/dts/tegra20-glide.dtb" \
|
|
> "$builddir/arch/arm/boot/zImage-dtb"
|
|
|
|
# kernel.release
|
|
install -D "$builddir/include/config/kernel.release" \
|
|
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
|
|
|
|
# zImage (find the right one)
|
|
cd "$builddir/arch/$_carch/boot"
|
|
_target="$pkgdir/boot/vmlinuz-$_flavor"
|
|
for _zimg in zImage-dtb Image.gz-dtb *zImage Image; do
|
|
[ -e "$_zimg" ] || continue
|
|
msg "zImage found: $_zimg"
|
|
install -Dm644 "$_zimg" "$_target"
|
|
break
|
|
done
|
|
if ! [ -e "$_target" ]; then
|
|
error "Could not find zImage in $PWD!"
|
|
return 1
|
|
fi
|
|
|
|
cd "$builddir"
|
|
make modules_install \
|
|
ARCH="$_carch" \
|
|
INSTALL_MOD_PATH="$pkgdir"
|
|
}
|
|
|
|
sha512sums="5f9eb065932e404091dd9e4afd5a92b6382ddbc81488684c42981cdfe227da9a423356c19ec236ca1a9a7f4bf042cf351aa8b3cd4f7488b0d8b1245d69221a5c linux-samsung-i927-4.20.4.tar.gz
|
|
31f3fd4989c4e49bb0933e3c96e978956782f27fdf4842c6f98b62e0b8eaa09c916cb3ab2655c785405e105aaf679437711c07cdd12ce31ddf17e645668b3d85 config-samsung-i927.armv7
|
|
7dfb712823f783f9263622fe16a3e65b8ae11c3d0661f17e5f527c2e30ded0f89a38f0de998e4ba12ea89cbae5ddbe8a27c9ce87e8f54344d838f5a5dcff1c9f 0001-dt-bindings-drm-panel-Add-Samsung-s6e63m0-panel-docu.patch
|
|
fcf88346c9c7ace5918d7b87acdab346e8f2fd6a189a293db6b5aa879108e535b148827cf001df65742a4e0177fcd8c9cf7ba2ad1ab8e89bdab753ab536fe807 0002-drm-panel-Add-driver-for-Samsung-S6E63M0-panel.patch
|
|
29e9510202e0ccdb1be3b05de42c82c65fafaa52a78a252a92d5278293b6d136eef1b182ad58b5375248ceaf5b3513c1c0691902d1ace007576948bf2285748a 0003-drm-tegra-Hacks-for-S6E63M0.patch
|
|
3b05c9d840d1ace9769d4ac577ff363458f5fa70a2efd467c5ff140ff7e328a1bdbee988e450deb267c1747158a0c809f7418d9871d3470049ad42d7d800aa6f 0004-iio-gyro-mpu3050-get-chip-ID-correctly.patch
|
|
f76ea98539052453ec9937f92de4001c6b676262939fd1938723597d663da72f77f75371f4fa97b10dc9146336a4be315545142de4bfd6ed90af8c89799bd254 0005-soc-tegra-fix-build-for-Tegra.patch
|
|
f88ba68f43a53e5a73155bfd73eed060f8ce506eb8238aa73f60e9f03a14325278eea34a82e913992f5045def866003cd576106c06018970b77e67cbe07097d2 0006-mmc-core-Add-a-quirk-for-NVIDIA-Tegra-EMMC.patch
|
|
7329673a287a4e6b088b2a8accb20fca80939e1a6762993b38d7b8219c1787df1e72515afaed135957b3501f4dfb53f5d21dc718d4fa73e693ac6b880c203297 0007-leds-Add-led-class-support-isa1200-vibration-motor.patch
|
|
f071517e12b195ae8e95784cdd0dcf61766015f25b08b8d86fc928218e46457e706ff4cce6ca04e2b70763d2910f858d32167441df4d3f234ace25add550c897 0008-iio-accel-kxcjk-Add-device-tree-support.patch
|
|
2994910eeee9bc5a7049ebc4fd9a0607e233849411c03a71bc1bf83aa68c087293723b5ca9b8468a6865c9cd38a6a158b25176bfb9bed159ca0e2574e21c7fcc 0009-ARM-dts-tegra20-glide-Samsung-SGH-I927-support.patch
|
|
b1179f041735d9f3197e77f4cf7588bbe07b1dc11c73798abf9d6f06e4e13b284a9b347ff8d2512592374451e8c6cfabb8e5f36105f95ed913b8b647ef7823cb 0010-Input-stmpe-keypad-add-STMPE1801-support.patch
|
|
d5f7b94d14e0ab122d40b2ce6fe56c9fb617ea3060ba35892487c61de5032d068ad582ece0db5dff4d340bb440c0037a905b270841faef980242a72aa8438029 0011-Add-tegra_wm8994-driver.patch
|
|
926be3e6a37bfe37b17fc42022445c3354a178716bb460f445fa332b4aae8cfc2c6bf49b28799c01ae2ea3c010cd61c192f89987dd931aeca7708d88a82eaee7 0012-HACK-Fix-wm8994-Kconfig.patch
|
|
449da7e1adac68fbf31a01240f10a573ef65b739b1d8f1180bb72321095119a792210b98563e89d7c230f8aa577940261ffca1239f435a64bb1fabf7a7250e2b 0013-ASoC-tegra_wm8994-cleanup.patch
|
|
05bd5d1a21eb20c0fb373d3fea6829942f7f7591bb8dd3b37ebe8d544652e1134e69348be6a2c1728fc30abc5a68cb0188595861e2487712e7c49411abb03586 0014-ARM-dts-tegra20-glide-Device-Tree-changes.patch
|
|
42c70a41c5fbd989ee2a23f7abf9bc28cb65a6de6764db5ad5fd102b17b5ed69a696e7b3ffc0f24ddafb93985b1e0cbdc16cac42ec6b9aea1c9caa97ccbc225d 0015-ARM-dts-tegra20-glide-add-memory-node-address.patch
|
|
2fda20516869817dd13324d89d5ebf4347cb15aa5de5d44a87ddba4402ce4c9b4f913dd7a34911a0783cd221d7b75e3a2b0e50b76811c883f55bf06a047e4af9 0016-ARM-dts-tegra20-glide-comment-out-MHL.patch
|
|
9a0000f4b69dce55d542eb9efe3dd568403b1056cccaa0b91db9ebd007091eabd6675ceb59c17b900985776ea6747f421df36b34de52c311bb5bcc530d2eb236 0017-ARM-dts-tegra20-glide-fix-duplicate-i2c-bus-address.patch
|
|
898cfe0fb15702f40b236e8ae12ea07db960d61e58d1474abdbbe35bd2cfc87748228e78b6c2f2f3058e78982a64a0986a533eca412d2fc2ef344b806c9ecd41 0018-ARM-dts-tegra20-glide-fix-USB-gadget-mode.patch
|
|
dae4e3a9bfe17fb58e568ef4467f2344ebd8cff9614f03ee245bca1aec614c0fceaa1a693e8d3aba4cb29577760bf312b3c4c4fbf6223ef606c79b3c4fe7e702 0019-ARM-dts-tegra20-glide-change-display-timings.patch
|
|
3919c2f80a0cf6529f2b469c560c822113e703fa0ee40b35f9fc0a244b0060b6b535960c17ce0ba73f9623aeede809f736345cc4db6ff14f41ff2a11be75b4dd 0020-ARM-dts-tegra20-glide-add-intrrupt-binding-for-charg.patch
|
|
2e7a2341734c3164803ec589d81a63c85923482c30a51e3cfed8a11b672b75628b77965e554bffbc53e25ccb696f361b163c52b02d5ca52093be3464ef1510d2 0021-drm-panel-s6e63m0-disable-rotation.patch
|
|
898cc2e189a0032b7e87208a7d932e43504fded1642e012e6fb97ba34027e5645740c82ca0afd51e951ede548e6343e3bbd0ccd1defe4c7a9b30d4f90a577987 0022-ARM-dts-tegra20-glide-set-panel-reset-GPIO-pin-to-ac.patch
|
|
0db0a631fcbefa3df40de808cf4d9e5c09bff05456e99ccb1d728e29c57798a89dacc7fb3b9d294ece40ae188437f3d2e653a91273b7b056dd759bf9b177480d 0023-power-supply-max17040-Fix-voltage-reporting.patch
|
|
a9c2ea83254fdf682835f040a4f7803e189c62362834eafce97618b3e364a753cb91ac55b8eecb2341f01186d743dc544685475fa934244e9fb7bd6a575b092c 0024-power-supply-max17040-Set-initial-RCOMP-value.patch
|
|
5171517d32de9df58731bd01d5bcde646a9ea556c6b49840d09a66a95d4ad0c9785e507b314684bb8902d7e073406e3fc198f124baad0c02f21a506cc0298896 0025-drm-panel-s6e63m0-Increase-back-porch.patch
|
|
9ba9c82b0eca98d82fed651aac20e95299347bb42115e19d58d0d9af806cf95ff61e027986054aebee8c7e6cdb830453130281f38ae27c68e57fc6bcfcab35af 0026-ARM-dts-tegra20-glide-fix-AK8975.patch
|
|
f0822d4adc53b5ba9f1c1f1584785b65c6a830bebdd6f87015d33198764274153f69954ed3329e5300b48d7ddcdc90bce5a24e1cbb29169dcf7915f483d6b730 0027-Input-mcs_touchkey-Add-parse-DT-function-from-device.patch
|
|
032013b850cc2dadcb49d5184744fb9b9d8c7860e8cbc9b7250e6bc4a37a22e12bb3a1c871fff325ccd11163aa19073171d2fcce0355d7434ef66af435eb9053 0028-input-keyboard-mcs_touchkey-Convert-to-devm_-managed.patch
|
|
ff77927fb87dd283484feccf8c9ef073f42ccebd2192a87c1fe78a9423dd7b3bcc1e3dfdb0999a5500452a42135151c2ed9e77d3c34e0b9b84ca7f4a1dead8d4 0029-input-keyboard-mcs_touchkey-add-sentinel-into-array-.patch
|
|
f02cbe2baeb4784eebdc491aa4b12e97ae7fdaf2a5130231b3eb1f562c32e7257cc6eb416c4cd36c6d176741c5e9d98c9b194d255383f6a36ed5ae723896b3c7 0030-TRATS2-dts-exynos4412-m0.dts-Add-mcs-touchkey-node.patch
|
|
17841e65cf2e0a8cc2959055f854982bfa1060e5a50c54658a6023919c2c1591acb800c64b779ebb9f2647c5160e05066c82d0fe36345030cdb5074fc9a75541 0031-ARM-dts-tegra20-glide-Add-touchkey-binding.patch
|
|
ceae739b569fcc7ce1fb88903bd5a5d2640c5a843a1904beed761f6a26eb515baa5c3f8881b76e4c16b7d264381ee9e9e390d5a524fbd0e9556b32c544703286 0032-ARM-dts-tegra20-glide-Add-keyboard-backlight-LED.patch
|
|
815fa2ad4f00f9252a7162924ebb9e21ca535697dd80b50580049549589760ab20d43263d0963877cb21a9ab0018bfed4c01f7989263d88ae5bcd67deeaaa0f3 0033-input-keyboard-mcs_touchkey-LED-support.patch
|
|
e0a33d3478fbb9a9041e435996fac6ef0e1c93c435b2dc73f80d1f329d5e0dbdcecf749888a8d4d3d164854288075d4b99f129df3caee7593ca8d2b3d9307d4b 0034-ARM-dts-tegra20-glide-Add-HALL-GPIO-binding.patch
|
|
74991393af78bc7cd495eed25ba6f3d75ef05e7ee6be7e2f0085db52eda8838d338721ef7ef7ddfc37bbc55a1462d58dbf74c0494e3fa0248643421e0f0f38cd 0035-ARM-dts-tegra20-glide-Change-keyboard-keycodes.patch
|
|
9f88dadbe76eb9694b42bb6ab5031a63e03cee1f3a046036dc255761001d49c852a617b44c14868def7d17602c2f3f7d25e5f66d65232cc9d0b80f05a9e605b4 0036-ARM-dts-tegra20-glide-Fix-UART-bindings.patch
|
|
ecf0d3d69e073d8725e31cae8c1ffc6dcd983b6f8ec9c37b40d1cbbcba3f82326cfd2ad89a4e53f272f9bea2b9f06abb1e662e987e52429ef8eb72b9cb3c79ed 0037-ARM-dts-tegra20-glide-USB-OTG-mode-and-power.patch
|
|
18d59fcd6e78410e874db04d6f4dce7e427c67cef3821b01488b0b815ad6dfc4d18e420c56385686a19e44dadb33c760824136dcb1938bc5d3a052ca2f515000 0038-ARM-dts-tegra20-glide-Remove-WiFi-host-wake-GPIO.patch
|
|
3ebb4b6b495e1b78bb591f47024158041a724004441de30272fe35f65a09703c6259759d3add1a7cd6774d46c09c976ac1607ee6e8018871dc5e4fde3caae21c 0039-ARM-dts-tegra20-glide-Add-bindings-for-microphone.patch"
|