summaryrefslogtreecommitdiffstats
path: root/mips_config.mk
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-06-14 23:33:14 -0400
committerWolfgang Denk <wd@denx.de>2009-07-19 21:36:11 +0200
commit1ea6bcd8590b3ff9fe2bfbb0eb29a3b0edaa9460 (patch)
tree64b90b82240da1bfa1c99b7979d6f3a4673751bd /mips_config.mk
parent60a3f404acbf8238a3138fe1f80a6bac75da4582 (diff)
downloadblackbird-obmc-uboot-1ea6bcd8590b3ff9fe2bfbb0eb29a3b0edaa9460.tar.gz
blackbird-obmc-uboot-1ea6bcd8590b3ff9fe2bfbb0eb29a3b0edaa9460.zip
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 <vapier@gentoo.org>
Diffstat (limited to 'mips_config.mk')
-rw-r--r--mips_config.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/mips_config.mk b/mips_config.mk
index 05eb05d045..c785677fc8 100644
--- a/mips_config.mk
+++ b/mips_config.mk
@@ -21,6 +21,8 @@
# MA 02111-1307 USA
#
+CROSS_COMPILE ?= mips_4KC-
+
PLATFORM_CPPFLAGS += -DCONFIG_MIPS -D__MIPS__
#
OpenPOWER on IntegriCloud