devtool: bug in fetching kernel version
We fetch the current kernel version for
which we want to obtain a build from the config file
given as param. But the regex used gets more than we
want.
@@ -2012,7 +2012,7 @@ cmd_build_kernel() {
create_dir "$kernel_dir_host"
# Extract the kernel version from the config file provided as parameter.
- KERNEL_VERSION=$(cat "$KERNEL_CFG" | grep -Po "^# Linux\/$cfg_pattern (([0-9]+.){2}[0-9]+)" | cut -d ' ' -f 3)
+ KERNEL_VERSION=$(cat "$KERNEL_CFG" | grep -Po "^# Linux\/$cfg_pattern (([0-9]+.)[0-9]+)" | cut -d ' ' -f 3)
validate_kernel_version "$KERNEL_VERSION"
recipe_commit="b551cccc405a73a6d316c0c09dfe0b3e7a73ba3f"
