diff options
author | Raghavendra Rao Ananta <rananta@codeaurora.org> | 2020-04-20 01:49:09 -0700 |
---|---|---|
committer | Raghavendra Rao Ananta <rananta@codeaurora.org> | 2020-04-20 01:51:53 -0700 |
commit | dc26f3611a5b8327cd89a499a29aaace51115a8b (patch) | |
tree | 1f8f4fd2f5a05a1bfb168517e85de79004aa9ed3 /kernel_definitions.mk | |
parent | 4609a47abb953f9ba8df41e1d1a09b821ba1f91f (diff) |
kernel_definitions: Export NM
Export NM to llvm-nm prebuilts path as $NM is used internally by many of
the kernel scripts. This is especially needed when LTO is enabled as
GCC's nm utility fails to read the object files.
Change-Id: Id56ff5faf9544e4c2547f43cc7a7c380ffb15354
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
Diffstat (limited to 'kernel_definitions.mk')
-rw-r--r-- | kernel_definitions.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel_definitions.mk b/kernel_definitions.mk index 666a4f0..0e7c007 100644 --- a/kernel_definitions.mk +++ b/kernel_definitions.mk @@ -87,7 +87,7 @@ ifeq ($(KERNEL_LLVM_SUPPORT),true) KERNEL_AOSP_LLVM_BIN := $(shell pwd)/$(shell (dirname $(CLANG))) $(warning "Not using latest aosp-llvm" $(KERNEL_LLVM_BIN)) endif - real_cc := REAL_CC=$(KERNEL_LLVM_BIN) CLANG_TRIPLE=aarch64-linux-gnu- AR=$(KERNEL_AOSP_LLVM_BIN)/llvm-ar LLVM_NM=$(KERNEL_AOSP_LLVM_BIN)/llvm-nm LD=$(KERNEL_AOSP_LLVM_BIN)/ld.lld + real_cc := REAL_CC=$(KERNEL_LLVM_BIN) CLANG_TRIPLE=aarch64-linux-gnu- AR=$(KERNEL_AOSP_LLVM_BIN)/llvm-ar LLVM_NM=$(KERNEL_AOSP_LLVM_BIN)/llvm-nm LD=$(KERNEL_AOSP_LLVM_BIN)/ld.lld NM=$(KERNEL_AOSP_LLVM_BIN)/llvm-nm endif else ifeq ($(strip $(KERNEL_GCC_NOANDROID_CHK)),0) |