Browse Source

allow to set target float via environment

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

+ 6 - 0
mk/build.mk

@@ -438,6 +438,12 @@ endif
 			|sed -e "s#^config \(.*\)#\1=y#" \
 			>> $(ADK_TOPDIR)/.defconfig; \
 	fi
+	@if [ ! -z "$(ADK_TARGET_FLOAT)" ];then \
+		grep "^config" target/config/Config.in.float.choice \
+			|grep -i "$(ADK_TARGET_FLOAT)$$" \
+			|sed -e "s#^config \(.*\)#\1=y#" \
+			>> $(ADK_TOPDIR)/.defconfig; \
+	fi
 	@if [ ! -z "$(ADK_TARGET_ENDIAN)" ];then \
 		grep "^config" target/config/Config.in.endian.choice \
 			|grep -i "$(ADK_TARGET_ENDIAN)" \