From 21ee5983e277dd8c6bac0dee8642443647c93834 Mon Sep 17 00:00:00 2001 From: Rashed Abdel-Tawab Date: Thu, 5 Sep 2019 21:24:07 -0700 Subject: [PATCH] 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 --- config/BoardConfigKernel.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/BoardConfigKernel.mk b/config/BoardConfigKernel.mk index 51f321a1..e31d15e5 100644 --- a/config/BoardConfigKernel.mk +++ b/config/BoardConfigKernel.mk @@ -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++