Explorar o código

fix allmodconfig

Waldemar Brodkorb %!s(int64=3) %!d(string=hai) anos
pai
achega
f757dba1af
Modificáronse 1 ficheiros con 8 adicións e 2 borrados
  1. 8 2
      mk/build.mk

+ 8 - 2
mk/build.mk

@@ -565,11 +565,17 @@ allconfig:
 			|sed -e "s#^config \(.*\)#\1=y#" \
 			>> $(ADK_TOPDIR)/all.config; \
 	fi
+	@if [ ! -z "$(ADK_TARGET_OS)" ];then \
+		grep "^config" target/config/Config.in.os \
+			|grep -i "_$(ADK_TARGET_OS)$$" \
+			|sed -e "s#^config \(.*\)#\1=y#" \
+			 >> $(ADK_TOPDIR)/all.config; \
+	fi
 	@if [ ! -z "$(ADK_TARGET_ARCH)" ];then \
 		grep "^config" target/config/Config.in.arch.choice \
-			|grep -i "$(ADK_TARGET_ARCH)"\$$ \
+			|grep -i "$(ADK_TARGET_OS)_ARCH_$(ADK_TARGET_ARCH)$$" \
 			|sed -e "s#^config \(.*\)#\1=y#" \
-			>> $(ADK_TOPDIR)/all.config; \
+			 >> $(ADK_TOPDIR)/all.config; \
 	fi
 	@for symbol in ${DEFCONFIG}; do \
 		echo $$symbol >> $(ADK_TOPDIR)/all.config; \