AndroidKernel.mk: Use Android's prebuilt "make" if available

Switch to using the prebuilt "make" in Android's tree if available.
The Android build system has reduced out-of-tree/host system
module dependency.

Change-Id: I40e8592e162f0b607f96dd31cc8785af3093e485
Signed-off-by: David Ng <dave@codeaurora.org>
This commit is contained in:
David Ng
2019-01-09 12:11:27 -08:00
parent 71f9600f2a
commit a947f972e7

View File

@@ -1,6 +1,10 @@
#Android makefile to build kernel as a part of Android Build
PERL = perl
ifneq ($(wildcard prebuilts/build-tools/$(HOST_PREBUILT_TAG)/bin/make),)
MAKE := prebuilts/build-tools/$(HOST_PREBUILT_TAG)/bin/make
endif
KERNEL_TARGET := $(strip $(INSTALLED_KERNEL_TARGET))
ifeq ($(KERNEL_TARGET),)
INSTALLED_KERNEL_TARGET := $(PRODUCT_OUT)/kernel