diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-07-30 13:15:50 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-07-30 13:16:06 +0200 |
commit | 5710baada6b5a58c2eb1d8c2177392fd9654bc2a (patch) | |
tree | 7aa3d0de266dd57e5b40782faff837151821ee17 /mk/build.mk | |
parent | 2eb32124a15b38cd92a3340001da7a9baf2e09ed (diff) |
linux: rework kernel version selection, can be preselected with make ADK_TARGET_KERNEL_VERSION=x.y
Diffstat (limited to 'mk/build.mk')
-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 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 \ |