build
Revision | de2b183d849754b23e3efa17562e6fc55d78543b (tree) |
---|---|
Time | 2017-03-07 21:27:43 |
Author | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
kernel.mk: fix the linking error of kernel 4.9
Use ld.bfd instead of ld.gold from the -androidkernel- toolchain.
@@ -25,7 +25,7 @@ TARGET_KERNEL_CONFIG ?= goldfish_defconfig | ||
25 | 25 | KERNEL_CONFIG_DIR := arch/arm/configs |
26 | 26 | endif |
27 | 27 | |
28 | -CROSS_COMPILE ?= $(abspath $(TARGET_TOOLS_PREFIX)) | |
28 | +CROSS_COMPILE ?= $(abspath $(TARGET_TOOLCHAIN_ROOT)/bin)/x86_64-linux-androidkernel- | |
29 | 29 | KBUILD_OUTPUT := $(abspath $(TARGET_OUT_INTERMEDIATES)/kernel) |
30 | 30 | mk_kernel := + $(hide) $(MAKE) -C $(KERNEL_DIR) O=$(KBUILD_OUTPUT) ARCH=$(TARGET_ARCH) CROSS_COMPILE=$(CROSS_COMPILE) $(if $(SHOW_COMMANDS),V=1) |
31 | 31 |