summaryrefslogtreecommitdiff
path: root/mk/build.mk
diff options
context:
space:
mode:
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; \