diff --git a/device/testing/linux-samsung-a5y17lte/APKBUILD b/device/testing/linux-samsung-a5y17lte/APKBUILD index c28a4bcce..aa91c9779 100644 --- a/device/testing/linux-samsung-a5y17lte/APKBUILD +++ b/device/testing/linux-samsung-a5y17lte/APKBUILD @@ -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}" ) }