From 874c3f04ece9af4d8fdf0e2713e21a259c117656 Mon Sep 17 00:00:00 2001 From: Devin Matthews Date: Fri, 8 Jan 2021 13:56:30 -0600 Subject: [PATCH] Update configure Choose last sub-config in the kernel-to-config map if the config list doesn't contain the name of the kernel set. E.g. for "zen: skx knl haswell" pick "haswell" instead of "skx" which was chosen previously. Fixes #470. --- configure | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure b/configure index babba1829..f4fcc5e76 100755 --- a/configure +++ b/configure @@ -2593,11 +2593,11 @@ main() reducedclist="${kernel}" - # Otherwise, use the first name. + # Otherwise, use the last name. else - first_config=${configs%% *} - reducedclist="${first_config}" + last_config=${configs##* } + reducedclist="${last_config}" fi # Create a new "kernel:subconfig" pair and add it to the kconfig_map