summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Rules.mak4
-rw-r--r--extra/Configs/Config.in8
2 files changed, 12 insertions, 0 deletions
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)
diff --git a/extra/Configs/Config.in b/extra/Configs/Config.in
index 77487137e..3ff3a5827 100644
--- a/extra/Configs/Config.in
+++ b/extra/Configs/Config.in
@@ -1215,6 +1215,14 @@ endmenu
menu "uClibc development/debugging options"
+config CROSS_COMPILE
+ string "Cross-compiling toolchain prefix"
+ default ""
+ help
+ The prefix used to execute your cross-compiling toolchain. For
+ example, if you run 'arm-linux-uclibc-gcc' to compile something,
+ then enter 'arm-linux-uclibc-' here.
+
config DODEBUG
bool "Build uClibc with debugging symbols"
default n