diff options
Diffstat (limited to 'meta/recipes-core/ovmf/ovmf_git.bb')
-rw-r--r-- | meta/recipes-core/ovmf/ovmf_git.bb | 28 |
1 files changed, 5 insertions, 23 deletions
diff --git a/meta/recipes-core/ovmf/ovmf_git.bb b/meta/recipes-core/ovmf/ovmf_git.bb index 71828d8d8d..11793f0d1a 100644 --- a/meta/recipes-core/ovmf/ovmf_git.bb +++ b/meta/recipes-core/ovmf/ovmf_git.bb | |||
@@ -4,7 +4,7 @@ Virtual Machines. OVMF contains sample UEFI firmware for QEMU and KVM" | |||
4 | HOMEPAGE = "https://github.com/tianocore/tianocore.github.io/wiki/OVMF" | 4 | HOMEPAGE = "https://github.com/tianocore/tianocore.github.io/wiki/OVMF" |
5 | LICENSE = "BSD" | 5 | LICENSE = "BSD" |
6 | LICENSE_class-target = "${@bb.utils.contains('PACKAGECONFIG', 'secureboot', 'BSD & OpenSSL', 'BSD', d)}" | 6 | LICENSE_class-target = "${@bb.utils.contains('PACKAGECONFIG', 'secureboot', 'BSD & OpenSSL', 'BSD', d)}" |
7 | LIC_FILES_CHKSUM = "file://OvmfPkg/License.txt;md5=343dc88e82ff33d042074f62050c3496" | 7 | LIC_FILES_CHKSUM = "file://OvmfPkg/License.txt;md5=06357ddc23f46577c2aeaeaf7b776d65" |
8 | 8 | ||
9 | # Enabling Secure Boot adds a dependency on OpenSSL and implies | 9 | # Enabling Secure Boot adds a dependency on OpenSSL and implies |
10 | # compiling OVMF twice, so it is disabled by default. Distros | 10 | # compiling OVMF twice, so it is disabled by default. Distros |
@@ -12,30 +12,15 @@ LIC_FILES_CHKSUM = "file://OvmfPkg/License.txt;md5=343dc88e82ff33d042074f62050c3 | |||
12 | PACKAGECONFIG ??= "" | 12 | PACKAGECONFIG ??= "" |
13 | PACKAGECONFIG[secureboot] = ",,," | 13 | PACKAGECONFIG[secureboot] = ",,," |
14 | 14 | ||
15 | SRC_URI = "git://github.com/tianocore/edk2.git;branch=master \ | 15 | SRC_URI = "gitsm://github.com/tianocore/edk2.git;branch=master;protocol=git \ |
16 | file://0001-ia32-Dont-use-pie.patch \ | ||
17 | file://0002-ovmf-update-path-to-native-BaseTools.patch \ | 16 | file://0002-ovmf-update-path-to-native-BaseTools.patch \ |
18 | file://0003-BaseTools-makefile-adjust-to-build-in-under-bitbake.patch \ | 17 | file://0003-BaseTools-makefile-adjust-to-build-in-under-bitbake.patch \ |
19 | file://0004-ovmf-enable-long-path-file.patch \ | 18 | file://0004-ovmf-enable-long-path-file.patch \ |
20 | file://VfrCompile-increase-path-length-limit.patch \ | ||
21 | file://no-stack-protector-all-archs.patch \ | 19 | file://no-stack-protector-all-archs.patch \ |
22 | file://0001-BaseTools-header.makefile-add-Wno-stringop-truncatio.patch \ | ||
23 | file://0002-BaseTools-header.makefile-add-Wno-restrict.patch \ | ||
24 | file://0003-BaseTools-header.makefile-revert-gcc-8-Wno-xxx-optio.patch \ | ||
25 | file://0004-BaseTools-GenVtf-silence-false-stringop-overflow-war.patch \ | ||
26 | " | 20 | " |
27 | UPSTREAM_VERSION_UNKNOWN = "1" | 21 | UPSTREAM_VERSION_UNKNOWN = "1" |
28 | 22 | ||
29 | OPENSSL_RELEASE = "openssl-1.1.0e" | 23 | SRCREV="20d2e5a125e34fc8501026613a71549b2a1a3e54" |
30 | |||
31 | SRC_URI_append_class-target = " \ | ||
32 | ${@bb.utils.contains('PACKAGECONFIG', 'secureboot', 'http://www.openssl.org/source/${OPENSSL_RELEASE}.tar.gz;name=openssl;subdir=${S}/CryptoPkg/Library/OpensslLib', '', d)} \ | ||
33 | file://0007-OvmfPkg-EnrollDefaultKeys-application-for-enrolling-.patch \ | ||
34 | " | ||
35 | |||
36 | SRCREV="ec4910cd3336565fdb61dafdd9ec4ae7a6160ba3" | ||
37 | SRC_URI[openssl.md5sum] = "51c42d152122e474754aea96f66928c6" | ||
38 | SRC_URI[openssl.sha256sum] = "57be8618979d80c910728cfc99369bf97b2a1abd8f366ab6ebdee8975ad3874c" | ||
39 | 24 | ||
40 | inherit deploy | 25 | inherit deploy |
41 | 26 | ||
@@ -44,7 +29,7 @@ PARALLEL_MAKE = "" | |||
44 | S = "${WORKDIR}/git" | 29 | S = "${WORKDIR}/git" |
45 | 30 | ||
46 | DEPENDS_class-native="util-linux-native iasl-native" | 31 | DEPENDS_class-native="util-linux-native iasl-native" |
47 | DEPENDS_class-target="ovmf-native" | 32 | DEPENDS_class-target="ovmf-native bc-native" |
48 | 33 | ||
49 | DEPENDS_append = " nasm-native" | 34 | DEPENDS_append = " nasm-native" |
50 | 35 | ||
@@ -191,12 +176,9 @@ do_compile_class-target() { | |||
191 | ln ${build_dir}/${OVMF_ARCH}/Shell.efi ${WORKDIR}/ovmf/ | 176 | ln ${build_dir}/${OVMF_ARCH}/Shell.efi ${WORKDIR}/ovmf/ |
192 | 177 | ||
193 | if ${@bb.utils.contains('PACKAGECONFIG', 'secureboot', 'true', 'false', d)}; then | 178 | if ${@bb.utils.contains('PACKAGECONFIG', 'secureboot', 'true', 'false', d)}; then |
194 | # See CryptoPkg/Library/OpensslLib/Patch-HOWTO.txt and | 179 | # Repeat build with the Secure Boot flags. |
195 | # https://src.fedoraproject.org/cgit/rpms/edk2.git/tree/ for | ||
196 | # building with Secure Boot enabled. | ||
197 | bbnote "Building with Secure Boot." | 180 | bbnote "Building with Secure Boot." |
198 | rm -rf ${S}/Build/Ovmf$OVMF_DIR_SUFFIX | 181 | rm -rf ${S}/Build/Ovmf$OVMF_DIR_SUFFIX |
199 | ln -sf ${OPENSSL_RELEASE} ${S}/CryptoPkg/Library/OpensslLib/openssl | ||
200 | ${S}/OvmfPkg/build.sh $PARALLEL_JOBS -a $OVMF_ARCH -b RELEASE -t ${FIXED_GCCVER} ${OVMF_SECURE_BOOT_FLAGS} | 182 | ${S}/OvmfPkg/build.sh $PARALLEL_JOBS -a $OVMF_ARCH -b RELEASE -t ${FIXED_GCCVER} ${OVMF_SECURE_BOOT_FLAGS} |
201 | ln ${build_dir}/FV/OVMF.fd ${WORKDIR}/ovmf/ovmf.secboot.fd | 183 | ln ${build_dir}/FV/OVMF.fd ${WORKDIR}/ovmf/ovmf.secboot.fd |
202 | ln ${build_dir}/FV/OVMF_CODE.fd ${WORKDIR}/ovmf/ovmf.secboot.code.fd | 184 | ln ${build_dir}/FV/OVMF_CODE.fd ${WORKDIR}/ovmf/ovmf.secboot.code.fd |