ソースを参照

allow to override instruction set

Waldemar Brodkorb 7 年 前
コミット
aa93632c77
1 ファイル変更6 行追加0 行削除
  1. 6 0
      mk/build.mk

+ 6 - 0
mk/build.mk

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