From 5710baada6b5a58c2eb1d8c2177392fd9654bc2a Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 30 Jul 2016 13:15:50 +0200 Subject: linux: rework kernel version selection, can be preselected with make ADK_TARGET_KERNEL_VERSION=x.y --- mk/build.mk | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'mk/build.mk') 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 \ -- cgit v1.2.3