From: Stefano Stabellini <sstabellini@kernel.org>
To: xen-devel@lists.xenproject.org
Cc: sstabellini@kernel.org, cardoe@cardoe.com,
andrew.cooper3@citrix.com, wl@xen.org, iwj@xenproject.org,
anthony.perard@citrix.com,
Stefano Stabellini <stefano.stabellini@xilinx.com>
Subject: [PATCH] firmware: don't build hvmloader if it is not needed
Date: Fri, 12 Feb 2021 18:05:40 -0800 [thread overview]
Message-ID: <20210213020540.27894-1-sstabellini@kernel.org> (raw)
If rombios, seabios and ovmf are all disabled, don't attempt to build
hvmloader.
This patches fixes the x86 alpine linux builds currently failing in
gitlab-ci.
Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
---
tools/firmware/Makefile | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/tools/firmware/Makefile b/tools/firmware/Makefile
index 1f27117794..e68cd0d358 100644
--- a/tools/firmware/Makefile
+++ b/tools/firmware/Makefile
@@ -13,7 +13,16 @@ SUBDIRS-$(CONFIG_ROMBIOS) += rombios
SUBDIRS-$(CONFIG_ROMBIOS) += vgabios
SUBDIRS-$(CONFIG_IPXE) += etherboot
SUBDIRS-$(CONFIG_PV_SHIM) += xen-dir
-SUBDIRS-y += hvmloader
+ifeq ($(CONFIG_ROMBIOS),y)
+CONFIG_HVMLOADER ?= y
+endif
+ifeq ($(CONFIG_SEABIOS),y)
+CONFIG_HVMLOADER ?= y
+endif
+ifeq ($(CONFIG_OVMF),y)
+CONFIG_HVMLOADER ?= y
+endif
+SUBDIRS-$(CONFIG_HVMLOADER) += hvmloader
SEABIOSCC ?= $(CC)
SEABIOSLD ?= $(LD)
--
2.17.1
next reply other threads:[~2021-02-13 2:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-13 2:05 Stefano Stabellini [this message]
2021-02-13 13:50 ` [PATCH] firmware: don't build hvmloader if it is not needed Marek Marczykowski-Górecki
2021-02-15 8:29 ` Jan Beulich
2021-02-16 18:31 ` Stefano Stabellini
2021-02-17 9:47 ` Jan Beulich
2021-02-17 23:45 ` Stefano Stabellini
2021-02-18 11:40 ` Jan Beulich
2021-02-19 1:42 ` Stefano Stabellini
2021-02-19 8:28 ` Jan Beulich
2021-02-22 23:05 ` Stefano Stabellini
2021-02-23 7:23 ` Jan Beulich
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=20210213020540.27894-1-sstabellini@kernel.org \
--to=sstabellini@kernel.org \
--cc=andrew.cooper3@citrix.com \
--cc=anthony.perard@citrix.com \
--cc=cardoe@cardoe.com \
--cc=iwj@xenproject.org \
--cc=stefano.stabellini@xilinx.com \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.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.