Skip to contentSkip to conversation

automation: enable building rombios with clang

PATCH Superseded Wei Liu 2 participants 3 messages Jul 17, 2018 – Jul 18, 2018

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 automation: enable building rombios with clang

Previously it is disabled because the embedded ipxe can't be built with clang. Now that ipxe is split out we can use --with-system-ipxe to work around the issue.

---
Depends on the ipxe series just committed.

---
 automation/scripts/build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
automation/scripts/build +2 -2
index 054226bd73..4dcaabf4bd 100755
@@ -16,8 +16,8 @@ cfgargs+=("--enable-docs")
 if [[ "${CC}" == "clang" ]]; then
     # SeaBIOS cannot be built with clang
     cfgargs+=("--with-system-seabios=/usr/share/seabios/bios.bin")
-    # iPXE cannot be built with clang so we cannot build rombios
-    cfgargs+=("--disable-rombios")
+    # iPXE cannot be built with clang
+    cfgargs+=("--with-system-ipxe=/usr/share/ipxe/ipxe.bin")
     # newlib cannot be built with clang so we cannot build stubdoms
     cfgargs+=("--disable-stubdom")
 fi
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#1 lore raw
Quoted 16 lines · Wei Liu

Previously it is disabled because the embedded ipxe can't be built with clang. Now that ipxe is split out we can use --with-system-ipxe to work around the issue.

---
Depends on the ipxe series just committed.

---
 automation/scripts/build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
automation/scripts/build +0 -0
index 054226bd73..4dcaabf4bd 100755

automation/scripts/build cfgargs+=("--enable-docs") · line 20

Quoted 7 lines
automation/scripts/build +2 -2
@@ -16,8 +16,8 @@ cfgargs+=("--enable-docs")
 if [[ "${CC}" == "clang" ]]; then
     # SeaBIOS cannot be built with clang
     cfgargs+=("--with-system-seabios=/usr/share/seabios/bios.bin")
-    # iPXE cannot be built with clang so we cannot build rombios
-    cfgargs+=("--disable-rombios")
+    # iPXE cannot be built with clang
+    cfgargs+=("--with-system-ipxe=/usr/share/ipxe/ipxe.bin")

This file doesn't exist on the Ubuntu containers I've tried. Even after installing ipxe and ipxe-qemu. What distro provided iPXE file can we use?

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

author
#2 lore raw
Quoted 12 lines · Doug Goldstein
Quoted 11 lines · Wei Liu

Previously it is disabled because the embedded ipxe can't be built with clang. Now that ipxe is split out we can use --with-system-ipxe to work around the issue.

---
Depends on the ipxe series just committed.

---
 automation/scripts/build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 16 lines

automation/scripts/build cfgargs+=("--enable-docs") · line 20

Quoted 12 lines
automation/scripts/build +2 -2
index 054226bd73..4dcaabf4bd 100755
@@ -16,8 +16,8 @@ cfgargs+=("--enable-docs")
 if [[ "${CC}" == "clang" ]]; then
     # SeaBIOS cannot be built with clang
     cfgargs+=("--with-system-seabios=/usr/share/seabios/bios.bin")
-    # iPXE cannot be built with clang so we cannot build rombios
-    cfgargs+=("--disable-rombios")
+    # iPXE cannot be built with clang
+    cfgargs+=("--with-system-ipxe=/usr/share/ipxe/ipxe.bin")

This file doesn't exist on the Ubuntu containers I've tried. Even after installing ipxe and ipxe-qemu. What distro provided iPXE file can we use?

The effect of --with-system-ipxe only puts that path into libxl and that's it. That is just a random path I put in.

Wei.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel