summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-04-04 21:57:27 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2016-04-04 21:57:27 +0200
commitb77bb24a2936c9abe9207409c52e3d6cd26a5bd4 (patch)
treea2d75c4fa33f276dcd51fbdd0802cb04095f03d3
parentebfbb2ba9b5e78c8e658132435432c5118979f5c (diff)
allow to preset binfmt
-rw-r--r--mk/build.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/mk/build.mk b/mk/build.mk
index 0dcea0db6..5b71729b9 100644
--- a/mk/build.mk
+++ b/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)" \