zenfone8: Remove GAS and use LLVM_IAS
Change-Id: I281808eda271e47ba1204f05f7f72e59cfd51fdd
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 20011fd..819da92 100755
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -130,7 +130,7 @@
DEVICE_MATRIX_FILE += $(DEVICE_PATH)/manifest/compatibility_matrix.xml
# Kernel
-KERNEL_LD := LD=ld.lld
+KERNEL_LD := LD=ld.lld AR=llvm-ar
BOARD_BOOT_HEADER_VERSION := 3
BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOT_HEADER_VERSION)
BOARD_KERNEL_CMDLINE := console=ttyMSM0,115200n8 androidboot.hardware=qcom androidboot.console=ttyMSM0 androidboot.memcg=1 lpm_levels.sleep_disabled=1 video=vfb:640x400,bpp=32,memsize=3072000 msm_rtb.filter=0x237 service_locator.enable=1 androidboot.usbcontroller=a600000.dwc3 swiotlb=0 firmware_class.path=/vendor/firmware loop.max_part=7 cgroup.memory=nokmem,nosocket pcie_ports=compat loop.max_part=7 iptable_raw.raw_before_defrag=1 ip6table_raw.raw_before_defrag=1
@@ -149,11 +149,7 @@
TARGET_KERNEL_ADDITIONAL_FLAGS := \
DTC_EXT=$(shell pwd)/prebuilts/misc/linux-x86/dtc/dtc \
HOSTCFLAGS="-fuse-ld=lld -Wno-unused-command-line-argument"
-TARGET_KERNEL_ADDITIONAL_FLAGS += LLVM=1
-
-# Use Gnu AS until we can switch to LLVM_IAS=1
-KERNEL_TOOLCHAIN := $(shell pwd)/prebuilts/gas/$(HOST_PREBUILT_TAG)
-TARGET_KERNEL_CROSS_COMPILE_PREFIX := aarch64-linux-gnu-
+TARGET_KERNEL_ADDITIONAL_FLAGS += LLVM=1 LLVM_IAS=1
BOARD_VENDOR_KERNEL_MODULES_LOAD := \
adsp_loader_dlkm.ko \