44 lines
1.4 KiB
Diff
44 lines
1.4 KiB
Diff
|
From b44077cb7b2844d083ddae0d2174d4ae8a5101b6 Mon Sep 17 00:00:00 2001
|
||
|
From: Anthony PERARD <anthony.perard@citrix.com>
|
||
|
Date: Mon, 14 Mar 2016 17:55:39 +0000
|
||
|
Subject: [PATCH 04/15] firmware/makefile: install BIOS blob ...
|
||
|
|
||
|
... into the firmware directory, along with hvmloader.
|
||
|
|
||
|
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
|
||
|
---
|
||
|
tools/firmware/Makefile | 13 +++++++++++++
|
||
|
1 file changed, 13 insertions(+)
|
||
|
|
||
|
Index: xen-4.7.0-testing/tools/firmware/Makefile
|
||
|
===================================================================
|
||
|
--- xen-4.7.0-testing.orig/tools/firmware/Makefile
|
||
|
+++ xen-4.7.0-testing/tools/firmware/Makefile
|
||
|
@@ -19,6 +19,9 @@ SUBDIRS-y += hvmloader
|
||
|
|
||
|
LD32BIT-$(CONFIG_FreeBSD) := LD32BIT_FLAG=-melf_i386_fbsd
|
||
|
|
||
|
+SEABIOS_ROM := seabios-dir/out/bios.bin
|
||
|
+OVMF_ROM := ovmf-dir/ovmf.bin
|
||
|
+
|
||
|
ovmf-dir:
|
||
|
GIT=$(GIT) $(XEN_ROOT)/scripts/git-checkout.sh $(OVMF_UPSTREAM_URL) $(OVMF_UPSTREAM_REVISION) ovmf-dir
|
||
|
cp ovmf-makefile ovmf-dir/Makefile;
|
||
|
@@ -45,6 +48,16 @@ endif
|
||
|
install: all
|
||
|
[ -d $(INST_DIR) ] || $(INSTALL_DIR) $(INST_DIR)
|
||
|
[ ! -e $(TARGET) ] || $(INSTALL_DATA) $(TARGET) $(INST_DIR)
|
||
|
+ifeq ($(CONFIG_SEABIOS),y)
|
||
|
+ifeq ($(SEABIOS_PATH),)
|
||
|
+ $(INSTALL_DATA) $(SEABIOS_ROM) $(INST_DIR)/seabios.bin
|
||
|
+endif
|
||
|
+endif
|
||
|
+ifeq ($(CONFIG_OVMF),y)
|
||
|
+ifeq ($(OVMF_PATH),)
|
||
|
+ $(INSTALL_DATA) $(OVMF_ROM) $(INST_DIR)/ovmf.bin
|
||
|
+endif
|
||
|
+endif
|
||
|
|
||
|
.PHONY: clean
|
||
|
clean: subdirs-clean
|