summaryrefslogtreecommitdiff
path: root/mk/build.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/build.mk')
-rw-r--r--mk/build.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/build.mk b/mk/build.mk
index 29d5023d4..78e371fbc 100644
--- a/mk/build.mk
+++ b/mk/build.mk
@@ -358,7 +358,7 @@ endif
|sed -e "s#^config \(.*\)#\1=y#" \
>> $(ADK_TOPDIR)/.defconfig; \
fi
- if [ ! -z "$(ADK_TARGET_ENDIAN)" ];then \
+ @if [ ! -z "$(ADK_TARGET_ENDIAN)" ];then \
grep "^config" target/config/Config.in.endian.choice \
|grep -i "$(ADK_TARGET_ENDIAN)" \
|sed -e "s#^config \(.*\)#\1=y#" \
@@ -371,8 +371,9 @@ endif
>> $(ADK_TOPDIR)/.defconfig; \
fi
@if [ ! -z "$(ADK_TARGET_LIBC)" ];then \
+ libc=$(echo $(ADK_TARGET_LIBC)|sed -e "#-#_#") \
grep "^config" target/config/Config.in.libc.choice \
- |grep -i "$(ADK_TARGET_LIBC)" \
+ |grep -i $libc \
|sed -e "s#^config \(.*\)#\1=y#" \
>> $(ADK_TOPDIR)/.defconfig; \
fi