瀏覽代碼

add an option for the --build so cygwin users can utilize buildroot

Mike Frysinger 19 年之前
父節點
當前提交
70ea98efbb
共有 2 個文件被更改,包括 14 次插入1 次删除
  1. 13 0
      Config.in
  2. 1 1
      package/Makefile.in

+ 13 - 0
Config.in

@@ -178,6 +178,19 @@ config BR2_TOPDIR_SUFFIX
 	    build_ARCH -> build_ARCH_[SUFFIX]
 	    build_ARCH -> build_ARCH_[SUFFIX]
 	    toolchain_build_ARCH -> toolchain_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
 config BR2_JLEVEL
 	int "Number of jobs to run simultaneously"
 	int "Number of jobs to run simultaneously"
 	default "1"
 	default "1"

+ 1 - 1
package/Makefile.in

@@ -65,7 +65,7 @@ HOST_ARCH:=$(shell $(HOSTCC) -dumpmachine | sed -e s'/-.*//' \
 	-e 's/cris.*/cris/' \
 	-e 's/cris.*/cris/' \
 	-e 's/i[3-9]86/i386/' \
 	-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) \
 TARGET_CONFIGURE_OPTS=PATH=$(TARGET_PATH) \
 		AR=$(TARGET_CROSS)ar \
 		AR=$(TARGET_CROSS)ar \
 		AS=$(TARGET_CROSS)as \
 		AS=$(TARGET_CROSS)as \