kdevops.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: fan.ni@gmx.us
To: jlayton@kernel.org
Cc: nmtadam.samsung@gmail.com, fan.ni@samsung.com,
	kdevops@lists.linux.dev, mcgrof@kernel.org,
	Fan Ni <fan.ni@gmx.us>
Subject: [PATCH] qemu-build: Fix variable nproc undefined error
Date: Fri, 25 Aug 2023 10:08:29 -0700	[thread overview]
Message-ID: <20230825170829.2285624-1-fan.ni@gmx.us> (raw)

From: Fan Ni <fan.ni@gmx.us>

When running make qemu-build, hit the issue (msg": "The task includes an
option with an undefined variable. The error was: 'nproc' is undefined.
'nproc' is undefined\n\nThe error appears to be in ...").

Fixed it by adding "build" tag to Get nproc.

Suggested-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Fan Ni <fan.ni@samsung.com>
---
 playbooks/roles/build_qemu/tasks/main.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/playbooks/roles/build_qemu/tasks/main.yml b/playbooks/roles/build_qemu/tasks/main.yml
index 6bd34cf4..d3427c56 100644
--- a/playbooks/roles/build_qemu/tasks/main.yml
+++ b/playbooks/roles/build_qemu/tasks/main.yml
@@ -83,7 +83,7 @@

 - name: Get nproc
   command: "{{ num_jobs }}"
-  tags: [ 'qemu', 'configure' ]
+  tags: [ 'qemu', 'configure', 'build' ]
   register: nproc
   when:
     - build_qemu_now|bool
--
2.40.1


             reply	other threads:[~2023-08-25 17:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-25 17:08 fan.ni [this message]
2023-08-25 17:14 ` [PATCH] qemu-build: Fix variable nproc undefined error Jeff Layton

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=20230825170829.2285624-1-fan.ni@gmx.us \
    --to=fan.ni@gmx.us \
    --cc=fan.ni@samsung.com \
    --cc=jlayton@kernel.org \
    --cc=kdevops@lists.linux.dev \
    --cc=mcgrof@kernel.org \
    --cc=nmtadam.samsung@gmail.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).