Skip to contentSkip to conversation

automation: enable building rombios with clang

PATCH In review Wei Liu 2 participants 7 messages Aug 24, 2018 – Mar 15, 2019

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH v2 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.

---
 automation/scripts/build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
automation/scripts/build +2 -2
index 054226bd73..332c3fb619 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/lib/ipxe/ipxe.pxe")
     # 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

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

Quoted 8 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.

---

automation/scripts/build +2 -0
+    # iPXE cannot be built with clang
+    cfgargs+=("--with-system-ipxe=/usr/lib/ipxe/ipxe.pxe")

Did we ever get all the containers updated with this file in place?

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

author
#2 lore raw
Quoted 11 lines · Doug Goldstein

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

Quoted 8 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.

---

automation/scripts/build +2 -0
+    # iPXE cannot be built with clang
+    cfgargs+=("--with-system-ipxe=/usr/lib/ipxe/ipxe.pxe")

Did we ever get all the containers updated with this file in place?

No. I didn't. Do we care? Xen's build system doesn't check if that file exists. It merely puts the string into appropriate places.

Wei.

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

#3 lore raw
Quoted 11 lines · Wei Liu
Quoted 10 lines · Doug Goldstein
Quoted 8 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.

---

automation/scripts/build +2 -0
+    # iPXE cannot be built with clang
+    cfgargs+=("--with-system-ipxe=/usr/lib/ipxe/ipxe.pxe")
Quoted 6 lines
Quoted 1 line

Did we ever get all the containers updated with this file in place?

No. I didn't. Do we care? Xen's build system doesn't check if that file exists. It merely puts the string into appropriate places.

Wei.

Well then that works for me. Just wondering if you've pushed a branch with this and had GitLab run over it?

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

author
#4 lore raw
Quoted 14 lines · Doug Goldstein
Quoted 13 lines · Wei Liu
Quoted 11 lines · Doug Goldstein

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

Quoted 8 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.

---

automation/scripts/build +2 -0
+    # iPXE cannot be built with clang
+    cfgargs+=("--with-system-ipxe=/usr/lib/ipxe/ipxe.pxe")

Did we ever get all the containers updated with this file in place?

Quoted 7 lines
Quoted 4 lines

No. I didn't. Do we care? Xen's build system doesn't check if that file exists. It merely puts the string into appropriate places.

Wei.

Well then that works for me. Just wondering if you've pushed a branch with this and had GitLab run over it?

Yes. See:

https://gitlab.com/liuw/xen/pipelines/28619492

This patch needs to be committed after my rombios fix is in.

Wei.

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

author
#5 lore raw
In reply to Doug Goldstein
Quoted 14 lines · Doug Goldstein
Quoted 13 lines · Wei Liu
Quoted 11 lines · Doug Goldstein

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

Quoted 8 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.

---

automation/scripts/build +2 -0
+    # iPXE cannot be built with clang
+    cfgargs+=("--with-system-ipxe=/usr/lib/ipxe/ipxe.pxe")

Did we ever get all the containers updated with this file in place?

Quoted 7 lines
Quoted 4 lines

No. I didn't. Do we care? Xen's build system doesn't check if that file exists. It merely puts the string into appropriate places.

Wei.

Well then that works for me. Just wondering if you've pushed a branch with this and had GitLab run over it?

I take that "that works for me" as an approval. :-)

I will commit this patch shortly.

Wei.

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

#6 lore raw
Quoted 23 lines
Quoted 23 lines
Quoted 22 lines · Wei Liu
Quoted 9 lines · Doug Goldstein
Quoted 7 lines · Wei Liu

On Fri, Aug 24, 2018 at 10:32:24AM -0500, Doug Goldstein wrote:
On Fri, Aug 24, 2018 at 04:22:47PM +0100, Wei Liu wrote:
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.

Quoted 6 lines

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

Quoted 4 lines

---

automation/scripts/build +2 -0
+    # iPXE cannot be built with clang
+    cfgargs+=("--with-system-ipxe=/usr/lib/ipxe/ipxe.pxe")

Did we ever get all the containers updated with this file in place?

No. I didn't. Do we care? Xen's build system doesn't check if that file exists. It merely puts the string into appropriate places.

Wei.

Quoted 8 lines
Quoted 2 lines

Well then that works for me. Just wondering if you've pushed a branch with this and had GitLab run over it?

I take that "that works for me" as an approval. :-)

I will commit this patch shortly.

Wei.

Yes. Apologies for not being explicit.

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