From 42d984025be94d7fdb80f1554436df66dd2acb16 Mon Sep 17 00:00:00 2001 From: Leonard Foerster Date: Thu, 27 Jul 2023 07:10:10 +0000 Subject: [PATCH 1/3] tools/diff-kernel-config: Fix usage text to reflect reality In commit 43234d3cc4 - tools/diff-kernel-config: Adjust script to work on variants we switched from specifying kernel versions to specifying variants. The kernel versions are then parsed from the variant definition which has advantages. Properly represent that in the usage message. Signed-off-by: Leonard Foerster --- tools/diff-kernel-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/diff-kernel-config b/tools/diff-kernel-config index 350b978a431..06ce0de9445 100755 --- a/tools/diff-kernel-config +++ b/tools/diff-kernel-config @@ -31,7 +31,7 @@ bail() { usage() { cat < Date: Thu, 27 Jul 2023 07:17:01 +0000 Subject: [PATCH 2/3] tools/diff-kernel-config: Add release number to full kernel version When saving the full kernel version for later reference in the kernel mapping we may come across situations where we update to a newer version of our base kernel srpm from Amazon Linux which added only added patches from Amazon Linux but stayed at the same upstream base version. The before and after would be indistinguishable when only comparing the version. Add the release number to disambiguate in that situation. Signed-off-by: Leonard Foerster --- tools/diff-kernel-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/diff-kernel-config b/tools/diff-kernel-config index 06ce0de9445..3f5f28476f3 100755 --- a/tools/diff-kernel-config +++ b/tools/diff-kernel-config @@ -206,7 +206,7 @@ for state in after before; do ;; esac - kver_full=$(rpm --query --queryformat '%{VERSION}' "${kernel_rpm}") + kver_full=$(rpm --query --queryformat '%{VERSION}-%{RELEASE}' "${kernel_rpm}") # # Extract kernel config From d7c90b231047be2469a2164df5f663731262d4fb Mon Sep 17 00:00:00 2001 From: Leonard Foerster Date: Tue, 20 Jun 2023 08:27:24 +0000 Subject: [PATCH 3/3] tools/diff-kernel-config: Add resume functionality Sometimes, the script may fail for a specific variant after we already have spent time successfully building other variants. In order to not let that time go to waste, enable resuming of previous runs of the script. Be aware that the invocation has to be the same as the original invocation, plus the resume flag. Signed-off-by: Leonard Foerster --- tools/diff-kernel-config | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/tools/diff-kernel-config b/tools/diff-kernel-config index 3f5f28476f3..c433c63db74 100755 --- a/tools/diff-kernel-config +++ b/tools/diff-kernel-config @@ -31,7 +31,7 @@ bail() { usage() { cat <"${config_path}" [[ -s "${config_path}" ]] || bail "Failed to extract config for ${debug_id}"