Browse Source

allow to preset binfmt

Waldemar Brodkorb 8 years ago
parent
commit
b77bb24a29
1 changed files with 6 additions and 0 deletions
  1. 6 0
      mk/build.mk

+ 6 - 0
mk/build.mk

@@ -416,6 +416,12 @@ defconfig: .menu $(CONFIG)/conf
 			|sed -e "s#^config \(.*\)#\1=y#" \
 			>> $(ADK_TOPDIR)/.defconfig; \
 	fi
+	@if [ ! -z "$(ADK_TARGET_BINFMT)" ];then \
+		grep "^config" target/config/Config.in.binfmt \
+			|grep -i "$(ADK_TARGET_BINFMT)$$" \
+			|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)" \