samsung-a5y17lte : use gcc6 for wifi module (MR 1698)

Fall back to gcc6, because wlan module compiled with gcc10 fails to
initialize with `module wlan: overflow in relocation type 261 val ffffffbffc000000`
error.
Explicitly add gcc-aarch64 in makedepends, because of gcc6 present, seems
like gcc dependencies  not resolved correctly

[ci:skip-build]: already built successfully in CI
This commit is contained in:
dzmitry 2020-11-09 23:15:24 +03:00 committed by Oliver Smith
parent 29c004310f
commit 97a88d030b
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -3,7 +3,7 @@
pkgname=linux-samsung-a5y17lte
pkgver=3.18.14
pkgrel=6
pkgrel=7
pkgdesc="Samsung Galaxy A5 (2017) kernel fork"
arch="aarch64"
_carch="arm64"
@ -11,7 +11,7 @@ _flavor="samsung-a5y17lte"
url="https://kernel.org"
license="GPL-2.0-only"
options="!strip !check !tracedeps pmb:cross-native"
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev dtbtool-exynos"
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev dtbtool-exynos gcc6 gcc-aarch64"
# Source
_repository="android_kernel_samsung_universal7880"
@ -61,7 +61,9 @@ build_modules() {
(
set -a
source "$srcdir"/qcacld-2.0.config
make M=$_qcaclddir WLAN_ROOT=$_qcaclddir modules ARCH="$_carch" CC="${CC:-gcc}"
# 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}"
)
}