[pve-devel] [RFC edk2-firmware] Initial commit
Thomas Lamprecht
t.lamprecht at proxmox.com
Tue Mar 13 16:29:24 CET 2018
Currently builds OVMF in a simmilar fashion the Debian package does,
we just focus on a x86_64 build for now, disable secure boot (was
disabled in our binary images from pve-qemu, it needs a static build
of an specific version of OpenSSL, bit of an headache) and has our
Logo for the boot splash.
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
.gitignore | 4 +++
.gitmodules | 3 +++
Makefile | 47 ++++++++++++++++++++++++++++++++
debian/Logo.bmp | Bin 0 -> 49078 bytes
debian/changelog | 6 +++++
debian/clean | 4 +++
debian/compat | 1 +
debian/control | 21 +++++++++++++++
debian/copyright | 29 ++++++++++++++++++++
debian/pve-edk2-firmware.install | 3 +++
debian/pve-edk2-firmware.links | 1 +
debian/rules | 56 +++++++++++++++++++++++++++++++++++++++
edk2 | 1 +
13 files changed, 176 insertions(+)
create mode 100644 .gitignore
create mode 100644 .gitmodules
create mode 100644 Makefile
create mode 100644 debian/Logo.bmp
create mode 100644 debian/changelog
create mode 100644 debian/clean
create mode 100644 debian/compat
create mode 100644 debian/control
create mode 100644 debian/copyright
create mode 100644 debian/pve-edk2-firmware.install
create mode 100644 debian/pve-edk2-firmware.links
create mode 100755 debian/rules
create mode 160000 edk2
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a4c231b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*.deb
+*.buildinfo
+*.changes
+edk2.build
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..e24b385
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "edk2"]
+ path = edk2
+ url = ../mirror_edk2
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..831dcff
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,47 @@
+PACKAGE=pve-edk2-firmware
+VER=1.$(shell date -d @$$(dpkg-parsechangelog -S timestamp) '+%Y%m%d')
+PKGREL=1
+
+SRCDIR=edk2
+BUILDDIR=${SRCDIR}.build
+
+GITVERSION:=$(shell git rev-parse HEAD)
+
+DEB=${PACKAGE}_${VER}-${PKGREL}_all.deb
+
+all: ${DEB}
+ @echo ${DEB}
+
+.PHONY: deb
+deb: ${DEB}
+${DEB}: | submodule
+ rm -rf ${BUILDDIR}
+ cp -rpa ${SRCDIR} ${BUILDDIR}
+ cp -a debian ${BUILDDIR}
+ echo "git clone git://git.proxmox.com/git/pve-guest-fw-edk2.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE
+ cd ${BUILDDIR}; dpkg-buildpackage -rfakeroot -b -uc -us
+ lintian ${DEB}
+ @echo ${DEB}
+
+.PHONY: submodule
+submodule:
+ test -f "${SRCDIR}/Readme.md" || git submodule update --init
+
+.PHONY: update_modules
+update_modules: submodule
+ git submodule foreach 'git pull --ff-only origin master'
+
+.PHONY: upload
+upload: ${DEB}
+ tar cf - ${DEB}|ssh -X repoman at repo.proxmox.com -- upload --product pmg,pve --dist stretch
+
+.PHONY: distclean
+distclean: clean
+
+.PHONY: clean
+clean:
+ rm -rf *~ debian/*~ *.deb ${BUILDDIR} *.changes *.dsc *.buildinfo
+
+.PHONY: dinstall
+dinstall: ${DEB}
+ dpkg -i ${DEB}
diff --git a/debian/Logo.bmp b/debian/Logo.bmp
new file mode 100644
index 0000000000000000000000000000000000000000..4c46dd84772b32fa5c70e31d2483d66850495dc3
GIT binary patch
literal 49078
zcmeHP33wGnwmzxmKD=<B2@*sx$i9R at 1O=5v%#%%mZ1M(-iXez=PrwH=Am|7#41(ae
zuqh!50%1NgKAJHN5 at mF7VG#rYVH5;GHYX?$Ai2xyIn~{@^}SgJ;`jXCRPp6 at b#3R=
z|JSL#xwCivMsVCMRREf!?+-};Q}CGtS2*F*HvrVE?*3sQjd1_q-v9_rQWXO9nG^)5
zk_1(;oFoiLGO9r}Okz~24ul2<QlQEe0SE-EVwM^JS6l^EtD}r+HQ|a-H6Ybf!KijE
zRJ$?+ at b9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=A#t$x)AXaqC at 8Uc-fMnEH=5zq)|1T+E~0gZr0
zKqH_L&<JP*Gy)m{jetf#BcKt`2xtT}0vZ90fJQ(gpb^jrXaqC at 8Uc-fMnEH=5%@nw
F;2(p`PZt0H
literal 0
HcmV?d00001
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..e038242
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+pve-edk2-firmware (1.20180313-1) stable; urgency=medium
+
+ * Initial release.
+
+ -- Proxmox Support Team <support at proxmox.com> Tue, 13 Mar 2018 11:20:02 +0200
+
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..8772fda
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,4 @@
+Conf/BuildEnv.sh
+Conf/build_rule.txt
+Conf/target.txt
+Conf/tools_def.txt
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..aa917e6
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,21 @@
+Source: pve-edk2-firmware
+Section: misc
+Priority: extra
+Maintainer: Proxmox Support Team <support at proxmox.com>
+Build-Depends: debhelper (>= 8),
+ iasl,
+ nasm,
+ python,
+ uuid-dev,
+Homepage: http://www.tianocore.org
+Standards-Version: 3.9.8
+
+Package: pve-edk2-firmware
+Architecture: all
+Depends: ${misc:Depends},
+Provides: ovmf,
+Conflicts: ovmf,
+Description: edk2 based firmware modules for virtual machines
+ Contains OVMF. Open Virtual Machine Firmware (OVMF) is a build of EDK II for
+ virtual machines. It includes full support for UEFI, including Secure Boot,
+ allowing use of UEFI in place of a traditional BIOS in your VM.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..5941725
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,29 @@
+Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved
+Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.
+Copyright (c) 2011 - 2015, ARM Limited. All rights reserved.
+Copyright (c) 2014 - 2015, Linaro Limited. All rights reserved.
+Copyright (c) 2013 - 2015, Red Hat, Inc.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
diff --git a/debian/pve-edk2-firmware.install b/debian/pve-edk2-firmware.install
new file mode 100644
index 0000000..839354c
--- /dev/null
+++ b/debian/pve-edk2-firmware.install
@@ -0,0 +1,3 @@
+Build/OvmfX64/RELEASE_*GCC*/FV/OVMF.fd /usr/share/ovmf
+Build/OvmfX64/RELEASE_*GCC*/FV/OVMF_CODE.fd /usr/share/OVMF
+Build/OvmfX64/RELEASE_*GCC*/FV/OVMF_VARS.fd /usr/share/OVMF
diff --git a/debian/pve-edk2-firmware.links b/debian/pve-edk2-firmware.links
new file mode 100644
index 0000000..b308b69
--- /dev/null
+++ b/debian/pve-edk2-firmware.links
@@ -0,0 +1 @@
+usr/share/ovmf/OVMF.fd usr/share/qemu/OVMF.fd
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..0464134
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,56 @@
+#!/usr/bin/make -f
+SHELL=/bin/bash
+
+# this is a simplified version from the upstream package
+
+DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+
+EDK2_TOOLCHAIN = GCC5 # for GCC5 and newer, LTO enabled
+export $(EDK2_TOOLCHAIN)_AARCH64_PREFIX=aarch64-linux-gnu-
+
+ifeq ($(DEB_BUILD_ARCH),amd64)
+ EDK2_BUILD_ARCH=X64
+ EDK2_HOST_ARCH=X64
+endif
+ifeq ($(DEB_BUILD_ARCH),arm64)
+ EDK2_BUILD_ARCH=AARCH64
+endif
+
+# Clear variables used internally by the edk2 build system
+undefine WORKSPACE
+undefine ECP_SOURCE
+undefine EDK_SOURCE
+undefine EFI_SOURCE
+undefine EDK_TOOLS_PATH
+undefine CONF_PATH
+
+%:
+ dh $@
+
+override_dh_auto_build: build-ovmf
+
+setup-build:
+ cp -a debian/Logo.bmp MdeModulePkg/Logo/Logo.bmp
+ make -C BaseTools ARCH=$(EDK2_BUILD_ARCH)
+ # call this when building too, it modifies the shell environment
+ . ./edksetup.sh
+
+build-ovmf: EDK2_ARCH_DIR=X64
+build-ovmf: EDK2_HOST_ARCH=X64
+build-ovmf: setup-build
+ set -e; . ./edksetup.sh; \
+ OvmfPkg/build.sh -a $(EDK2_HOST_ARCH) -b RELEASE -DSECURE_BOOT_ENABLE=FALSE -DFD_SIZE_2MB \
+ -n $$(getconf _NPROCESSORS_ONLN) -t $(EDK2_TOOLCHAIN)
+
+build-qemu-efi-aarch64:
+ $(MAKE) -f debian/rules build-qemu-efi EDK2_ARCH_DIR=AArch64 EDK2_HOST_ARCH=AARCH64 FW_NAME=AAVMF
+
+override_dh_auto_clean:
+ set -e; \
+ if [ -d BaseTools/Source/C/bin ]; then \
+ . ./edksetup.sh; build clean; \
+ make -C BaseTools clean; \
+ fi
+ rm -rf Conf/.cache Build .pc-post
+
+.PHONY: setup-build build-ovmf
diff --git a/edk2 b/edk2
new file mode 160000
index 0000000..ea30f8e
--- /dev/null
+++ b/edk2
@@ -0,0 +1 @@
+Subproject commit ea30f8e81399059e2a94b597d05d3273893afe7b
--
2.14.2
More information about the pve-devel
mailing list