diff mbox

[2/6] Makefile: export CROSS_COMPILE and ARCH

Message ID 1323107263-1870-3-git-send-email-peter.maydell@linaro.org
State Accepted
Headers show

Commit Message

Peter Maydell Dec. 5, 2011, 5:47 p.m. UTC
CROSS_COMPILE and ARCH are needed by the kernel makefile, so
export them so they are passed down even if we're using the
defaults in this makefile rather than user specified (command line
or environment) settings.

Signed-off-by: Peter Maydell <peter.maydelL@linaro.org>
---
 Makefile |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/Makefile b/Makefile
index 3d74ac0..67d840b 100644
--- a/Makefile
+++ b/Makefile
@@ -30,6 +30,9 @@  CROSS_COMPILE	?= arm-unknown-eabi-
 CC		= $(CROSS_COMPILE)gcc
 LD		= $(CROSS_COMPILE)ld
 
+# These are needed by the underlying kernel make
+export CROSS_COMPILE ARCH
+
 all: $(IMAGE)
 
 clean: