[uClibc-cvs] svn commit: trunk/uClibc: extra/Configs

vapier at uclibc.org vapier at uclibc.org
Tue Mar 15 23:55:43 UTC 2005


Author: vapier
Date: 2005-03-15 16:55:42 -0700 (Tue, 15 Mar 2005)
New Revision: 10013

Log:
add a Kconfig option for setting the $(CROSS) build variable

Modified:
   trunk/uClibc/Rules.mak
   trunk/uClibc/extra/Configs/Config.in


Changeset:
Modified: trunk/uClibc/Rules.mak
===================================================================
--- trunk/uClibc/Rules.mak	2005-03-15 19:16:00 UTC (rev 10012)
+++ trunk/uClibc/Rules.mak	2005-03-15 23:55:42 UTC (rev 10013)
@@ -84,6 +84,10 @@
 -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)

Modified: trunk/uClibc/extra/Configs/Config.in
===================================================================
--- trunk/uClibc/extra/Configs/Config.in	2005-03-15 19:16:00 UTC (rev 10012)
+++ trunk/uClibc/extra/Configs/Config.in	2005-03-15 23:55:42 UTC (rev 10013)
@@ -1215,6 +1215,14 @@
 
 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




More information about the uClibc-cvs mailing list