pmaports/device/community/linux-postmarketos-exynos4/APKBUILD
2022-10-16 16:32:37 +02:00

111 lines
5.4 KiB
Text

# Maintainer: Thiago Foganholi <thiagaoplusplus@outlook.com>
# Co-Maintainer: Newbyte <newbyte@disroot.org>
# Kernel config based on: arch/arm/configs/exynos_defconfig
pkgname=linux-postmarketos-exynos4
pkgver=6.0.2
pkgrel=0
pkgdesc="Mainline kernel fork for Samsung Exynos4 devices"
arch="armv7"
_carch="arm"
_flavor="${pkgname#linux-}"
url="https://kernel.org"
license="GPL-2.0-only"
options="!strip !check !tracedeps
pmb:cross-native
pmb:kconfigcheck-community
"
makedepends="
bash
bison
busybox-static-armv7
findutils
flex
gmp-dev
mpc1-dev
mpfr-dev
openssl-dev
perl
postmarketos-installkernel
xz
"
# Source
_config="config-$_flavor.$arch"
case $pkgver in
*.*.*) _kernver=${pkgver%.0};;
*.*) _kernver=$pkgver;;
esac
source="
https://cdn.kernel.org/pub/linux/kernel/v${_kernver%%.*}.x/linux-$_kernver.tar.xz
$_config
0001-ARM-decompressor-Flush-tlb-before-swiching-domain-0-.patch
0002-ARM-dts-exynos-Add-reboot-modes-to-midas.patch
0003-mmc-core-Workaround-VTU00M-0xf1-FTL-metadata-corrupt.patch
0004-drivers-drm-Add-backlight-control-support-for-s6e8aa.patch
0005-power_supply-max77693-Listen-for-cable-events-and-en.patch
0006-mfd-max77693-Add-defines-for-charger-current-control.patch
0007-power_supply-max77693-change-the-supply-type-to-POWE.patch
0008-Add-s6evr02-panel.patch
0009-samsung-t0lte-add-leds.patch
0010-drm-Allow-DRM_IOCTL_MODE_CREATE_DUMB-on-render-nodes.patch
0011-ARM-dts-exynos-disable-HDMI-on-Midas.patch
0012-dt-bindings-display-simple-add-support-for-Samsung-L.patch
0013-drm-panel-simple-add-support-for-the-Samsung-LTL101A.patch
initramfs.list
init
"
builddir="$srcdir/linux-${_kernver//_/-}"
prepare_isorec() {
# https://wiki.postmarketos.org/wiki/Boot_process#isorec
cp -v /usr/$(arch_to_hostspec $arch)/bin/busybox.static \
"$builddir"/usr/
cp -v "$srcdir"/init "$builddir"/usr/
cp -v "$srcdir"/initramfs.list "$builddir"/usr/
}
prepare() {
default_prepare
prepare_isorec
cp -v "$srcdir/$_config" .config
}
build() {
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" KCFLAGS="-Wno-array-bounds" \
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/boot/dtbs"
install -D "$builddir"/include/config/kernel.release \
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
}
sha512sums="
cee8ce158881ef84d475befec58f21f3e5e71e760b012db597204c5693501ec0de2904957ccbc6156bcc697125a44c45fdb0e9d11c844d245eab455b858944f0 linux-6.0.2.tar.xz
4e22a58ae551e5f87b7979e75a2a3ccd01d239c56d44b93e431e6e13f7b6a2437e798fcd7c37c931895cea1296b36c26939ec2470dbd8e646116fbb0af791a5a config-postmarketos-exynos4.armv7
1d2090c9d907674ec9e6b56d030b0f59d62b73e083689695ef61fd3354b1fe86b24ccb3c518b2d36034f1636beb221e9a19c9cbef283f2652cc8d444a4fa7528 0001-ARM-decompressor-Flush-tlb-before-swiching-domain-0-.patch
8c7acab8e186441a23c80bb851658c3df69ec1e94ed6b4d546afe572609cbc350a6cd55cc7343656095a0f55fee0505c40b6de7642d367502561a26f600137e3 0002-ARM-dts-exynos-Add-reboot-modes-to-midas.patch
f0295c808a2ec171976aaef137f2de0b7136e69cb342fd4b514af5b67e321e7e5779204e6d60d71e3213507113e2ec6e11bfcb0de2085b2085d226cbae2cdede 0003-mmc-core-Workaround-VTU00M-0xf1-FTL-metadata-corrupt.patch
2afb42133f982aaadc3f7dc302be72d08768eeca4c3d5f8c921deeaf2c86769f1ec78fed9d89a37cd0bf55e946b04be320c6ee153ffb13fb9d1093a044cc62e1 0004-drivers-drm-Add-backlight-control-support-for-s6e8aa.patch
05e3af8b5afd8aeeb92d624ec00201e32117dd25042e93a9cd854981313e62751f6542b1e5508b2c93bd8c880b0017ddbdf1fdb334d06ea6c5d95188269746b7 0005-power_supply-max77693-Listen-for-cable-events-and-en.patch
d73446daac3e090ba26f5123b0f01247f3f30a0ed999eb98498b13d299a409c433edaca2a40914be353f01a3a96a74cb4b1ced5354e45315a6e9b278452cfe0f 0006-mfd-max77693-Add-defines-for-charger-current-control.patch
06c912720d682f9c520d570a1bb4f0134ae3c4807afcacbb26b204af75c48377edc7856e7eed3a96a298aa1f225c23f73832c47e13b92d750408d97a77964fed 0007-power_supply-max77693-change-the-supply-type-to-POWE.patch
6121ef0207ed40f6c984c0038fe165f46daf5457e64098e7d4d2ae7b1a3a2ae99c12b4555d74c441d2d6d321e147e4d59f2db54de9f06415608bb1b29ae5e15a 0008-Add-s6evr02-panel.patch
1ad79107f5313329fbdf5cf03fed7d154cd2ae18a70d0311fe2350b1a43df78224f216b4f0513f7e8ce2c5006c384cc27e5dd93045bc2b07f2ca4aad41292b5a 0009-samsung-t0lte-add-leds.patch
3a99dc2b60d32668b58e4803f7ef7f907e330d11e9aa1f9dbf83abdea13c9618847f05527ddc7ada123f490fb8184016c7195db27b12431e744eabccd01a7c88 0010-drm-Allow-DRM_IOCTL_MODE_CREATE_DUMB-on-render-nodes.patch
b4d3f65575485ce703965430efaac6a8dccbab1cb05614da07b09cbe8bce164f85c996f78a740c87745565f4f19c20c174a89527bd3d1acf578f8e3f76245164 0011-ARM-dts-exynos-disable-HDMI-on-Midas.patch
e72abd7018ef3db5a3af3246bf2542e1935dac4ade05a3a5f6f1adfc3bc590a55f345dcd17cd83960ed601e782c4a8d531577b5fe49017433a6939339bdcd4cb 0012-dt-bindings-display-simple-add-support-for-Samsung-L.patch
59acf1de6a4071a4d4b64a9136bf950bd45d53ff272ec3eb9cb15ec772ded76f9feb16cec206aa50264332f7d832a06afcd831dd3474d565af497c5e2ae2b214 0013-drm-panel-simple-add-support-for-the-Samsung-LTL101A.patch
aaff0332b90e1f9f62de1128cace934717336e54ab09de46477369fa808302482d97334e43a85ee8597c1bcab64d3484750103559fea2ce8cd51776156bf7591 initramfs.list
09f1f214a24300696809727a7b04378887c06ca6f40803ca51a12bf2176a360b2eb8632139d6a0722094e05cb2038bdb04018a1e3d33fc2697674552ade03bee init
"