summaryrefslogtreecommitdiff
path: root/mk/build.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/build.mk')
-rw-r--r--mk/build.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/mk/build.mk b/mk/build.mk
index c41a91fe5..6157157d7 100644
--- a/mk/build.mk
+++ b/mk/build.mk
@@ -448,6 +448,13 @@ defconfig: .menu $(CONFIG)/conf
|sed -e "s#^config \(.*\)#\1=y#" \
>> $(ADK_TOPDIR)/.defconfig; \
fi
+ @if [ ! -z "$(ADK_TARGET_KERNEL_VERSION)" ];then \
+ kernelversion=$$(echo "$(ADK_TARGET_KERNEL_VERSION)"|sed -e "s/\./_/g"); \
+ grep "^config" target/config/Config.in.kernelversion \
+ |grep -i "$$kernelversion$$" \
+ |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"); \
if [ "$$libcversion" = "git" ];then \