]> xenbits.xensource.com Git - people/sstabellini/raisin.git/commitdiff
raisin: pass --with-system-seabios with seabios was built
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 21 Apr 2015 16:03:19 +0000 (16:03 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 21 Apr 2015 16:03:19 +0000 (16:03 +0000)
Detect whether we have built seabios and only pass the relative command
line argument to Xen if we actually did.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
components/xen

index b3426f052dd3b00ef5044d331a9f999dd2433163..ac9e8fb45a184899a26eb87b13a30be28746c316 100644 (file)
@@ -24,12 +24,17 @@ function xen_check_package() {
 }
 
 function xen_build() {
+    local seabios_opt=""
+
     cd "$BASEDIR"
     git-checkout $XEN_URL $XEN_REVISION xen-dir
     cd xen-dir
+    if [[ -e "$BASEDIR"/seabios-dir/out/bios.bin ]]
+    then
+        seabios_opt="--with-system-seabios="$BASEDIR"/seabios-dir/out/bios.bin"
+    fi
     ./configure --prefix=$PREFIX --with-system-qemu=$PREFIX/lib/xen/bin/qemu-system-i386 \
-        --disable-qemu-traditional --enable-rombios \
-        --with-system-seabios="$BASEDIR"/seabios-dir/out/bios.bin
+        --disable-qemu-traditional --enable-rombios $seabios_opt
     $RAISIN_MAKE
     $RAISIN_MAKE install DESTDIR="$INST_DIR"
     cd "$BASEDIR"