Skip to contentSkip to conversation

tools: Don't try to update the firmware directory on ARM

PATCH In review Julien Grall 3 participants 7 messages Aug 7, 2015 – Aug 13, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools: Don't try to update the firmware directory on ARM

The firmware directory is not built at all on ARM. Attempting to update it using the target subtree-force-update will fail when try to update seabios.

---
Cc: Ian Jackson <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Ian Campbell <[email protected]>
Cc: Wei Liu <[email protected]>

I've noticed it while trying to update the QEMU tree used by Xen on a platform where iasl is not present (required by seabios in order to update it).

I think this should go in Xen 4.6 and possibly backport to Xen 4.5

---
 tools/Makefile | 2 ++
 1 file changed, 2 insertions(+)
tools/Makefile +2 -0
index 45cb4b2..2618559 100644
@@ -305,7 +305,9 @@ endif
 ifeq ($(CONFIG_QEMU_TRAD),y)
 	$(MAKE) qemu-xen-traditional-dir-force-update
 endif
+ifeq ($(CONFIG_X86),y)
 	$(MAKE) -C firmware subtree-force-update
+endif
 
 subtree-force-update-all:
 	$(MAKE) qemu-xen-dir-force-update
Signature · 1 line
2.1.4
#1 lore raw
Quoted 26 lines · Julien Grall

The firmware directory is not built at all on ARM. Attempting to update it using the target subtree-force-update will fail when try to update seabios.

---
Cc: Ian Jackson <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Ian Campbell <[email protected]>
Cc: Wei Liu <[email protected]>

I've noticed it while trying to update the QEMU tree used by Xen on a platform where iasl is not present (required by seabios in order to update it).

I think this should go in Xen 4.6 and possibly backport to Xen 4.5

---
 tools/Makefile | 2 ++
 1 file changed, 2 insertions(+)
tools/Makefile +0 -0
index 45cb4b2..2618559 100644

tools/Makefile endif · line 311

Quoted 7 lines
tools/Makefile +2 -0
@@ -305,7 +305,9 @@ endif
 ifeq ($(CONFIG_QEMU_TRAD),y)
 	$(MAKE) qemu-xen-traditional-dir-force-update
 endif
+ifeq ($(CONFIG_X86),y)
 	$(MAKE) -C firmware subtree-force-update
+endif
 

This is not optimal. What if you want to build OVMF on arm in the future? You also can't preclude you don't have any other firmwares that need to be built on ARM in the future.

I think a proper way of doing this is to make CONFIG_SEABIOS=n when you're building on ARM. See tools/configure.ac.

Wei.

Quoted 4 lines
tools/Makefile +0 -0
 subtree-force-update-all:
 	$(MAKE) qemu-xen-dir-force-update
Signature · 1 line
2.1.4
#2 lore raw

Hi Wei,

Quoted 32 lines · Wei Liu
Quoted 31 lines · Julien Grall

The firmware directory is not built at all on ARM. Attempting to update it using the target subtree-force-update will fail when try to update seabios.

---
Cc: Ian Jackson <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Ian Campbell <[email protected]>
Cc: Wei Liu <[email protected]>

I've noticed it while trying to update the QEMU tree used by Xen on a platform where iasl is not present (required by seabios in order to update it).

I think this should go in Xen 4.6 and possibly backport to Xen 4.5

---
  tools/Makefile | 2 ++
  1 file changed, 2 insertions(+)
tools/Makefile +1 -0
index 45cb4b2..2618559 100644
@@ -305,7 +305,9 @@ endif
  ifeq ($(CONFIG_QEMU_TRAD),y)
  	$(MAKE) qemu-xen-traditional-dir-force-update
  endif
+ifeq ($(CONFIG_X86),y)
  	$(MAKE) -C firmware subtree-force-update
Quoted 8 lines

tools/Makefile endif · line 311

Quoted 2 lines
tools/Makefile +1 -0
+endif
 

This is not optimal. What if you want to build OVMF on arm in the future? You also can't preclude you don't have any other firmwares that need to be built on ARM in the future.
I think a proper way of doing this is to make CONFIG_SEABIOS=n when you're building on ARM. See tools/configure.ac.

tools/Makefile only build the firmware directory for x86 see:

SUBDIRS-$(CONFIG_X86) += firmware

Hence why I wrote the patch in the current way.

Building the firmware directory for would require more work than replace SUBDIRS-$(CONFIG_X86) to SUBDIRS-y. In general, I do agree that we enable this with configure.ac but, IHMO this is not Xen 4.6 material...

Although I would be happy to fix it for Xen 4.7.

Regards,

Signature · 1 line
Julien Grall
#3 lore raw
Quoted 44 lines · Julien Grall

Hi Wei,

Quoted 41 lines · Wei Liu
Quoted 30 lines · Julien Grall

The firmware directory is not built at all on ARM. Attempting to update
it using the target subtree-force-update will fail when try to update seabios.

---
Cc: Ian Jackson <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Ian Campbell <[email protected]>
Cc: Wei Liu <[email protected]>

I've noticed it while trying to update the QEMU tree used by Xen
on
a platform where iasl is not present (required by seabios in
order
to update it).

I think this should go in Xen 4.6 and possibly backport to Xen
4.5

---
  tools/Makefile | 2 ++
  1 file changed, 2 insertions(+)
tools/Makefile +0 -0
index 45cb4b2..2618559 100644

tools/Makefile endif · line 311

Quoted 7 lines
tools/Makefile +2 -0
@@ -305,7 +305,9 @@ endif
  ifeq ($(CONFIG_QEMU_TRAD),y)
  	$(MAKE) qemu-xen-traditional-dir-force-update
  endif
+ifeq ($(CONFIG_X86),y)
  	$(MAKE) -C firmware subtree-force-update
+endif
 

This is not optimal. What if you want to build OVMF on arm in the future?

Slight aside, but I already looked at doing this but concluded that the right answer was to add this to raisin not xen.git. As it happens on ARM we would boot the UEFI binary directly, so we don't need to compile it into hvmloader or just through other hoops, so it is a bit easier than on x86.

Quoted 10 lines
Quoted 4 lines

You also can't preclude you don't have any other firmwares that
need to be built on ARM in the future.
I think a proper way of doing this is to make CONFIG_SEABIOS=n when you're building on ARM. See tools/configure.ac.

tools/Makefile only build the firmware directory for x86 see:

SUBDIRS-$(CONFIG_X86) += firmware

Hence why I wrote the patch in the current way.

I think having the update rule match (in spirit at least) the SUBDIRS rules make sense as a patch for now, so I'm in favour of taking this patch as it is.

Quoted 9 lines

Building the firmware directory for would require more work than replace SUBDIRS-$(CONFIG_X86) to SUBDIRS-y.
In general, I do agree that we enable this with configure.ac but, IHMO this is not Xen 4.6 material...

Although I would be happy to fix it for Xen 4.7.

Regards,

Acked-by
#4 lore raw
Quoted 46 lines · Ian Campbell
Quoted 44 lines · Julien Grall

Hi Wei,

Quoted 41 lines · Wei Liu
Quoted 30 lines · Julien Grall

The firmware directory is not built at all on ARM. Attempting to update
it using the target subtree-force-update will fail when try to update seabios.

---
Cc: Ian Jackson <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Ian Campbell <[email protected]>
Cc: Wei Liu <[email protected]>

I've noticed it while trying to update the QEMU tree used by Xen
on
a platform where iasl is not present (required by seabios in
order
to update it).

I think this should go in Xen 4.6 and possibly backport to Xen
4.5

---
  tools/Makefile | 2 ++
  1 file changed, 2 insertions(+)
tools/Makefile +0 -0
index 45cb4b2..2618559 100644

tools/Makefile endif · line 311

Quoted 7 lines
tools/Makefile +2 -0
@@ -305,7 +305,9 @@ endif
  ifeq ($(CONFIG_QEMU_TRAD),y)
  	$(MAKE) qemu-xen-traditional-dir-force-update
  endif
+ifeq ($(CONFIG_X86),y)
  	$(MAKE) -C firmware subtree-force-update
+endif
 

This is not optimal. What if you want to build OVMF on arm in the future?

Quoted 5 lines

Slight aside, but I already looked at doing this but concluded that the right answer was to add this to raisin not xen.git. As it happens on ARM we would boot the UEFI binary directly, so we don't need to compile it into hvmloader or just through other hoops, so it is a bit easier than on x86.

Right. Makes sense.

Quoted 7 lines
Quoted 7 lines
Quoted 4 lines

You also can't preclude you don't have any other firmwares that
need to be built on ARM in the future.
I think a proper way of doing this is to make CONFIG_SEABIOS=n when you're building on ARM. See tools/configure.ac.

tools/Makefile only build the firmware directory for x86 see:

Quoted 8 lines
Quoted 3 lines

SUBDIRS-$(CONFIG_X86) += firmware

Hence why I wrote the patch in the current way.

I think having the update rule match (in spirit at least) the SUBDIRS rules make sense as a patch for now, so I'm in favour of taking this patch as it is.

Fine by me then.

Quoted 9 lines
Quoted 9 lines

Building the firmware directory for would require more work than replace SUBDIRS-$(CONFIG_X86) to SUBDIRS-y.
In general, I do agree that we enable this with configure.ac but, IHMO this is not Xen 4.6 material...

Although I would be happy to fix it for Xen 4.7.

Regards,

#5 lore raw
In reply to Julien Grall
Quoted 5 lines · Julien Grall

The firmware directory is not built at all on ARM. Attempting to update it using the target subtree-force-update will fail when try to update seabios.

Quoted 32 lines

---
Cc: Ian Jackson <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Ian Campbell <[email protected]>
Cc: Wei Liu <[email protected]>

I've noticed it while trying to update the QEMU tree used by Xen on a platform where iasl is not present (required by seabios in order to update it).

I think this should go in Xen 4.6 and possibly backport to Xen 4.5

---
 tools/Makefile | 2 ++
 1 file changed, 2 insertions(+)
tools/Makefile +2 -0
index 45cb4b2..2618559 100644
@@ -305,7 +305,9 @@ endif
 ifeq ($(CONFIG_QEMU_TRAD),y)
 	$(MAKE) qemu-xen-traditional-dir-force-update
 endif
+ifeq ($(CONFIG_X86),y)
 	$(MAKE) -C firmware subtree-force-update
+endif
 
 subtree-force-update-all:
 	$(MAKE) qemu-xen-dir-force-update
Signature · 1 line
2.1.4