Skip to contentSkip to conversation

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

PATCH Superseded Don Slutz 4 participants 7 messages Oct 4, 2013 – Nov 5, 2013

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Don Slutz

author
#0 lore raw

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

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 a26c7c0..8bbab8a 100644
@@ -212,15 +212,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.7.1
#1 lore raw
Quoted 15 lines
Quoted 1 line
Quoted 1 line · Don Slutz

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 +0 -0
index a26c7c0..8bbab8a 100644

Config.mk EMBEDDED_EXTRA_CFLAGS += -fno-exceptions · line 215

Quoted 5 lines
Config.mk +1 -1
@@ -212,15 +212,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 

Given the change here and further down - what is it that doesn't work when you run "make XEN_EXTFILES_URL=..."? I understand that you may want to pass these settings through the environment, but if the command line approach works the patch title is wrong.

Jan

Quoted 44 lines
Config.mk +2 -2
 # 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 · 7 lines
1.7.1


_______________________________________________
Xen-devel mailing list
[email protected] 
http://lists.xen.org/xen-devel 
author
#2 lore raw
Quoted 18 lines · Jan Beulich
Quoted 18 lines
Quoted 1 line
Quoted 1 line · Don Slutz

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 +0 -0
index a26c7c0..8bbab8a 100644
@@ -212,15 +212,15 @@ EMBEDDED_EXTRA_CFLAGS += -fno-exceptions
  XSM_ENABLE ?= n
  FLASK_ENABLE ?= $(XSM_ENABLE)
 
Quoted 8 lines

Config.mk EMBEDDED_EXTRA_CFLAGS += -fno-exceptions · line 215

Quoted 2 lines
Config.mk +1 -1
-XEN_EXTFILES_URL=http://xenbits.xen.org/xen-extfiles
+XEN_EXTFILES_URL ?= http://xenbits.xen.org/xen-extfiles

Given the change here and further down - what is it that doesn't work when you run "make XEN_EXTFILES_URL=..."? I understand that you may want to pass these settings through the environment, but if the command line approach works the patch title is wrong.

Jan

Yes, these are passed via the environment. Will fix the patch title.
-Don Slutz

Quoted 46 lines
Quoted 44 lines
Config.mk +2 -2
  # 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 · 7 lines
1.7.1


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#3 lore raw

Don Slutz writes ("Re: [Xen-devel] [PATCH] Allow building of XEN from source on a system without internet access."):

Quoted 1 line · Jan Beulich

...

Quoted 8 lines
Quoted 6 lines

Config.mk EMBEDDED_EXTRA_CFLAGS += -fno-exceptions · line 215

Quoted 2 lines
Config.mk +1 -1
-XEN_EXTFILES_URL=http://xenbits.xen.org/xen-extfiles
+XEN_EXTFILES_URL ?= http://xenbits.xen.org/xen-extfiles

Given the change here and further down - what is it that doesn't work when you run "make XEN_EXTFILES_URL=..."? I understand that you may want to pass these settings through the environment, but if the command line approach works the patch title is wrong.

Yes, these are passed via the environment. Will fix the patch title.

Right, thanks.

FAOD I approve of this kind of change, but did you know that you can put settings like this in .config in the root of the Xen tree ?

Ian.

author
#4 lore raw
Quoted 9 lines · Ian Jackson

Don Slutz writes ("Re: [Xen-devel] [PATCH] Allow building of XEN from source on a system without internet access."):

Quoted 1 line · Jan Beulich

...

Quoted 6 lines
Quoted 6 lines

Config.mk EMBEDDED_EXTRA_CFLAGS += -fno-exceptions · line 215

Quoted 2 lines
Config.mk +1 -1
-XEN_EXTFILES_URL=http://xenbits.xen.org/xen-extfiles
+XEN_EXTFILES_URL ?= http://xenbits.xen.org/xen-extfiles

Given the change here and further down - what is it that doesn't work when you run "make XEN_EXTFILES_URL=..."? I understand that you may want to pass these settings through the environment, but if the command line approach works the patch title is wrong.

Quoted 5 lines
Quoted 1 line

Yes, these are passed via the environment. Will fix the patch title.

Right, thanks.

FAOD I approve of this kind of change, but did you know that you can put settings like this in .config in the root of the Xen tree ?

I did. So how about a title of "Allow building of XEN from source on a system without internet access by specifying external stuff in .config"?
-Don Slutz

Quoted 1 line

Ian.

#5 lore raw
In reply to Don Slutz
Quoted 1 line · Don Slutz

Yes, these are passed via the environment. Will fix the patch title.

I don't think I saw this, did I miss it or is it still pending?

author
#6 lore raw
Quoted 6 lines · Ian Campbell
Quoted 1 line · Don Slutz

Yes, these are passed via the environment. Will fix the patch title.

I don't think I saw this, did I miss it or is it still pending?

Sorry about the slow response.

It was still pending (v2 is out). I was not happy with the title:

Allow building of XEN from source on a system without internet access by specifying external stuff in .config

I think the newer one is better. Also I spent time on kexec stuff 1st.
-Don Slutz

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel