[xen staging] automation: fix builds with clang

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen staging] automation: fix builds with clang

patchbot
commit f3d275cb5eae88295b14fce6b022290e939f6a28
Author:     Doug Goldstein <[hidden email]>
AuthorDate: Tue Jul 10 17:58:58 2018 -0500
Commit:     Wei Liu <[hidden email]>
CommitDate: Wed Jul 11 08:24:20 2018 +0100

    automation: fix builds with clang
   
    a75703b2f0f585a2fc6a7bcdb7d16a61bcf5e6b0 unconditionally enabled
    building of rombios and stubdoms but unfortunately these two pieces do
    not build successfully with clang. rombios unconditionally depends on
    the build of iPXE and upstream iPXE does not support building with
    clang. Similiarly the build of the stubdoms depends on the build of
    newlib which does not support being built with clang.
   
    Signed-off-by: Doug Goldstein <[hidden email]>
    Acked-by: Wei Liu <[hidden email]>
---
 automation/scripts/build | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/automation/scripts/build b/automation/scripts/build
index b9e4c1e329..8bbca15a51 100755
--- a/automation/scripts/build
+++ b/automation/scripts/build
@@ -13,9 +13,13 @@ fi
 cfgargs=()
 cfgargs+=("--enable-docs")
 
-# SeaBIOS cannot be built with clang
 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")
+    # newlib cannot be built with clang so we cannot build stubdoms
+    cfgargs+=("--disable-stubdom")
 fi
 
 if [[ "${XEN_TARGET_ARCH}" == "arm64" || "${XEN_TARGET_ARCH}" == "arm32" ]]; then
--
generated by git-patchbot for /home/xen/git/xen.git#staging

_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog