Browse Source

disable ADK_NATIVE on FreeBSD host

Waldemar Brodkorb 14 years ago
parent
commit
690005de4d
2 changed files with 4 additions and 0 deletions
  1. 3 0
      mk/build.mk
  2. 1 0
      target/Config.in

+ 3 - 0
mk/build.mk

@@ -298,6 +298,9 @@ ifneq (,$(filter rb%,${TARGET}))
 endif
 
 menuconfig: $(CONFIG)/mconf defconfig
+	if [ ! -f .config ];then \
+		$(CONFIG)/conf -D .defconfig $(CONFIG_CONFIG_IN); \
+	fi
 	@$(CONFIG)/mconf $(CONFIG_CONFIG_IN)
 	${POSTCONFIG}
 

+ 1 - 0
target/Config.in

@@ -133,6 +133,7 @@ default ADK_LINUX_NATIVE
 config ADK_LINUX_NATIVE
 	bool "Native platform"
 	select ADK_NATIVE
+	depends on ADK_HOST_LINUX
 	help
 	  Make a native build. Use host tools.
 	  No toolchain will be created.