From: Tiejun Chen <tiejun.chen@intel.com>
To: Ian.Jackson@eu.citrix.com, stefano.stabellini@eu.citrix.com,
Ian.Campbell@eu.citrix.com, wei.liu2@citrix.com
Cc: JBeulich@suse.com, xen-devel@lists.xen.org
Subject: [v2][PATCH] tools/hvmloader: link errno.h from xen internal
Date: Mon, 3 Nov 2014 17:00:48 +0800 [thread overview]
Message-ID: <1415005248-25620-1-git-send-email-tiejun.chen@intel.com> (raw)
We need to act on some specific hypercall error numbers, so
require the hypervisor view on the errno.h value rather than
just the build environment's number. So here link this headfile
from xen.
Signed-off-by: Tiejun Chen <tiejun.chen@intel.com>
---
v2:
* CCed more tools MAINTAINERS
* Rephrase long log
* Remove this line '@rm -rf errno.h' since we always force link
* Drop including this head file in util.c directly
.gitignore | 1 +
tools/firmware/hvmloader/Makefile | 7 +++++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/.gitignore b/.gitignore
index b24e905..52c3038 100644
--- a/.gitignore
+++ b/.gitignore
@@ -127,6 +127,7 @@ tools/firmware/hvmloader/acpi/ssdt_*.h
tools/firmware/hvmloader/hvmloader
tools/firmware/hvmloader/roms.h
tools/firmware/hvmloader/roms.inc
+tools/firmware/hvmloader/errno.h
tools/firmware/rombios/BIOS-bochs-[^/]*
tools/firmware/rombios/_rombios[^/]*_.c
tools/firmware/rombios/rombios[^/]*.s
diff --git a/tools/firmware/hvmloader/Makefile b/tools/firmware/hvmloader/Makefile
index 46a79c5..333350b 100644
--- a/tools/firmware/hvmloader/Makefile
+++ b/tools/firmware/hvmloader/Makefile
@@ -84,9 +84,12 @@ ROMS += $(SEABIOS_ROM)
endif
.PHONY: all
-all: subdirs-all
+all: subdirs-all .dir
$(MAKE) hvmloader
+.dir:
+ ln -sf $(XEN_ROOT)/xen/include/xen/errno.h .
+
ovmf.o rombios.o seabios.o hvmloader.o: roms.inc
smbios.o: CFLAGS += -D__SMBIOS_DATE__="\"$(shell date +%m/%d/%Y)\""
@@ -136,7 +139,7 @@ endif
.PHONY: clean
clean: subdirs-clean
- rm -f roms.inc roms.inc.new acpi.h
+ rm -f roms.inc roms.inc.new acpi.h errno.h
rm -f hvmloader hvmloader.tmp *.o $(DEPS)
-include $(DEPS)
--
1.9.1
next reply other threads:[~2014-11-03 9:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-03 9:00 Tiejun Chen [this message]
2014-11-03 9:43 ` [v2][PATCH] tools/hvmloader: link errno.h from xen internal Jan Beulich
2014-11-03 10:05 ` Chen, Tiejun
2014-11-03 10:19 ` Jan Beulich
2014-11-03 11:22 ` Chen, Tiejun
2014-11-03 11:37 ` Jan Beulich
2014-11-03 11:47 ` Chen, Tiejun
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=1415005248-25620-1-git-send-email-tiejun.chen@intel.com \
--to=tiejun.chen@intel.com \
--cc=Ian.Campbell@eu.citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.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.