Move the ioemu-dir-find shell script to an external file
PATCH v2 1/4 Move the ioemu-dir-find shell script to an external file
Add support for configuring upstream qemu and rename ioemu-remote ioemu-dir-remote.
tools/Makefile +4 -31
@@ -70,7 +70,7 @@ clean: subdirs-clean .PHONY: distclean distclean: subdirs-distclean - rm -rf ioemu-dir ioemu-remote + rm -rf ioemu-dir ioemu-dir-remote ifneq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH)) IOEMU_CONFIGURE_CROSS ?= --cpu=$(XEN_TARGET_ARCH) \
@@ -78,41 +78,14 @@ IOEMU_CONFIGURE_CROSS ?= --cpu=$(XEN_TAR --interp-prefix=$(CROSS_SYS_ROOT) endif -QEMU_ROOT := $(shell if [ -d "$(CONFIG_QEMU)" ]; then echo "$(CONFIG_QEMU)"; else echo .; fi) -ifneq ($(QEMU_ROOT),.) -export QEMU_ROOT -endif - ioemu-dir-find: - set -ex; \ - if test -d $(CONFIG_QEMU); then \ - mkdir -p ioemu-dir; \ - else \ - if [ ! -d ioemu-remote ]; then \ - rm -rf ioemu-remote ioemu-remote.tmp; \ - mkdir ioemu-remote.tmp; rmdir ioemu-remote.tmp; \ - $(GIT) clone $(CONFIG_QEMU) ioemu-remote.tmp; \ - if [ "$(QEMU_TAG)" ]; then \ - cd ioemu-remote.tmp; \ - $(GIT) branch -D dummy >/dev/null 2>&1 ||:; \ - $(GIT) checkout -b dummy $(QEMU_TAG); \ - cd ..; \ - fi; \ - mv ioemu-remote.tmp ioemu-remote; \ - fi; \ - rm -f ioemu-dir; \ - ln -sf ioemu-remote ioemu-dir; \ - fi - set -e; \ - $(buildmakevars2shellvars); \ - cd ioemu-dir; \ - $(QEMU_ROOT)/xen-setup $(IOEMU_CONFIGURE_CROSS) - + $(XEN_ROOT)/tools/qemu-checkout.sh $(CONFIG_QEMU) $(QEMU_TAG) ioemu-dir + .PHONY: ioemu-dir-force-update ioemu-dir-force-update: set -ex; \ if [ "$(QEMU_TAG)" ]; then \ - cd ioemu-remote; \ + cd ioemu-dir-remote; \ $(GIT) fetch origin; \ $(GIT) reset --hard $(QEMU_TAG); \ fi
tools/qemu-checkout.sh new file +44 -0
44 lines not on this page · raw message
PATCH v2 2/4 Rename ioemu-dir as qemu-xen-traditional-dir
Makefile +7 -7
@@ -70,7 +70,7 @@ install-tools: $(MAKE) -C tools install ifeq ($(CONFIG_IOEMU),y) -install-tools: tools/ioemu-dir +install-tools: tools/qemu-xen-traditional-dir endif .PHONY: install-kernels
@@ -78,18 +78,18 @@ install-kernels: for i in $(XKERNELS) ; do $(MAKE) $$i-install || exit 1; done .PHONY: install-stubdom -install-stubdom: tools/ioemu-dir install-tools +install-stubdom: tools/qemu-xen-traditional-dir install-tools $(MAKE) -C stubdom install ifeq (x86_64,$(XEN_TARGET_ARCH)) XEN_TARGET_ARCH=x86_32 $(MAKE) -C stubdom install-grub endif -tools/ioemu-dir: - $(MAKE) -C tools ioemu-dir-find +tools/qemu-xen-traditional-dir: + $(MAKE) -C tools qemu-xen-traditional-dir-find -.PHONY: tools/ioemu-dir-force-update -tools/ioemu-dir-force-update: - $(MAKE) -C tools ioemu-dir-force-update +.PHONY: tools/qemu-xen-traditional-dir-force-update +tools/qemu-xen-traditional-dir-force-update: + $(MAKE) -C tools qemu-xen-traditional-dir-force-update .PHONY: install-docs install-docs:
tools/Makefile +11 -11
@@ -30,7 +30,7 @@ SUBDIRS-$(LIBXENAPI_BINDINGS) += libxen # do not recurse in to a dir we are about to delete ifneq "$(MAKECMDGOALS)" "distclean" -SUBDIRS-$(CONFIG_IOEMU) += ioemu-dir +SUBDIRS-$(CONFIG_IOEMU) += qemu-xen-traditional-dir endif SUBDIRS-y += xenpmd
@@ -70,7 +70,7 @@ clean: subdirs-clean .PHONY: distclean distclean: subdirs-distclean - rm -rf ioemu-dir ioemu-dir-remote + rm -rf qemu-xen-traditional-dir qemu-xen-traditional-dir-remote ifneq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH)) IOEMU_CONFIGURE_CROSS ?= --cpu=$(XEN_TARGET_ARCH) \
@@ -78,24 +78,24 @@ IOEMU_CONFIGURE_CROSS ?= --cpu=$(XEN_TAR --interp-prefix=$(CROSS_SYS_ROOT) endif -ioemu-dir-find: - $(XEN_ROOT)/tools/qemu-checkout.sh $(CONFIG_QEMU) $(QEMU_TAG) ioemu-dir +qemu-xen-traditional-dir-find: + $(XEN_ROOT)/tools/qemu-checkout.sh $(CONFIG_QEMU) $(QEMU_TAG) qemu-xen-traditional-dir -.PHONY: ioemu-dir-force-update -ioemu-dir-force-update: +.PHONY: qemu-xen-traditional-dir-force-update +qemu-xen-traditional-dir-force-update: set -ex; \ if [ "$(QEMU_TAG)" ]; then \ - cd ioemu-dir-remote; \ + cd qemu-xen-traditional-dir-remote; \ $(GIT) fetch origin; \ $(GIT) reset --hard $(QEMU_TAG); \ fi -subdir-all-ioemu-dir subdir-install-ioemu-dir: ioemu-dir-find +subdir-all-qemu-xen-traditional-dir subdir-install-qemu-xen-traditional-dir: qemu-xen-traditional-dir-find -subdir-clean-ioemu-dir: - set -e; if test -d ioemu-dir/.; then \ +subdir-clean-qemu-xen-traditional-dir: + set -e; if test -d qemu-xen-traditional-dir/.; then \ $(buildmakevars2shellvars); \ - $(MAKE) -C ioemu-dir clean; \ + $(MAKE) -C qemu-xen-traditional-dir clean; \ fi subdir-clean-debugger/gdbsx subdir-distclean-debugger/gdbsx: .phony
PATCH v2 3/4 Clone and build upstream Qemu by default
In reply to [email protected]Config.mk +4 -0
@@ -192,6 +192,10 @@ else QEMU_REMOTE=git://xenbits.xensource.com/qemu-xen-unstable.git endif +# Only available through the git protocol at the moment +QEMU_UPSTREAM_URL ?= git://xenbits.xen.org/people/sstabellini/qemu-dm.git +QEMU_UPSTREAM_TAG ?= origin/xen-stable-0.15 + # Specify which qemu-dm to use. This may be `ioemu' to use the old # Mercurial in-tree version, or a local directory, or a git URL. # CONFIG_QEMU ?= `pwd`/$(XEN_ROOT)/../qemu-xen.git
Makefile +4 -1
@@ -70,7 +70,7 @@ install-tools: $(MAKE) -C tools install ifeq ($(CONFIG_IOEMU),y) -install-tools: tools/qemu-xen-traditional-dir +install-tools: tools/qemu-xen-traditional-dir tools/qemu-xen-dir endif .PHONY: install-kernels
@@ -91,6 +91,9 @@ tools/qemu-xen-traditional-dir: tools/qemu-xen-traditional-dir-force-update: $(MAKE) -C tools qemu-xen-traditional-dir-force-update +tools/qemu-xen-dir: + $(MAKE) -C tools qemu-xen-dir-find + .PHONY: install-docs install-docs: sh ./docs/check_pkgs && $(MAKE) -C docs install || true
tools/Makefile +13 -0
@@ -31,6 +31,7 @@ SUBDIRS-$(LIBXENAPI_BINDINGS) += libxen # do not recurse in to a dir we are about to delete ifneq "$(MAKECMDGOALS)" "distclean" SUBDIRS-$(CONFIG_IOEMU) += qemu-xen-traditional-dir +SUBDIRS-$(CONFIG_IOEMU) += qemu-xen-dir endif SUBDIRS-y += xenpmd
@@ -71,6 +72,7 @@ clean: subdirs-clean .PHONY: distclean distclean: subdirs-distclean rm -rf qemu-xen-traditional-dir qemu-xen-traditional-dir-remote + rm -rf qemu-xen-dir qemu-xen-dir-remote ifneq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH)) IOEMU_CONFIGURE_CROSS ?= --cpu=$(XEN_TARGET_ARCH) \
@@ -81,6 +83,9 @@ endif qemu-xen-traditional-dir-find: $(XEN_ROOT)/tools/qemu-checkout.sh $(CONFIG_QEMU) $(QEMU_TAG) qemu-xen-traditional-dir +qemu-xen-dir-find: + $(XEN_ROOT)/tools/qemu-checkout.sh $(QEMU_UPSTREAM_URL) $(QEMU_UPSTREAM_TAG) qemu-xen-dir + .PHONY: qemu-xen-traditional-dir-force-update qemu-xen-traditional-dir-force-update: set -ex; \
@@ -98,6 +103,14 @@ subdir-clean-qemu-xen-traditional-dir: $(MAKE) -C qemu-xen-traditional-dir clean; \ fi +subdir-all-qemu-xen-dir subdir-install-qemu-xen-dir: qemu-xen-dir-find + +subdir-clean-qemu-xen-dir: + set -e; if test -d qemu-xen-dir/.; then \ + $(buildmakevars2shellvars); \ + $(MAKE) -C qemu-xen-dir clean; \ + fi + subdir-clean-debugger/gdbsx subdir-distclean-debugger/gdbsx: .phony $(MAKE) -C debugger/gdbsx clean
Re: [PATCH v2 3/4] Clone and build upstream Qemu by default
Config.mk else · line 196
Quoted 11 lines · On Thu, 2011-09-08 at 13:47 -0400, [email protected] wrote:
Signed-off-by Stefano Stabellini <[email protected]>diff -r
80ba2c7abbd2Config.mkConfig.mk +2
-0@@ -192,6 +192,10 @@ else QEMU_REMOTE=git://xenbits.xensource.com/qemu-xen-unstable.git endif +# Only available through the git protocol at the moment +QEMU_UPSTREAM_URL ?= git://xenbits.xen.org/people/sstabellini/qemu-dm.git
Just a nit, but we should arrange to have a "proper" tree rather than a /people/... one for the default tree. e.g. to allow automated testing to automatically push etc.
Quoted 76 lines
Config.mk +2
-0+QEMU_UPSTREAM_TAG ?= origin/xen-stable-0.15 + # Specify which qemu-dm to use. This may be `ioemu' to use the old # Mercurial in-tree version, or a local directory, or a git URL. # CONFIG_QEMU ?= `pwd`/$(XEN_ROOT)/../qemu-xen.gitdiff -r
80ba2c7abbd2MakefileMakefile +4
-1@@ -70,7 +70,7 @@ install-tools: $(MAKE) -C tools install ifeq ($(CONFIG_IOEMU),y) -install-tools: tools/qemu-xen-traditional-dir +install-tools: tools/qemu-xen-traditional-dir tools/qemu-xen-dir endif .PHONY: install-kernels@@ -91,6 +91,9 @@ tools/qemu-xen-traditional-dir: tools/qemu-xen-traditional-dir-force-update: $(MAKE) -C tools qemu-xen-traditional-dir-force-update +tools/qemu-xen-dir: + $(MAKE) -C tools qemu-xen-dir-find + .PHONY: install-docs install-docs: sh ./docs/check_pkgs && $(MAKE) -C docs install || truediff -r
80ba2c7abbd2tools/Makefiletools/Makefile +13
-0@@ -31,6 +31,7 @@ SUBDIRS-$(LIBXENAPI_BINDINGS) += libxen # do not recurse in to a dir we are about to delete ifneq "$(MAKECMDGOALS)" "distclean" SUBDIRS-$(CONFIG_IOEMU) += qemu-xen-traditional-dir +SUBDIRS-$(CONFIG_IOEMU) += qemu-xen-dir endif SUBDIRS-y += xenpmd@@ -71,6 +72,7 @@ clean: subdirs-clean .PHONY: distclean distclean: subdirs-distclean rm -rf qemu-xen-traditional-dir qemu-xen-traditional-dir-remote + rm -rf qemu-xen-dir qemu-xen-dir-remote ifneq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH)) IOEMU_CONFIGURE_CROSS ?= --cpu=$(XEN_TARGET_ARCH) \@@ -81,6 +83,9 @@ endif qemu-xen-traditional-dir-find: $(XEN_ROOT)/tools/qemu-checkout.sh $(CONFIG_QEMU) $(QEMU_TAG) qemu-xen-traditional-dir +qemu-xen-dir-find: + $(XEN_ROOT)/tools/qemu-checkout.sh $(QEMU_UPSTREAM_URL) $(QEMU_UPSTREAM_TAG) qemu-xen-dir + .PHONY: qemu-xen-traditional-dir-force-update qemu-xen-traditional-dir-force-update: set -ex; \@@ -98,6 +103,14 @@ subdir-clean-qemu-xen-traditional-dir: $(MAKE) -C qemu-xen-traditional-dir clean; \ fi +subdir-all-qemu-xen-dir subdir-install-qemu-xen-dir: qemu-xen-dir-find + +subdir-clean-qemu-xen-dir: + set -e; if test -d qemu-xen-dir/.; then \ + $(buildmakevars2shellvars); \ + $(MAKE) -C qemu-xen-dir clean; \ + fi + subdir-clean-debugger/gdbsx subdir-distclean-debugger/gdbsx: .phony $(MAKE) -C debugger/gdbsx clean_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Re: [PATCH v2 3/4] Clone and build upstream Qemu by default
Quoted 11 lines · Ian Campbell
Quoted 9 lines · On Thu, 2011-09-08 at 13:47 -0400, [email protected] wrote:
Signed-off-by Stefano Stabellini <[email protected]>diff -r
80ba2c7abbd2Config.mkConfig.mk +0
-0@@ -192,6 +192,10 @@ else QEMU_REMOTE=git://xenbits.xensource.com/qemu-xen-unstable.git endif
Quoted 6 lines
Config.mk else · line 196
Quoted 2 lines
Config.mk +2
-0+# Only available through the git protocol at the moment +QEMU_UPSTREAM_URL ?= git://xenbits.xen.org/people/sstabellini/qemu-dm.gitJust a nit, but we should arrange to have a "proper" tree rather than a /people/... one for the default tree. e.g. to allow automated testing to automatically push etc.
Like Linus said, thanks to distributed version control systems, it doesn't actually matter where the repository is anymore :-)
Re: [PATCH v2 3/4] Clone and build upstream Qemu by default
Quoted 19 lines · Stefano Stabellini
Quoted 11 lines · Ian Campbell
Quoted 9 lines · On Thu, 2011-09-08 at 13:47 -0400, [email protected] wrote:
Signed-off-by Stefano Stabellini <[email protected]>diff -r
80ba2c7abbd2Config.mkConfig.mk +0
-0@@ -192,6 +192,10 @@ else QEMU_REMOTE=git://xenbits.xensource.com/qemu-xen-unstable.git endifQuoted 6 lines
Config.mk else · line 196
Quoted 2 lines
Config.mk +2
-0+# Only available through the git protocol at the moment +QEMU_UPSTREAM_URL ?= git://xenbits.xen.org/people/sstabellini/qemu-dm.gitJust a nit, but we should arrange to have a "proper" tree rather than a /people/... one for the default tree. e.g. to allow automated testing to automatically push etc.
Quoted 2 lines
Like Linus said, thanks to distributed version control systems, it doesn't actually matter where the repository is anymore :-)
In technical terms perhaps not but for practical reasons we want the default tree which we point people to live next to all the other default trees, otherwise they won't be able to reliably find it the sea of suchs trees which we will eventually have under /people/. Linus' tree being just one of a thousand trees under git.kernel.org was always a pain IMHO.
We also want to test and automatically push a tested branch like we do for the other trees and we really don't want to give the test system access to your (or anyone else's) xenbits account.
With the number of trees which we have now we should maybe consider putting each branch in a subdir:
[/staging]/xen-unstable/xen.hg
/qemu-xen.hg
/qemu.git
/seabios.git
[/staging]/xen-4.2/xen.hg
/...? (staging could also go after the dir I suppose)
Ian.
Re: [PATCH v2 3/4] Clone and build upstream Qemu by default
Quoted 11 lines · Ian Campbell
With the number of trees which we have now we should maybe consider putting each branch in a subdir:
[/staging]/xen-unstable/xen.hg /qemu-xen.hg /qemu.git /seabios.git [/staging]/xen-4.2/xen.hg /...? (staging could also go after the dir I suppose)
Or we could make use of git and hg's internal branching capabilities I guess.
Ian.
Re: [PATCH v2 3/4] Clone and build upstream Qemu by default
In reply to Ian CampbellQuoted 13 lines · Ian Campbell
In technical terms perhaps not but for practical reasons we want the default tree which we point people to live next to all the other default trees, otherwise they won't be able to reliably find it the sea of suchs trees which we will eventually have under /people/. Linus' tree being just one of a thousand trees under git.kernel.org was always a pain IMHO.
We also want to test and automatically push a tested branch like we do for the other trees and we really don't want to give the test system access to your (or anyone else's) xenbits account.
With the number of trees which we have now we should maybe consider putting each branch in a subdir:
Quoted 8 lines
[/staging]/xen-unstable/xen.hg /qemu-xen.hg /qemu.git /seabios.git [/staging]/xen-4.2/xen.hg /...? (staging could also go after the dir I suppose)
Fair enough. However it shouldn't block these patches.
Re: [PATCH v2 3/4] Clone and build upstream Qemu by default
Quoted 4 lines · Stefano Stabellini
Quoted 2 lines · Ian Campbell
With the number of trees which we have now we should maybe consider putting each branch in a subdir:
[...]
Quoted 2 lines
Fair enough. However it shouldn't block these patches.
Absolutely, I was just pondering ;-)
Ian.
PATCH v2 4/4 Clone and build Seabios by default
In reply to [email protected]Config.mk +2 -9
@@ -195,6 +195,8 @@ endif # Only available through the git protocol at the moment QEMU_UPSTREAM_URL ?= git://xenbits.xen.org/people/sstabellini/qemu-dm.git QEMU_UPSTREAM_TAG ?= origin/xen-stable-0.15 +SEABIOS_UPSTREAM_URL=git://git.qemu.org/seabios.git +SEABIOS_UPSTREAM_TAG ?= 7fc039e9c262b4199fab497f3e12f4e425c37560 # Specify which qemu-dm to use. This may be `ioemu' to use the old # Mercurial in-tree version, or a local directory, or a git URL.
@@ -208,15 +210,6 @@ QEMU_TAG ?= cd776ee9408ff127f934a707c1a3 # Short answer -- do not enable this unless you know what you are # doing and are prepared for some pain. -# SeaBIOS integration is a work in progress. Before enabling this -# option you must clone git://git.qemu.org/seabios.git/, possibly add -# some development patches and then build it yourself before pointing -# this variable to it (using an absolute path). -# -# Note that using SeaBIOS requires the use the upstream qemu as the -# device model. -SEABIOS_DIR ?= - # Optional components XENSTAT_XENTOP ?= y VTPM_TOOLS ?= n
tools/firmware/Makefile +25 -2
@@ -4,15 +4,35 @@ include $(XEN_ROOT)/tools/Rules.mk # hvmloader is a 32-bit protected mode binary. TARGET := hvmloader/hvmloader INST_DIR := $(DESTDIR)$(XENFIRMWAREDIR) +SEABIOS_DIR := seabios-dir SUBDIRS := +SUBDIRS += $(SEABIOS_DIR) SUBDIRS += rombios SUBDIRS += vgabios SUBDIRS += etherboot SUBDIRS += hvmloader +$(SEABIOS_DIR): + set -ex; \ + if [ ! -d seabios-remote ]; then \ + rm -rf seabios-remote seabios-remote.tmp; \ + mkdir seabios-remote.tmp; rmdir seabios-remote.tmp; \ + $(GIT) clone $(SEABIOS_UPSTREAM_URL) seabios-remote.tmp; \ + if [ "$(SEABIOS_UPSTREAM_TAG)" ]; then \ + cd seabios-remote.tmp; \ + $(GIT) branch -D dummy >/dev/null 2>&1 ||:; \ + $(GIT) checkout -b dummy $(SEABIOS_UPSTREAM_TAG); \ + cd ..; \ + fi; \ + mv seabios-remote.tmp seabios-remote; \ + fi; \ + rm -f seabios-dir; \ + ln -sf seabios-remote seabios-dir; \ + cp seabios-config seabios-dir/.config; + .PHONY: all -all: +all: $(SEABIOS_DIR) @set -e; if [ $$((`( bcc -v 2>&1 | grep version || echo 0.0.0 ) | cut -d' ' -f 3 | awk -F. '{ printf "0x%02x%02x%02x", $$1, $$2, $$3}'`)) -lt $$((0x00100e)) ] ; then \ echo "==========================================================================="; \ echo "Require dev86 rpm or bin86 & bcc debs version >= 0.16.14 to build firmware!"; \
@@ -35,4 +55,7 @@ clean: subdirs-clean distclean: subdirs-distclean subdir-distclean-etherboot: .phony - $(MAKE) -C etherboot distclean + $(MAKE) -C etherboot distclean + +subdir-distclean-$(SEABIOS_DIR): .phony + rm -rf seabios-dir seabios-remote
tools/firmware/hvmloader/Makefile +1 -1
@@ -47,7 +47,7 @@ endif ifneq ($(SEABIOS_DIR),) OBJS += seabios.o CFLAGS += -DENABLE_SEABIOS -SEABIOS_ROM := $(SEABIOS_DIR)/out/bios.bin +SEABIOS_ROM := ../$(SEABIOS_DIR)/out/bios.bin endif STDVGA_ROM := ../vgabios/VGABIOS-lgpl-latest.bin
tools/firmware/seabios-config new file +73 -0
73 lines not on this page · raw message
Re: [PATCH v2 4/4] Clone and build Seabios by default
Config.mk endif · line 199
Quoted 11 lines · On Thu, 2011-09-08 at 13:47 -0400, [email protected] wrote:
Signed-off-by Stefano Stabellini <[email protected]>diff -r
ef27b472d4f3Config.mkConfig.mk +2
-0@@ -195,6 +195,8 @@ endif # Only available through the git protocol at the moment QEMU_UPSTREAM_URL ?= git://xenbits.xen.org/people/sstabellini/qemu-dm.git QEMU_UPSTREAM_TAG ?= origin/xen-stable-0.15 +SEABIOS_UPSTREAM_URL=git://git.qemu.org/seabios.git +SEABIOS_UPSTREAM_TAG ?= 7fc039e9c262b4199fab497f3e12f4e425c37560
I guess we should have a default tree on xenbits for this?
[...]
Quoted 7 lines
Config.mk +7
-0+$(SEABIOS_DIR): + set -ex; \ + if [ ! -d seabios-remote ]; then \ + rm -rf seabios-remote seabios-remote.tmp; \ + mkdir seabios-remote.tmp; rmdir seabios-remote.tmp; \ + $(GIT) clone $(SEABIOS_UPSTREAM_URL) seabios-remote.tmp; \ + if [ "$(SEABIOS_UPSTREAM_TAG)" ]; then \
Config.mk endif
Quoted 10 lines
Config.mk +10
-0+ cd seabios-remote.tmp; \ + $(GIT) branch -D dummy >/dev/null 2>&1 ||:; \ + $(GIT) checkout -b dummy $(SEABIOS_UPSTREAM_TAG); \ + cd ..; \ + fi; \ + mv seabios-remote.tmp seabios-remote; \ + fi; \ + rm -f seabios-dir; \ + ln -sf seabios-remote seabios-dir; \ + cp seabios-config seabios-dir/.config;
This looks a lot like the qemu stuff which you only just moved into its own script. Can we not share it?
Quoted 12 lines
diff -r
ef27b472d4f3tools/firmware/hvmloader/Makefiletools/firmware/hvmloader/Makefile +1
-1@@ -47,7 +47,7 @@ endif ifneq ($(SEABIOS_DIR),) OBJS += seabios.o CFLAGS += -DENABLE_SEABIOS -SEABIOS_ROM := $(SEABIOS_DIR)/out/bios.bin +SEABIOS_ROM := ../$(SEABIOS_DIR)/out/bios.bin endif STDVGA_ROM := ../vgabios/VGABIOS-lgpl-latest.bin
Re: [PATCH v2 4/4] Clone and build Seabios by default
Quoted 4 lines · Ian Campbell
Quoted 2 lines · On Thu, 2011-09-08 at 13:47 -0400, [email protected] wrote:
Signed-off-by Stefano Stabellini <[email protected]>
Quoted 11 lines
Config.mk endif · line 199
Quoted 9 lines
diff -r
ef27b472d4f3Config.mkConfig.mk +2
-0@@ -195,6 +195,8 @@ endif # Only available through the git protocol at the moment QEMU_UPSTREAM_URL ?= git://xenbits.xen.org/people/sstabellini/qemu-dm.git QEMU_UPSTREAM_TAG ?= origin/xen-stable-0.15 +SEABIOS_UPSTREAM_URL=git://git.qemu.org/seabios.git +SEABIOS_UPSTREAM_TAG ?= 7fc039e9c262b4199fab497f3e12f4e425c37560I guess we should have a default tree on xenbits for this?
I am not sure it is a good idea, after all we don't plan to fork it, right?
It is the same thing as with ipxe: we just use the official repo.
Quoted 13 lines
[...]
Quoted 12 lines
+$(SEABIOS_DIR):
Config.mk +11
-0+ set -ex; \ + if [ ! -d seabios-remote ]; then \ + rm -rf seabios-remote seabios-remote.tmp; \ + mkdir seabios-remote.tmp; rmdir seabios-remote.tmp; \ + $(GIT) clone $(SEABIOS_UPSTREAM_URL) seabios-remote.tmp; \ + if [ "$(SEABIOS_UPSTREAM_TAG)" ]; then \ + cd seabios-remote.tmp; \ + $(GIT) branch -D dummy >/dev/null 2>&1 ||:; \ + $(GIT) checkout -b dummy $(SEABIOS_UPSTREAM_TAG); \ + cd ..; \ + fi; \
Quoted 8 lines
Config.mk
Quoted 5 lines
Config.mk +5
-0+ mv seabios-remote.tmp seabios-remote; \ + fi; \ + rm -f seabios-dir; \ + ln -sf seabios-remote seabios-dir; \ + cp seabios-config seabios-dir/.config;This looks a lot like the qemu stuff which you only just moved into its own script. Can we not share it?
Yep, I'll do that.
Re: [PATCH v2 4/4] Clone and build Seabios by default
Quoted 17 lines · Stefano Stabellini
Quoted 4 lines · Ian Campbell
Quoted 2 lines · On Thu, 2011-09-08 at 13:47 -0400, [email protected] wrote:
Signed-off-by Stefano Stabellini <[email protected]>Quoted 11 lines
Config.mk Thu Sep 08 17:29:50 2011 +0000
Quoted 9 lines
diff -r
ef27b472d4f3Config.mkConfig.mk Thu Sep 08 17:29:50 2011 +0000 renamed from Config.mk Thu Sep 08 17:19:12 2011 +0000 +0
-0@@ -195,6 +195,8 @@ endif # Only available through the git protocol at the momentQEMU_UPSTREAM_URL ?=
git://xenbits.xen.org/people/sstabellini/qemu-dm.git
QEMU_UPSTREAM_TAG ?= origin/xen-stable-0.15Config.mk Thu Sep 08 17:29:50 2011 +0000 renamed from Config.mk Thu Sep 08 17:19:12 2011 +0000 +2
-0+SEABIOS_UPSTREAM_URL=git://git.qemu.org/seabios.git +SEABIOS_UPSTREAM_TAG ?= 7fc039e9c262b4199fab497f3e12f4e425c37560I guess we should have a default tree on xenbits for this?
Quoted 3 lines
I am not sure it is a good idea, after all we don't plan to fork it, right?
It is the same thing as with ipxe: we just use the official repo.
But that means that if the sites hosting ipxe or qemu go down, people can't build Xen. Keeping a copy on xen.org removes external dependencies we don't have any control over.
Quoted 34 lines
Quoted 22 lines
[...]
Quoted 9 lines
+$(SEABIOS_DIR):
+ set -ex; \
+ if [ ! -d seabios-remote ]; then \
+ rm -rf seabios-remote seabios-remote.tmp; \
+ mkdir seabios-remote.tmp; rmdir seabios-remote.tmp; \
+ $(GIT) clone $(SEABIOS_UPSTREAM_URL) seabios-remote.tmp; \
+ if [ "$(SEABIOS_UPSTREAM_TAG)" ]; then \
+ cd seabios-remote.tmp; \
+ $(GIT) branch -D dummy >/dev/null 2>&1 ||:; \Quoted 8 lines
+ $(GIT) checkout -b dummy $(SEABIOS_UPSTREAM_TAG); \
+ cd ..; \
+ fi; \
+ mv seabios-remote.tmp seabios-remote; \
+ fi; \
+ rm -f seabios-dir; \
+ ln -sf seabios-remote seabios-dir; \
+ cp seabios-config seabios-dir/.config;Quoted 2 lines
This looks a lot like the qemu stuff which you only just moved into its own script. Can we not share it?
Yep, I'll do that.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Re: [PATCH v2 4/4] Clone and build Seabios by default
Quoted 19 lines · George Dunlap
Quoted 17 lines · Stefano Stabellini
Quoted 15 lines · Ian Campbell
Config.mk Thu Sep 08 17:29:50 2011 +0000
Quoted 11 lines · On Thu, 2011-09-08 at 13:47 -0400, [email protected] wrote:
Signed-off-by Stefano Stabellini <[email protected]>diff -r
ef27b472d4f3Config.mkConfig.mk Thu Sep 08 17:29:50 2011 +0000 renamed from Config.mk Thu Sep 08 17:19:12 2011 +0000 +0
-0@@ -195,6 +195,8 @@ endif # Only available through the git protocol at the momentQEMU_UPSTREAM_URL ?=
git://xenbits.xen.org/people/sstabellini/qemu-dm.git
QEMU_UPSTREAM_TAG ?= origin/xen-stable-0.15Config.mk Thu Sep 08 17:29:50 2011 +0000 renamed from Config.mk Thu Sep 08 17:19:12 2011 +0000 +2
-0+SEABIOS_UPSTREAM_URL=git://git.qemu.org/seabios.git +SEABIOS_UPSTREAM_TAG ?= 7fc039e9c262b4199fab497f3e12f4e425c37560I guess we should have a default tree on xenbits for this?
Quoted 7 lines
Quoted 3 lines
I am not sure it is a good idea, after all we don't plan to fork it, right?
It is the same thing as with ipxe: we just use the official repo.But that means that if the sites hosting ipxe or qemu go down, people can't build Xen. Keeping a copy on xen.org removes external dependencies we don't have any control over.
AKA single point of failure?
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Re: [PATCH v2 4/4] Clone and build Seabios by default
Quoted 5 lines · Stefano Stabellini
Quoted 3 lines
But that means that if the sites hosting ipxe or qemu go down, people can't build Xen. Keeping a copy on xen.org removes external dependencies we don't have any control over.
AKA single point of failure?
Better than multiple independent points of failure.
However, we already depend on the upstream ipxe site. Changing over to all downloads from a single site under our control would be a separate issue and patch, imo.
-- Keir
Re: [PATCH v2 4/4] Clone and build Seabios by default
In reply to Stefano StabelliniQuoted 17 lines · Stefano Stabellini
Quoted 4 lines · Ian Campbell
Quoted 2 lines · On Thu, 2011-09-08 at 13:47 -0400, [email protected] wrote:
Signed-off-by Stefano Stabellini <[email protected]>Quoted 11 lines
Config.mk endif · line 199
Quoted 9 lines
diff -r
ef27b472d4f3Config.mkConfig.mk +2
-0@@ -195,6 +195,8 @@ endif # Only available through the git protocol at the moment QEMU_UPSTREAM_URL ?= git://xenbits.xen.org/people/sstabellini/qemu-dm.git QEMU_UPSTREAM_TAG ?= origin/xen-stable-0.15 +SEABIOS_UPSTREAM_URL=git://git.qemu.org/seabios.git +SEABIOS_UPSTREAM_TAG ?= 7fc039e9c262b4199fab497f3e12f4e425c37560I guess we should have a default tree on xenbits for this?
Quoted 2 lines
I am not sure it is a good idea, after all we don't plan to fork it, right?
Planning not to fork is not the same as not forking.
For example, imagine a bug (or security issue) is discovered in seabios and we want to backport it to our (by then) xen-4.2-testing branch. Do we take all the other updates to seabios trunk into our stable branch to get the one we want or do we ask them to push it to a branch just for us? Or do we now need to scrabble to setup trees, update the links and retest etc while trying to get an (perhaps critical) update out? Far better to just start off hosting a tree on xenbits, even if it doesn't diverge at all.
Quoted 1 line
It is the same thing as with ipxe: we just use the official repo.
That's a bad thing, for the same reasons.
Ian.
Quoted 28 lines
Quoted 16 lines
[...]
Quoted 12 lines
+$(SEABIOS_DIR):
Config.mk +11
-0+ set -ex; \ + if [ ! -d seabios-remote ]; then \ + rm -rf seabios-remote seabios-remote.tmp; \ + mkdir seabios-remote.tmp; rmdir seabios-remote.tmp; \ + $(GIT) clone $(SEABIOS_UPSTREAM_URL) seabios-remote.tmp; \ + if [ "$(SEABIOS_UPSTREAM_TAG)" ]; then \ + cd seabios-remote.tmp; \ + $(GIT) branch -D dummy >/dev/null 2>&1 ||:; \ + $(GIT) checkout -b dummy $(SEABIOS_UPSTREAM_TAG); \ + cd ..; \ + fi; \Quoted 8 lines
Config.mk
Quoted 5 lines
Config.mk +5
-0+ mv seabios-remote.tmp seabios-remote; \ + fi; \ + rm -f seabios-dir; \ + ln -sf seabios-remote seabios-dir; \ + cp seabios-config seabios-dir/.config;This looks a lot like the qemu stuff which you only just moved into its own script. Can we not share it?
Yep, I'll do that.
Re: [PATCH v2 4/4] Clone and build Seabios by default
Quoted 23 lines · Ian Campbell
Quoted 17 lines · Stefano Stabellini
Quoted 4 lines · Ian Campbell
Quoted 2 lines · On Thu, 2011-09-08 at 13:47 -0400, [email protected] wrote:
Signed-off-by Stefano Stabellini <[email protected]>Quoted 11 lines
Config.mk endif · line 199
Quoted 9 lines
diff -r
ef27b472d4f3Config.mkConfig.mk +2
-0@@ -195,6 +195,8 @@ endif # Only available through the git protocol at the moment QEMU_UPSTREAM_URL ?= git://xenbits.xen.org/people/sstabellini/qemu-dm.git QEMU_UPSTREAM_TAG ?= origin/xen-stable-0.15 +SEABIOS_UPSTREAM_URL=git://git.qemu.org/seabios.git +SEABIOS_UPSTREAM_TAG ?= 7fc039e9c262b4199fab497f3e12f4e425c37560I guess we should have a default tree on xenbits for this?
Quoted 2 lines
I am not sure it is a good idea, after all we don't plan to fork it, right?
Planning not to fork is not the same as not forking.
Quoted 9 lines
For example, imagine a bug (or security issue) is discovered in seabios and we want to backport it to our (by then) xen-4.2-testing branch. Do we take all the other updates to seabios trunk into our stable branch to get the one we want or do we ask them to push it to a branch just for us? Or do we now need to scrabble to setup trees, update the links and retest etc while trying to get an (perhaps critical) update out? Far better to just start off hosting a tree on xenbits, even if it doesn't diverge at all.
Seabios already provides two stable branches: if a security issue is discovered, the Seabios guys will backport the fix to their stable branches and we just need to update the TAG (or set the TAG to 0.6.1-stable to begin with).
The only problem is that no stable branches have xen support yet.