diff options
author | Yang Zhang <yang.z.zhang@intel.com> | 2015-08-28 09:58:54 +0800 |
---|---|---|
committer | Yang Zhang <yang.z.zhang@intel.com> | 2015-09-01 12:44:00 +0800 |
commit | e44e3482bdb4d0ebde2d8b41830ac2cdb07948fb (patch) | |
tree | 66b09f592c55df2878107a468a91d21506104d3f /qemu/roms/openbios/Makefile | |
parent | 9ca8dbcc65cfc63d6f5ef3312a33184e1d726e00 (diff) |
Add qemu 2.4.0
Change-Id: Ic99cbad4b61f8b127b7dc74d04576c0bcbaaf4f5
Signed-off-by: Yang Zhang <yang.z.zhang@intel.com>
Diffstat (limited to 'qemu/roms/openbios/Makefile')
-rw-r--r-- | qemu/roms/openbios/Makefile | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/qemu/roms/openbios/Makefile b/qemu/roms/openbios/Makefile new file mode 100644 index 000000000..172f4507b --- /dev/null +++ b/qemu/roms/openbios/Makefile @@ -0,0 +1,51 @@ +include config-host.mak + +all: requirements info build + +requirements: + @which xsltproc &>/dev/null || ( echo ; echo "Please install libxslt2"; \ + echo; exit 1 ) + +info: + @echo "Building OpenBIOS for $(TARGETS)" + +clean: + @echo "Cleaning up..." + @for dir in $(ODIRS); do \ + $(MAKE) -C $$dir clean; \ + done + +build: start-build + @for dir in $(ODIRS); do \ + $(MAKE) -C $$dir > $$dir/build.log 2>&1 && echo "ok." || \ + ( echo "error:"; tail -15 $$dir/build.log; exit 1 ) \ + done + +SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGETS)) +SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory) + +quiet-command = $(if $(V),$1,$(if $(2),@echo $2 && $1, @$1)) + +build-verbose: start-build $(SUBDIR_RULES) + +subdir-%: + $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C obj-$* V="$(V)" all,) + +start-build: + @echo "Building..." + +run: + @echo "Running..." + @for dir in $(ODIRS); do \ + $$dir/openbios-unix $$dir/openbios-unix.dict; \ + done + + +# The following two targets will only work on x86 so far. +# +$(ODIR)/openbios.iso: $(ODIR)/openbios.multiboot $(ODIR)/openbios-x86.dict + @mkisofs -input-charset UTF-8 -r -b boot/grub/stage2_eltorito -no-emul-boot \ + -boot-load-size 4 -boot-info-table -o $@ utils/iso $^ + +runiso: $(ODIR)/openbios.iso + qemu -cdrom $^ |