summaryrefslogtreecommitdiff
path: root/mk/build.mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2021-11-01 15:10:38 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2021-11-01 15:10:38 +0100
commitf757dba1afcedd6b39e20e94ba4cbdbdd9f24d74 (patch)
tree5b4f131736fbc8f85f332a0edb4319885587d93d /mk/build.mk
parent43fca0339e31eecc93637d47d7bac24cb44fd4f1 (diff)
fix allmodconfig
Diffstat (limited to 'mk/build.mk')
-rw-r--r--mk/build.mk10
1 files changed, 8 insertions, 2 deletions
diff --git a/mk/build.mk b/mk/build.mk
index a0a4242bd..2ebea5c41 100644
--- a/mk/build.mk
+++ b/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; \