Skip to content

Commit 844f56e

Browse files
Mukesh OjhaShadab Naseem
Mukesh Ojha
authored and
Shadab Naseem
committed
AndroidKernel: Use host machine tools
Use the host directory of tools for kernel cross compilation to ensure build results are reproducible across different machines. Change-Id: I804745bb1962c46e944ba43e77e8876435c9059e Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
1 parent 8c086ff commit 844f56e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

AndroidKernel.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ TARGET_KERNEL_CROSS_COMPILE_PREFIX := $(strip $(TARGET_KERNEL_CROSS_COMPILE_PREF
4646
ifeq ($(TARGET_KERNEL_CROSS_COMPILE_PREFIX),)
4747
KERNEL_CROSS_COMPILE := arm-eabi-
4848
else
49-
KERNEL_CROSS_COMPILE := $(TARGET_KERNEL_CROSS_COMPILE_PREFIX)
49+
KERNEL_CROSS_COMPILE := $(shell pwd)/$(TARGET_TOOLS_PREFIX)
5050
endif
5151

5252
ifeq ($(TARGET_PREBUILT_KERNEL),)

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ CHECK = sparse
366366

367367
# Use the wrapper for the compiler. This wrapper scans for new
368368
# warnings and causes the build to stop upon encountering them
369-
CC = $(srctree)/scripts/gcc-wrapper.py $(REAL_CC)
369+
CC = $(PYTHON) $(srctree)/scripts/gcc-wrapper.py $(REAL_CC)
370370

371371
CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \
372372
-Wbitwise -Wno-return-void $(CF)

0 commit comments

Comments
 (0)