public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mike Pagano <mpagano@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] [PATCH 1/1] linux-info.eclass: Add SKIP_KERNEL_CHECK in addl funcs to support tinderbox
Date: Fri, 2 Sep 2022 15:19:38 -0400	[thread overview]
Message-ID: <43423104-cdbb-2ee5-fa1a-3e78a9e1de6f@gentoo.org> (raw)


[-- Attachment #1.1.1: Type: text/plain, Size: 2126 bytes --]


Signed-off-by: Mike Pagano <mpagano@gentoo.org>
---
  eclass/linux-info.eclass | 5 +++++
  1 file changed, 5 insertions(+)

diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass
index 82bc7fe53..fc125b0d7 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})"
-- 
2.35.1



[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 14179 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

             reply	other threads:[~2022-09-02 19:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-02 19:19 Mike Pagano [this message]
2022-09-03  8:49 ` [gentoo-dev] Re: [PATCH 1/1] linux-info.eclass: Add SKIP_KERNEL_CHECK in addl funcs to support tinderbox Toralf Förster
2022-09-03  8:51   ` Agostino Sarubbo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43423104-cdbb-2ee5-fa1a-3e78a9e1de6f@gentoo.org \
    --to=mpagano@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox