kernel: Use full path to the gcc/g++ commands

gcc and g++ are now dissallowed commands so just run the full commands

Change-Id: I2ba5675a3f5410f51fc37b723714b35f1e4628c8
gugelfrei
Rashed Abdel-Tawab 5 years ago
parent fb35b9da61
commit 21ee5983e2
No known key found for this signature in database
GPG Key ID: 87867AAE006CB094

@ -129,3 +129,13 @@ endif
# Set use the full path to the make command
KERNEL_MAKE_CMD := $(BUILD_TOP)/prebuilts/build-tools/$(HOST_OS)-x86/bin/make
# Set the full path to the gcc command
GCC_PREBUILTS := $(BUILD_TOP)/prebuilts/gcc/$(HOST_OS)-x86/host
ifeq ($(HOST_OS),darwin)
KERNEL_HOST_TOOLCHAIN_ROOT := $(GCC_PREBUILTS)/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-
else
KERNEL_HOST_TOOLCHAIN_ROOT := $(GCC_PREBUILTS)/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-
endif
KERNEL_MAKE_FLAGS += HOSTCC=$(KERNEL_HOST_TOOLCHAIN_ROOT)gcc
KERNEL_MAKE_FLAGS += HOSTCXX=$(KERNEL_HOST_TOOLCHAIN_ROOT)g++

Loading…
Cancel
Save