From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 294661382C5 for ; Fri, 19 Mar 2021 02:46:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 521EFE0878; Fri, 19 Mar 2021 02:46:45 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 36CC0E0878 for ; Fri, 19 Mar 2021 02:46:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 179E2335C77 for ; Fri, 19 Mar 2021 02:46:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5074D5AE for ; Fri, 19 Mar 2021 02:46:42 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1616121948.588d9254f66d090e593033da2aa9a257d6e3bfce.whissi@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: / X-VCS-Repository: proj/genkernel X-VCS-Files: gen_configkernel.sh X-VCS-Directories: / X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: 588d9254f66d090e593033da2aa9a257d6e3bfce X-VCS-Branch: master Date: Fri, 19 Mar 2021 02:46:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8d13bdc7-254a-4a17-adfb-e4e021703625 X-Archives-Hash: 0119294c7490590861b87e0fc569f91c commit: 588d9254f66d090e593033da2aa9a257d6e3bfce Author: Thomas Deutschmann gentoo org> AuthorDate: Fri Mar 19 02:35:50 2021 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Fri Mar 19 02:45:48 2021 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=588d9254 gen_configkernel.sh: config_kernel(): Warn when kernel config did not change When user requests to modify kernel config, i.e. `genkernel --menuconfig` but kernel config did not change, show a warning to allow user to notice. This can happen for example when user loaded a different kernel config in dialog but forgot to save to $KERNEL_OUTPUTDIR/.config which is required in that case. Link 1: https://forums.gentoo.org/viewtopic-p-8588232.html#8588232 Signed-off-by: Thomas Deutschmann gentoo.org> gen_configkernel.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gen_configkernel.sh b/gen_configkernel.sh index 00eab73..bff3fdc 100755 --- a/gen_configkernel.sh +++ b/gen_configkernel.sh @@ -334,8 +334,17 @@ config_kernel() { if [ -n "${add_config}" ] then + local kconfig_md5sum_old="$(md5sum < "${KERNEL_OUTPUTDIR}/.config")" + print_info 1 "$(get_indent 1)>> Invoking ${add_config} ..." compile_generic ${add_config} kernelruntask + + local kconfig_md5sum_new="$(md5sum < "${KERNEL_OUTPUTDIR}/.config")" + if [[ "${kconfig_md5sum_old}" == "${kconfig_md5sum_new}" ]] + then + print_warning 1 "$(get_indent 1)>> Kernel config was not modified!" + fi + unset kconfig_md5sum_old kconfig_md5sum_new fi local -a required_kernel_options