From: Attilio Rao <attilio.rao@citrix.com>
To: xen-devel@lists.xensource.com
Cc: ian.jackson@eu.citrix.com
Subject: [PATCH] [PATCH v3] Fetch the OVMF repository from specific git mirror and enable it
Date: Thu, 1 Mar 2012 19:28:27 +0000 [thread overview]
Message-ID: <402a1e16b2d8f24725cc.1330630107@dhcp-3-145.uk.xensource.com> (raw)
Signed-off-by: Attilio Rao <attilio.rao@citrix.com>
---
Differences with previous version:
- Add ovmf entries to .hgignore
- Add a rule in tools/firmware/Makefile for ovmf-find in order to cope with
already cloned git repositories
diff -r d7fe4cd831a0 -r 402a1e16b2d8 .hgignore
--- a/.hgignore Wed Feb 29 17:01:41 2012 +0000
+++ b/.hgignore Thu Mar 01 19:27:17 2012 +0000
@@ -287,6 +287,8 @@
^tools/xm-test/lib/XmTestLib/config.py$
^tools/xm-test/lib/XmTestReport/xmtest.py$
^tools/xm-test/tests/.*\.test$
+^tools/firmware/ovmf-remote
+^tools/firmware/ovmf$
^tools/qemu-xen-traditional-dir-remote
^tools/qemu-xen-traditional-dir$
^tools/qemu-xen-dir-remote
diff -r d7fe4cd831a0 -r 402a1e16b2d8 Config.mk
--- a/Config.mk Wed Feb 29 17:01:41 2012 +0000
+++ b/Config.mk Thu Mar 01 19:27:17 2012 +0000
@@ -187,12 +187,15 @@ QEMU_REMOTE=git://xenbits.xensource.com/
endif
ifeq ($(GIT_HTTP),y)
+OVMF_UPSTREAM_URL ?= http://xenbits.xen.org/git-http/ovmf.git
QEMU_UPSTREAM_URL ?= http://xenbits.xen.org/git-http/qemu-upstream-unstable.git
SEABIOS_UPSTREAM_URL ?= http://xenbits.xen.org/git-http/seabios.git
else
+OVMF_UPSTREAM_URL ?= git://xenbits.xen.org/ovmf.git
QEMU_UPSTREAM_URL ?= git://xenbits.xen.org/qemu-upstream-unstable.git
SEABIOS_UPSTREAM_URL ?= git://xenbits.xen.org/seabios.git
endif
+OVMF_UPSTREAM_REVISION ?= b0855f925c6e2e0b21fbb03fab4b5fb5b6876871
QEMU_UPSTREAM_REVISION ?= master
SEABIOS_UPSTREAM_TAG ?= c69e288adfe6c273df4b1f3d9c223d8a4fb613cd
# Wed Feb 8 20:23:36 2012 -0500
@@ -200,7 +203,7 @@ SEABIOS_UPSTREAM_TAG ?= c69e288adfe6c273
ETHERBOOT_NICS ?= rtl8139 8086100e
-CONFIG_OVMF ?= n
+CONFIG_OVMF ?= y
CONFIG_ROMBIOS ?= y
CONFIG_SEABIOS ?= y
diff -r d7fe4cd831a0 -r 402a1e16b2d8 tools/firmware/Makefile
--- a/tools/firmware/Makefile Wed Feb 29 17:01:41 2012 +0000
+++ b/tools/firmware/Makefile Thu Mar 01 19:27:17 2012 +0000
@@ -6,12 +6,17 @@ TARGET := hvmloader/hvmloader
INST_DIR := $(DESTDIR)$(XENFIRMWAREDIR)
SUBDIRS-y :=
+SUBDIRS-$(CONFIG_OVMF) += ovmf
SUBDIRS-$(CONFIG_SEABIOS) += seabios-dir
SUBDIRS-$(CONFIG_ROMBIOS) += rombios
SUBDIRS-$(CONFIG_ROMBIOS) += vgabios
SUBDIRS-$(CONFIG_ROMBIOS) += etherboot
SUBDIRS-y += hvmloader
+ovmf:
+ GIT=$(GIT) $(XEN_ROOT)/scripts/git-checkout.sh $(OVMF_UPSTREAM_URL) $(OVMF_UPSTREAM_REVISION) ovmf
+ cp ovmf-makefile ovmf/Makefile;
+
seabios-dir:
GIT=$(GIT) $(XEN_ROOT)/scripts/git-checkout.sh $(SEABIOS_UPSTREAM_URL) $(SEABIOS_UPSTREAM_TAG) seabios-dir
cp seabios-config seabios-dir/.config;
@@ -44,9 +49,30 @@ distclean: subdirs-distclean
subdir-distclean-etherboot: .phony
$(MAKE) -C etherboot distclean
+subdir-distclean-ovmf: .phony
+ rm -rf ovmf ovmf-remote
+
subdir-distclean-seabios-dir: .phony
rm -rf seabios-dir seabios-dir-remote
+.PHONY: ovmf-find
+ovmf-find:
+ if test -d $(OVMF_UPSTREAM_URL) ; then \
+ mkdir -p ovmf; \
+ else \
+ export GIT=$(GIT); \
+ $(XEN_ROOT)/scripts/git-checkout.sh $(OVMF_UPSTREAM_URL) $(OVMF_UPSTREAM_REVISION) ovmf ; \
+ fi
+
+.PHONY: ovmf-force-update
+ovmf-force-update:
+ set -ex; \
+ if [ "$(OVMF_UPSTREAM_REVISION)" ]; then \
+ cd ovmf-remote; \
+ $(GIT) fetch origin; \
+ $(GIT) reset --hard $(OVMF_UPSTREAM_REVISION); \
+ fi
+
.PHONY: seabios-dir-force-update
seabios-dir-force-update:
set -ex; \
diff -r d7fe4cd831a0 -r 402a1e16b2d8 tools/firmware/ovmf-makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/firmware/ovmf-makefile Thu Mar 01 19:27:17 2012 +0000
@@ -0,0 +1,17 @@
+# OVMF building system is not ready yet to run in parallel.
+# Force it to be serial in order to exploit parallelism for neighbors.
+
+.NOTPARALLEL:
+MAKEFLAGS += -j1
+
+.PHONY: all
+all: ovmf.bin
+
+.PHONY: ovmf.bin
+ovmf.bin:
+ OvmfPkg/build.sh -a X64
+ cp Build/OvmfX64/DEBUG_GCC44/FV/OVMF.fd ovmf.bin
+
+.PHONY: clean
+clean:
+ rm -rf ovmf.bin Build/*
next reply other threads:[~2012-03-01 19:28 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-01 19:28 Attilio Rao [this message]
2012-03-14 12:08 ` [PATCH] [PATCH v3] Fetch the OVMF repository from specific git mirror and enable it Ian Jackson
2012-03-14 13:14 ` Attilio Rao
2012-03-17 22:33 ` Attilio Rao
2012-03-19 16:36 ` Ian Jackson
2012-03-19 17:40 ` Attilio Rao
2012-03-19 17:50 ` Attilio Rao
2012-03-20 10:06 ` Christoph Egger
2012-03-20 10:47 ` Attilio Rao
2012-03-20 11:04 ` Christoph Egger
2012-03-20 11:11 ` Roger Pau Monné
2012-03-20 11:09 ` Attilio Rao
2012-03-20 11:57 ` Christoph Egger
2012-03-20 12:12 ` Attilio Rao
2012-03-20 13:52 ` Christoph Egger
2012-03-20 16:30 ` Ian Jackson
2012-03-20 16:44 ` Christoph Egger
2012-03-14 13:10 ` Ian Campbell
2012-03-14 13:14 ` Attilio Rao
2012-03-14 14:11 ` Ian Jackson
2012-03-14 14:21 ` Ian Campbell
2012-03-20 11:16 ` Roger Pau Monné
2012-03-20 11:28 ` Attilio Rao
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=402a1e16b2d8f24725cc.1330630107@dhcp-3-145.uk.xensource.com \
--to=attilio.rao@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=xen-devel@lists.xensource.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 NNTP newsgroup(s).