add an option for the --build so cygwin users can utilize buildroot
authorMike Frysinger <vapier@gentoo.org>
Tue, 27 Dec 2005 08:42:13 +0000 (08:42 -0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 27 Dec 2005 08:42:13 +0000 (08:42 -0000)
Config.in
package/Makefile.in

index db5c84b4aa0d0eeea9ca04b22113c5110c74a306..89bca3b870e3de5536cc519021d1f5f1f3731a00 100644 (file)
--- a/Config.in
+++ b/Config.in
@@ -178,6 +178,19 @@ config BR2_TOPDIR_SUFFIX
            build_ARCH -> build_ARCH_[SUFFIX]
            toolchain_build_ARCH -> toolchain_build_ARCH_[SUFFIX] 
 
+config BR2_GNU_BUILD_SUFFIX
+       string "GNU build hostname suffix"
+       default "pc-linux-gnu"
+       help
+           The string used to pass to configure scripts via the
+           --build= option.  Just specify the suffix here, the leading
+           arch will be filled in automatically.
+
+           Here's some copy and paste build host options for you:
+             linux:   pc-linux-gnu
+             cygwin:  pc-cygwin
+             os x:    apple-darwin7 / apple-darwin8
+
 config BR2_JLEVEL
        int "Number of jobs to run simultaneously"
        default "1"
index 281680aa429a07043a5c2dd2b4022d2e35c72d3f..ce4fb28f5f82d629583395ad082c0be166fa17c4 100644 (file)
@@ -65,7 +65,7 @@ HOST_ARCH:=$(shell $(HOSTCC) -dumpmachine | sed -e s'/-.*//' \
        -e 's/cris.*/cris/' \
        -e 's/i[3-9]86/i386/' \
        )
-GNU_HOST_NAME:=$(HOST_ARCH)-pc-linux-gnu
+GNU_HOST_NAME:=$(HOST_ARCH)-$(subst ",,$(BR2_GNU_BUILD_SUFFIX))
 TARGET_CONFIGURE_OPTS=PATH=$(TARGET_PATH) \
                AR=$(TARGET_CROSS)ar \
                AS=$(TARGET_CROSS)as \