automation: fix builds with clang
authorDoug Goldstein <cardoe@cardoe.com>
Tue, 10 Jul 2018 22:58:58 +0000 (17:58 -0500)
committerWei Liu <wei.liu2@citrix.com>
Wed, 11 Jul 2018 07:24:20 +0000 (08:24 +0100)
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 <cardoe@cardoe.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
automation/scripts/build

index b9e4c1e32979ca58c834d8bd2def7581ee85d832..8bbca15a517e0dc5e7124a22f4f43b7a2b36817e 100755 (executable)
@@ -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