Browse Source

allow to choose Xtensa target

Waldemar Brodkorb 9 years ago
parent
commit
3a4a628024
1 changed files with 6 additions and 0 deletions
  1. 6 0
      mk/build.mk

+ 6 - 0
mk/build.mk

@@ -452,6 +452,12 @@ defconfig: .menu $(CONFIG)/conf
 			|sed -e "s#^config \(.*\)#\1=y#" \
 			|sed -e "s#^config \(.*\)#\1=y#" \
 			>> $(ADK_TOPDIR)/.defconfig; \
 			>> $(ADK_TOPDIR)/.defconfig; \
 	fi
 	fi
+	@if [ ! -z "$(ADK_TARGET_XTENSA)" ];then \
+		grep "^config" target/config/Config.in.xtensa \
+			|grep -i "$(ADK_TARGET_XTENSA)" \
+			|sed -e "s#^config \(.*\)#\1=y#" \
+			>> $(ADK_TOPDIR)/.defconfig; \
+	fi
 	@if [ ! -z "$(ADK_APPLIANCE)" ];then \
 	@if [ ! -z "$(ADK_APPLIANCE)" ];then \
 		$(CONFIG)/conf --defconfig=.defconfig $(CONFIG_CONFIG_IN); \
 		$(CONFIG)/conf --defconfig=.defconfig $(CONFIG_CONFIG_IN); \
 	fi
 	fi