diff options
-rw-r--r-- | mk/build.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mk/build.mk b/mk/build.mk index 5c5d2a84c..f4ba3d12b 100644 --- a/mk/build.mk +++ b/mk/build.mk @@ -445,6 +445,13 @@ defconfig: .menu $(CONFIG)/conf |sed -e "s#^config \(.*\)#\1=y#" \ >> $(ADK_TOPDIR)/.defconfig; \ fi + @if [ ! -z "$(ADK_TARGET_LIBC_VERSION)" ];then \ + libcversion=$$(echo "$(ADK_TARGET_LIBC_VERSION)"|sed -e "s/\./_/g"); \ + grep "^config" target/config/Config.in.libc \ + |grep -i "$$libcversion$$" \ + |sed -e "s#^config \(.*\)#\1=y#" \ + >> $(ADK_TOPDIR)/.defconfig; \ + fi @if [ ! -z "$(ADK_APPLIANCE)" ];then \ $(CONFIG)/conf --defconfig=.defconfig $(CONFIG_CONFIG_IN); \ fi |