From 1ea6bcd8590b3ff9fe2bfbb0eb29a3b0edaa9460 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 14 Jun 2009 23:33:14 -0400 Subject: push CROSS_COMPILE out to $(ARCH)_config.mk Each arch should handle setting a proper default CROSS_COMPILE value in their own config.mk file rather than having to maintain a large ugly list in the Makefile. By using conditional assignment, we don't have to worry about the variable already being set (env/cmdline/etc...). The common config.mk file takes care of exporting CROSS_COMPILE already, and while a few variables (toolchain ones) utilize CROSS_COMPILE before including the arch config.mk, they do so with deferred assignment. Signed-off-by: Mike Frysinger --- sh_config.mk | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sh_config.mk') diff --git a/sh_config.mk b/sh_config.mk index 407e076d1bd..67d7e9e6cc0 100644 --- a/sh_config.mk +++ b/sh_config.mk @@ -21,6 +21,8 @@ # MA 02111-1307 USA # +CROSS_COMPILE ?= sh4-linux- + PLATFORM_CPPFLAGS += -DCONFIG_SH -D__SH__ PLATFORM_LDFLAGS += -e $(TEXT_BASE) --defsym reloc_dst=$(TEXT_BASE) -- cgit v1.2.3