universal7580: Silence clang warnings during kernel compile
authorArne Coucheron <arco68@gmail.com>
Tue, 12 Jan 2021 04:45:19 +0000 (05:45 +0100)
committerDanny Wood <danwood76@gmail.com>
Tue, 6 Apr 2021 08:10:52 +0000 (10:10 +0200)
clang-11: warning: argument unused during compilation:
'-fuse-ld=lld' [-Wunused-command-line-argument]

Change-Id: I66a629f3573e3fad8aa085ea115475f02d60a7ea

BoardConfigCommon.mk

index 2d6d118c22ce8e1a111977ef53e32b30783d8e35..3ad9110b266d34ec80b340a1353c7df18deb1a8c 100644 (file)
@@ -44,6 +44,10 @@ TARGET_CPU_ABI := armeabi-v7a
 TARGET_CPU_ABI2 := armeabi
 TARGET_CPU_VARIANT := cortex-a53
 
+# Kernel
+TARGET_KERNEL_ADDITIONAL_FLAGS := \
+    HOSTCFLAGS="-fuse-ld=lld -Wno-unused-command-line-argument"
+
 # Audio
 USE_XML_AUDIO_POLICY_CONF := 1