OSDN Git Service

build: use arm kernel headers for arm 2nd arch builds
authorColin Cross <ccross@android.com>
Wed, 22 Jan 2014 00:54:00 +0000 (16:54 -0800)
committerColin Cross <ccross@android.com>
Wed, 22 Jan 2014 01:01:20 +0000 (17:01 -0800)
Compiling for arm requires using the arm kernel headers and not
the aarch64 kernel headers.  Add $(combo_2nd_arch_prefix) to get
asm-$(TARGET_2ND_ARCH) when arm is the 2nd arch.

Change-Id: I15270d0ef35e48c034bf4d0d5e35b76f67b2a8e1

core/combo/TARGET_linux-arm.mk

index fb390be..f0c35b6 100644 (file)
@@ -197,7 +197,7 @@ endif
 
 
 KERNEL_HEADERS_COMMON := $(libc_root)/kernel/uapi
-KERNEL_HEADERS_ARCH   := $(libc_root)/kernel/uapi/asm-$(TARGET_ARCH)
+KERNEL_HEADERS_ARCH   := $(libc_root)/kernel/uapi/asm-$(TARGET_$(combo_2nd_arch_prefix)ARCH)
 KERNEL_HEADERS := $(KERNEL_HEADERS_COMMON) $(KERNEL_HEADERS_ARCH)
 
 $(combo_2nd_arch_prefix)TARGET_C_INCLUDES := \