If this option is given don't bother building seabios ourselves.
Likely to be handy for distros who have an existing seabios
package which they want to reuse.
Signed-off-by: Fabio Fantoni <fabio.fantoni@m2r.biz>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
BCC := @BCC@
IASL := @IASL@
FETCHER := @FETCHER@
+SEABIOS_PATH := @seabios_path@
# Extra folder for libs/includes
PREPEND_INCLUDES := @PREPEND_INCLUDES@
APPEND_INCLUDES
PREPEND_LIB
PREPEND_INCLUDES
+seabios_path
qemu_xen
qemu_traditional
blktap1
enable_blktap1
enable_qemu_traditional
with_system_qemu
+with_system_seabios
'
ac_precious_vars='build_alias
host_alias
Use system supplied qemu PATH or qemu (taken from
$PATH) as qemu-xen device model instead of building
and installing our own version
+ --with-system-seabios[=PATH]
+ Use system supplied seabios PATH instead of building
+ and installing our own version
Some influential environment variables:
CC C compiler command
+# Check whether --with-system-seabios was given.
+if test "${with_system_seabios+set}" = set; then :
+ withval=$with_system_seabios;
+ case $withval in
+ no) seabios_path= ;;
+ *) seabios_path=$withval ;;
+ esac
+
+fi
+
+
+
+
])
AC_SUBST(qemu_xen)
+AC_ARG_WITH([system-seabios],
+ AS_HELP_STRING([--with-system-seabios@<:@=PATH@:>@],
+ [Use system supplied seabios PATH instead of building and installing
+ our own version]),[
+ case $withval in
+ no) seabios_path= ;;
+ *) seabios_path=$withval ;;
+ esac
+],[])
+AC_SUBST(seabios_path)
+
AC_ARG_VAR([PREPEND_INCLUDES],
[List of include folders to prepend to CFLAGS (without -I)])
AC_ARG_VAR([PREPEND_LIB],
SUBDIRS-y :=
SUBDIRS-$(CONFIG_OVMF) += ovmf
+ifeq ($(SEABIOS_PATH),)
SUBDIRS-$(CONFIG_SEABIOS) += seabios-dir
+endif
SUBDIRS-$(CONFIG_ROMBIOS) += rombios
SUBDIRS-$(CONFIG_ROMBIOS) += vgabios
SUBDIRS-$(CONFIG_ROMBIOS) += etherboot
ifeq ($(CONFIG_SEABIOS),y)
OBJS += seabios.o
CFLAGS += -DENABLE_SEABIOS
-SEABIOS_ROM := $(SEABIOS_DIR)/out/bios.bin
+ifeq ($(SEABIOS_PATH),)
+ SEABIOS_ROM := $(SEABIOS_DIR)/out/bios.bin
+else
+ SEABIOS_ROM := $(SEABIOS_PATH)
+endif
ROMS += $(SEABIOS_ROM)
endif