diff options
author | Mike Pagano <mpagano@gentoo.org> | 2022-09-04 15:43:01 -0400 |
---|---|---|
committer | Mike Pagano <mpagano@gentoo.org> | 2022-09-04 15:43:01 -0400 |
commit | 25814c51cb890603a8ea85b9ad51cfbf035ee8ee (patch) | |
tree | 721e76a8dce09c84130162de34021c4ad38b99c4 /eclass | |
parent | app-portage/mgorny-dev-scripts: Remove old (diff) | |
download | gentoo-25814c51cb890603a8ea85b9ad51cfbf035ee8ee.tar.gz gentoo-25814c51cb890603a8ea85b9ad51cfbf035ee8ee.tar.bz2 gentoo-25814c51cb890603a8ea85b9ad51cfbf035ee8ee.zip |
linux-info.eclass: Add SKIP_KERNEL_CHECK in addl funcs to support tinderbox
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/linux-info.eclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass index 82bc7fe53950..fc125b0d7519 100644 --- a/eclass/linux-info.eclass +++ b/eclass/linux-info.eclass @@ -374,6 +374,7 @@ require_configured_kernel() { # If linux_config_exists returns false, the results of this are UNDEFINED. You # MUST call linux_config_exists first. linux_chkconfig_present() { + [[ -n ${SKIP_KERNEL_CHECK} ]] && return linux_config_qa_check linux_chkconfig_present [[ $(getfilevar_noexec "CONFIG_$1" "$(linux_config_path)") == [my] ]] } @@ -386,6 +387,7 @@ linux_chkconfig_present() { # If linux_config_exists returns false, the results of this are UNDEFINED. You # MUST call linux_config_exists first. linux_chkconfig_module() { + [[ -n ${SKIP_KERNEL_CHECK} ]] && return linux_config_qa_check linux_chkconfig_module [[ $(getfilevar_noexec "CONFIG_$1" "$(linux_config_path)") == m ]] } @@ -398,6 +400,7 @@ linux_chkconfig_module() { # If linux_config_exists returns false, the results of this are UNDEFINED. You # MUST call linux_config_exists first. linux_chkconfig_builtin() { + [[ -n ${SKIP_KERNEL_CHECK} ]] && return linux_config_qa_check linux_chkconfig_builtin [[ $(getfilevar_noexec "CONFIG_$1" "$(linux_config_path)") == y ]] } @@ -410,6 +413,7 @@ linux_chkconfig_builtin() { # If linux_config_exists returns false, the results of this are UNDEFINED. You # MUST call linux_config_exists first. linux_chkconfig_string() { + [[ -n ${SKIP_KERNEL_CHECK} ]] && return linux_config_qa_check linux_chkconfig_string getfilevar_noexec "CONFIG_$1" "$(linux_config_path)" } @@ -472,6 +476,7 @@ kernel_is() { # - make is not present # - corruption exists in the kernel makefile get_makefile_extract_function() { + [[ -n ${SKIP_KERNEL_CHECK} ]] && return local a='' b='' mkfunc='getfilevar' a="$(getfilevar VERSION ${KERNEL_MAKEFILE})" b="$(getfilevar_noexec VERSION ${KERNEL_MAKEFILE})" |