From 05827f4cb033ad4918c1b018aa279d9d8316f5b7 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 15 Mar 2005 23:55:42 +0000 Subject: add a Kconfig option for setting the $(CROSS) build variable --- Rules.mak | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Rules.mak') diff --git a/Rules.mak b/Rules.mak index 10e1aba42..324c34d38 100644 --- a/Rules.mak +++ b/Rules.mak @@ -84,6 +84,10 @@ ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),) -include $(TOPDIR).config endif +ifndef CROSS +CROSS=$(subst ",, $(strip $(CROSS_COMPILE))) +endif + # A nifty macro to make testing gcc features easier check_gcc=$(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null > /dev/null 2>&1; \ then echo "$(1)"; else echo "$(2)"; fi) -- cgit v1.2.3