2019-02-28 11:47:15 +00:00
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
|
|
|
# Kernel config based on: arch/arm64/configs/lineage-a5y17lte_defconfig
|
|
|
|
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=linux-samsung-a5y17lte
|
2019-02-28 11:47:15 +00:00
|
|
|
pkgver=3.18.14
|
2020-11-09 20:15:24 +00:00
|
|
|
pkgrel=7
|
2019-02-28 11:47:15 +00:00
|
|
|
pkgdesc="Samsung Galaxy A5 (2017) kernel fork"
|
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
|
|
|
_flavor="samsung-a5y17lte"
|
|
|
|
url="https://kernel.org"
|
|
|
|
license="GPL-2.0-only"
|
2020-04-21 01:24:27 +00:00
|
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
2020-11-09 20:15:24 +00:00
|
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev dtbtool-exynos gcc6 gcc-aarch64"
|
2019-02-28 11:47:15 +00:00
|
|
|
|
|
|
|
# Source
|
|
|
|
_repository="android_kernel_samsung_universal7880"
|
|
|
|
_commit="9af43285ff43d74f3f40f910023e57dfad1c8e63"
|
2019-07-22 21:09:38 +00:00
|
|
|
_qca_commit="48f9ab5d5c161549be098997fa0e3602c1547213"
|
2020-02-28 09:59:56 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
2019-02-28 11:47:15 +00:00
|
|
|
source="
|
2020-02-28 09:59:56 +00:00
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/LineageOS/$_repository/archive/$_commit.tar.gz
|
|
|
|
qcacld-$_qca_commit.tar.gz::https://github.com/codeauroraforum/quic-la-platform-vendor-qcom-opensource-wlan-qcacld-2.0/archive/$_qca_commit.tar.gz
|
2019-02-28 11:47:15 +00:00
|
|
|
$_config
|
2019-07-26 14:18:49 +00:00
|
|
|
fix_firmware_path.patch
|
2019-02-28 11:47:15 +00:00
|
|
|
gcc7-give-up-on-ilog2-const-optimizations.patch
|
|
|
|
gcc8-fix-put-user.patch
|
2020-09-15 06:43:03 +00:00
|
|
|
gcc10-extern_YYLOC_global_declaration.patch
|
2019-02-28 11:47:15 +00:00
|
|
|
0007-usb_gadget-set-random-rndis-host-MAC-address-to-prev.patch
|
2019-07-22 21:09:38 +00:00
|
|
|
qcacld-2.0.config
|
|
|
|
disable_wlan_werror.qcapatch
|
|
|
|
skbuff_increased.patch
|
2019-02-28 11:47:15 +00:00
|
|
|
disable_knox.patch
|
2019-08-15 19:21:10 +00:00
|
|
|
debug_muic.patch
|
2019-02-28 11:47:15 +00:00
|
|
|
"
|
2020-02-28 09:59:56 +00:00
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
2020-09-15 18:55:02 +00:00
|
|
|
_qcaclddir="$srcdir/quic-la-platform-vendor-qcom-opensource-wlan-qcacld-2.0-$_qca_commit"
|
2019-02-28 11:47:15 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
2020-04-01 07:09:30 +00:00
|
|
|
. downstreamkernel_prepare
|
2019-07-22 21:09:38 +00:00
|
|
|
prepare_modules
|
|
|
|
}
|
|
|
|
|
|
|
|
prepare_modules() {
|
2020-09-15 18:55:02 +00:00
|
|
|
cd $_qcaclddir
|
2019-07-22 21:09:38 +00:00
|
|
|
patch -p1 -i "$srcdir"/disable_wlan_werror.qcapatch
|
2019-02-28 11:47:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
2019-07-22 21:09:38 +00:00
|
|
|
build_modules
|
|
|
|
|
2019-02-28 11:47:15 +00:00
|
|
|
dtbTool-exynos --pagesize 2048 --platform 0x50a6 --subtype 0x217584da \
|
|
|
|
-o "arch/arm64/boot/dtb.img" $(find "arch/arm64/boot/dts/" -name *a5y17lte*.dtb)
|
|
|
|
}
|
|
|
|
|
2019-07-22 21:09:38 +00:00
|
|
|
build_modules() {
|
|
|
|
(
|
|
|
|
set -a
|
|
|
|
source "$srcdir"/qcacld-2.0.config
|
2020-11-09 20:15:24 +00:00
|
|
|
# Use GCC-6, because when compiled with GCC-10 it fails to initialize:
|
|
|
|
# "module wlan: overflow in relocation type 261 val ffffffbffc000000"
|
|
|
|
make M=$_qcaclddir WLAN_ROOT=$_qcaclddir modules ARCH="$_carch" CC="gcc6-${CC:-gcc}"
|
2019-07-22 21:09:38 +00:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2019-02-28 11:47:15 +00:00
|
|
|
package() {
|
2020-02-18 08:34:06 +00:00
|
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
|
|
|
|
|
2019-07-22 21:09:38 +00:00
|
|
|
mkdir -p "$pkgdir"/lib/modules/$pkgver
|
|
|
|
cp -v "$builddir"/modules.builtin "$pkgdir"/lib/modules/$pkgver
|
2020-09-15 18:55:02 +00:00
|
|
|
make INSTALL_MOD_PATH="$pkgdir" INSTALL_MOD_STRIP=1 M=$_qcaclddir modules_install
|
2019-07-22 21:09:38 +00:00
|
|
|
|
2019-02-28 11:47:15 +00:00
|
|
|
# Master DTB (deviceinfo_bootimg_qcdt)
|
|
|
|
install -Dm644 "$builddir/arch/arm64/boot/dtb.img" \
|
|
|
|
"$pkgdir/boot/dt.img"
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="96794c6c5c91375a0110906c512644ccfb7c1d1f6e9275a0807e123bd8d02c93047856228298e38c9d24ddb663d58c33dbeaedb8f433cd54a07e4ae4e91ad243 linux-samsung-a5y17lte-9af43285ff43d74f3f40f910023e57dfad1c8e63.tar.gz
|
2019-07-22 21:09:38 +00:00
|
|
|
1dfcf7d1965d1a4fa86ac05d4408f1ffbedaf864689e0228d09d3d964fca08edf33dcf77bb0ab4dfcf1f8a37d6ee300c9e480457710745f9f5b7df9587e265e8 qcacld-48f9ab5d5c161549be098997fa0e3602c1547213.tar.gz
|
*/linux-*: enable CONFIG_CRYPTO_XTS (MR 1405)
Enable CONFIG_CRYPTO_XTS for each kernel, so we can switch to using
aes-xts-plain64 as default cipher for cryptsetup (override with
"pmbootstrap --cipher"), instead of aes-cbc-plain64 (pmbootstrap#1940).
I have executed "pmbootstrap kconfig edit" on each kernel, and manually
toggled the option. The diff is not always clean, because for some
kernels it is apparently the first time, that menuconfig was executed on
the configs like that. In a few instances, it turned out that
CONFIG_ANDROID_PARANOID_NETWORK needed to be disabled too (this is
already a requirement, but as the config was incomplete, it was not
visible that this option was enabled). Very few times, I had to enable
CONFIG_EXPERIMENTAL in order to see and enable CONFIG_CRYPTO_XTS.
It would be great if we could automate such mass kconfig edits in the
future, see pmbootstrap#1942.
[skip ci]: I have verified, that every single one of these kernels builds.
CI will likely run out of time while downloading source tarballs.
2020-07-11 13:24:19 +00:00
|
|
|
c9944df60530b58936064eb23152d0b3e67ca469213fd15ba2e641920cf73ec9e9aa54691a0c6b9f4ff87677adf4fbea70768d14191d3c8da38b0fc225d182aa config-samsung-a5y17lte.aarch64
|
2020-09-15 18:55:02 +00:00
|
|
|
9b13cccc9323f343d0aa676de6c6a83f34815cf06656adfa7ba20b559d94fc46c04b1508f1db22d12a14d4cdd531994f548b77a4a4d7d07481ee88a56564c0c9 fix_firmware_path.patch
|
2019-02-28 11:47:15 +00:00
|
|
|
77eba606a71eafb36c32e9c5fe5e77f5e4746caac292440d9fb720763d766074a964db1c12bc76fe583c5d1a5c864219c59941f5e53adad182dbc70bf2bc14a7 gcc7-give-up-on-ilog2-const-optimizations.patch
|
|
|
|
197d40a214ada87fcb2dfc0ae4911704b9a93354b75179cd6b4aadbb627a37ec262cf516921c84a8b1806809b70a7b440cdc8310a4a55fca5d2c0baa988e3967 gcc8-fix-put-user.patch
|
2020-09-15 06:43:03 +00:00
|
|
|
2b48f1bf0e3f70703d2cdafc47d5e615cc7c56c70bec56b2e3297d3fa4a7a1321d649a8679614553dde8fe52ff1051dae38d5990e3744c9ca986d92187dcdbeb gcc10-extern_YYLOC_global_declaration.patch
|
2019-02-28 11:47:15 +00:00
|
|
|
b5f7aed0d4c78fcd9ea6f65e11606c4d33004b45eed39017baa8b0a78db801396aa04ba7cd3a4a669c23f878f5462ae1b5f753e0e26b65c9962fd1e98855e524 0007-usb_gadget-set-random-rndis-host-MAC-address-to-prev.patch
|
2019-07-22 21:09:38 +00:00
|
|
|
83a432ab7e3ee3cae47b0c751cf0a268f4291411789a1cf9187ef003a0f09b46316c0669e92bd91d3062b3d020005e67aea6fbf48b8ef87ba9b7f3a86a44612b qcacld-2.0.config
|
|
|
|
23278ca0660f17723506ca5befea757d736bd2cf4f01bccfaf4c154f94d42828fc2f49fd599f3295623a65f85b3b89bea18389a65c63f82f0496a92e8e6d8d72 disable_wlan_werror.qcapatch
|
|
|
|
f763033e73f5a00ad42273c11058446ff365d09d5f204c828d111aa48bc816baca74c333cbd2fa61c21ccdebc7329d0a3cfe971f5991026cb5abe7871b51a32b skbuff_increased.patch
|
2020-09-15 18:55:02 +00:00
|
|
|
24fde35d01ecc706120d808ca7283e302f6de2d66bb0c58af855b9033f6e815261ed38719d3eb93129b52c2db58f1045993abd9a1d16e264b4fcfa74c01a9c40 disable_knox.patch
|
|
|
|
d40153e1d86d407301ff3e6824b8445bf259bffdd50179149f67012b42829e565ce9dbeeeb2eca34bb14ddabcc694dd28793e6faa4f44a88f962e33490766ff7 debug_muic.patch"
|