All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Max Krummenacher" <max.oss.09@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Max Krummenacher <max.krummenacher@toradex.com>,
	Bruce Ashfield <bruce.ashfield@gmail.com>
Subject: [OE-core][Patch 2/2] kernel-yocto.bbclass: force creation of config.queue
Date: Fri, 10 Jul 2020 11:05:14 +0200	[thread overview]
Message-ID: <20200710090514.440-2-max.krummenacher@toradex.com> (raw)
In-Reply-To: <20200710090514.440-1-max.krummenacher@toradex.com>

In the case of no patches or no configure fragments, during
do_kernel_metadata() scc is not called, and thus
kernel-sources/${meta_dir}/config.queue is not created.
Later do_kernel_configme fails because the file is missing.

| ERROR: Execution of 'run.do_kernel_configme.24874' failed with exit code 1:
| exit 1 from 'configs="$(scc --configs -o ${meta_dir})"'

Forcing at least an empty config.queue file fixes this.

Fixes: 23dcff0d396c (kernel/yocto: ensure that defconfigs are processed first)
Cc: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
---
 meta/classes/kernel-yocto.bbclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
index 7cedb05e93..7ea3cb5e51 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -220,6 +220,8 @@ do_kernel_metadata() {
 		if [ $? -ne 0 ]; then
 			bbfatal_log "Could not generate configuration queue for ${KMACHINE}."
 		fi
+	else
+		touch ${S}/${meta_dir}/config.queue
 	fi
 
 	# if KMETA_EXTERNAL_BSPS has been set, or it has been detected from
-- 
2.20.1


  reply	other threads:[~2020-07-10  9:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-10  9:05 [OE-core][Patch 1/2] kernel-yocto.bbclass: set +e in do_configme Max Krummenacher
2020-07-10  9:05 ` Max Krummenacher [this message]
2020-07-10 12:47   ` [OE-core][Patch 2/2] kernel-yocto.bbclass: force creation of config.queue Bruce Ashfield
2020-07-10 13:21     ` Andrey Zhizhikin
2020-07-10 15:12       ` Max Krummenacher
2020-07-10 15:21         ` Bruce Ashfield
2020-07-10 15:28           ` Bruce Ashfield
2020-07-10 15:52             ` Max Krummenacher
2020-07-10 15:56               ` Bruce Ashfield
2020-07-10 18:19               ` Pierre-Jean Texier

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=20200710090514.440-2-max.krummenacher@toradex.com \
    --to=max.oss.09@gmail.com \
    --cc=bruce.ashfield@gmail.com \
    --cc=max.krummenacher@toradex.com \
    --cc=openembedded-core@lists.openembedded.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.