Skip to contentSkip to conversation

Allow building of XEN from source on a system without internet access.

PATCH In review Don Slutz 2 participants 3 messages Nov 5, 2013

lore
Share & tools
lore

Don Slutz

author
#0 lore raw

v2 cover Allow building of XEN from source on a system without internet access.

From: Don Slutz <[email protected]>

Changes v1 to v2:
Reword the commit message to be clearer.

Don Slutz (1):
.config: Allow all URL(s) to be specified in .config

 Config.mk                         | 6 +++---
 tools/firmware/etherboot/Makefile | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
Signature · 1 line
1.8.4
author
#1 lore raw

PATCH v2 1/1 .config: Allow all URL(s) to be specified in .config

From: Don Slutz <[email protected]>

This allow building of XEN from source on a system without internet access using either the environment or .config

Do the same with XEN_EXTFILES_URL, QEMU_REMOTE, IPXE_GIT_URL, and IPXE_TARBALL_URL as QEMU_UPSTREAM_URL, SEABIOS_UPSTREAM_URL, etc.

---
 Config.mk                         | 6 +++---
 tools/firmware/etherboot/Makefile | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
Config.mk +3 -3
index 7f3d8c7..9b39d6c 100644
@@ -213,15 +213,15 @@ EMBEDDED_EXTRA_CFLAGS += -fno-exceptions
 XSM_ENABLE ?= n
 FLASK_ENABLE ?= $(XSM_ENABLE)
 
-XEN_EXTFILES_URL=http://xenbits.xen.org/xen-extfiles
+XEN_EXTFILES_URL ?= http://xenbits.xen.org/xen-extfiles
 # All the files at that location were downloaded from elsewhere on
 # the internet.  The original download URL is preserved as a comment
 # near the place in the Xen Makefiles where the file is used.
 
 ifeq ($(GIT_HTTP),y)
-QEMU_REMOTE=http://xenbits.xen.org/git-http/qemu-xen-unstable.git
+QEMU_REMOTE ?= http://xenbits.xen.org/git-http/qemu-xen-unstable.git
 else
-QEMU_REMOTE=git://xenbits.xen.org/qemu-xen-unstable.git
+QEMU_REMOTE ?= git://xenbits.xen.org/qemu-xen-unstable.git
 endif
 
 ifeq ($(GIT_HTTP),y)
tools/firmware/etherboot/Makefile +3 -3
index 15561fc..a0578d2 100644
@@ -5,14 +5,14 @@ include $(XEN_ROOT)/tools/Rules.mk
 include Config
 
 ifeq ($(GIT_HTTP),y)
-IPXE_GIT_URL := http://git.ipxe.org/ipxe.git
+IPXE_GIT_URL ?= http://git.ipxe.org/ipxe.git
 else
-IPXE_GIT_URL := git://git.ipxe.org/ipxe.git
+IPXE_GIT_URL ?= git://git.ipxe.org/ipxe.git
 endif
 
 IPXE_GIT_TAG := 9a93db3f0947484e30e753bbd61a10b17336e20e
 
-IPXE_TARBALL_URL := $(XEN_EXTFILES_URL)/ipxe-git-$(IPXE_GIT_TAG).tar.gz
+IPXE_TARBALL_URL ?= $(XEN_EXTFILES_URL)/ipxe-git-$(IPXE_GIT_TAG).tar.gz
 
 D=ipxe
 T=ipxe.tar.gz
Signature · 1 line
1.8.4
#2 lore raw

Re: [PATCH v2 1/1] .config: Allow all URL(s) to be specified in .config

Quoted 9 lines · Don Slutz

From: Don Slutz <[email protected]>

This allow building of XEN from source on a system without internet access using either the environment or .config

Do the same with XEN_EXTFILES_URL, QEMU_REMOTE, IPXE_GIT_URL, and IPXE_TARBALL_URL as QEMU_UPSTREAM_URL, SEABIOS_UPSTREAM_URL, etc.

I've taken this to be a tools patch and therefore acked + applied it, thanks.

Ian.