From: Stefano Stabellini Date: Tue, 21 Apr 2015 16:03:19 +0000 (+0000) Subject: raisin: pass --with-system-seabios with seabios was built X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=40fdd17f5f077843ed47d18178ff792527f30633;p=raisin.git raisin: pass --with-system-seabios with seabios was built 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 --- diff --git a/components/xen b/components/xen index b3426f0..ac9e8fb 100644 --- a/components/xen +++ b/components/xen @@ -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"