diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-03-15 23:55:42 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-03-15 23:55:42 +0000 |
commit | 05827f4cb033ad4918c1b018aa279d9d8316f5b7 (patch) | |
tree | 9283d3b22628415e73fe2703c5193b61c8f11c91 /Rules.mak | |
parent | 94ef7733d2f3d76cf1b6e6114e8393228a132ef1 (diff) |
add a Kconfig option for setting the $(CROSS) build variable
Diffstat (limited to 'Rules.mak')
-rw-r--r-- | Rules.mak | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |