@@ -25,7 +25,7 @@ local_conf_header:
INITRAMFS_INSTALL:append = " initramfs-abrootfs-hook"
firmware-binaries: |
# Add ovmf binaries for qemu
- IMAGER_BUILD_DEPS:append:qemu-amd64 = " ovmf-binaries"
+ CIP_IMAGE_OPTIONS:append:qemu-amd64 = " deploy-ovmf.inc"
# not needed for Debian 11 and later
DISTRO_APT_SOURCES:append:qemu-amd64:buster = " conf/distro/debian-buster-backports.list"
DISTRO_APT_PREFERENCES:append:qemu-amd64:buster = " conf/distro/preferences.ovmf-snakeoil.conf"
new file mode 100644
@@ -0,0 +1,21 @@
+#
+# CIP Core, generic profile
+#
+# Copyright (c) Siemens AG, 2023
+#
+# Authors:
+# Felix Moessbauer <felix.moessbauer@siemens.com>
+#
+# SPDX-License-Identifier: MIT
+#
+# This recipe deploys the OVMF binaries to run the image in QEMU
+# Note: x86 only
+
+IMAGER_INSTALL += "ovmf"
+
+do_deploy_ovmf_binaries[cleandirs] += "${DEPLOY_DIR_IMAGE}/OVMF"
+do_deploy_ovmf_binaries() {
+ cp -v ${BUILDCHROOT_DIR}/usr/share/OVMF/*.fd ${DEPLOY_DIR_IMAGE}/OVMF
+}
+
+addtask deploy_ovmf_binaries after do_install_imager_deps before do_image
deleted file mode 100644
@@ -1,17 +0,0 @@
-#!/usr/bin/make -f
-#
-# Copyright (c) Siemens AG, 2022
-#
-# Authors:
-# Quirin Gylstorff <quirin.gylstorff@siemens.com>
-#
-# This file is subject to the terms and conditions of the MIT License.
-# See COPYING.MIT file in the top-level directory.
-#
-
-override_dh_auto_configure:
- mkdir -p /home/builder/ovmf-binaries/image/var/share/
- cp -r /usr/share/OVMF /home/builder/ovmf-binaries/image/var/share/
-
-%:
- dh $@
deleted file mode 100644
@@ -1,35 +0,0 @@
-#
-# CIP Core, generic profile
-#
-# Copyright (c) Siemens AG, 2020
-#
-# Authors:
-# Quirin Gylstorff <quirin.gylstorff@siemens.com>
-#
-# SPDX-License-Identifier: MIT
-#
-
-inherit dpkg-raw
-
-DESCRIPTION = "Copy the OVMF biniaries from the build changeroot to the deploy dir"
-
-# this is a empty debian package
-SRC_URI = "file://rules"
-
-DEBIAN_BUILD_DEPENDS = "ovmf"
-
-SSTATETASKS = ""
-
-do_install() {
- install -v -d ${D}/var/share
- touch ${D}/var/share/test
-}
-
-do_deploy() {
- install -m 0755 -d ${DEPLOY_DIR_IMAGE}
- dpkg --extract ${WORKDIR}/${PN}_${PV}*.deb ${WORKDIR}
- cp -r ${WORKDIR}/var/share/OVMF ${DEPLOY_DIR_IMAGE}
-}
-addtask do_deploy after do_dpkg_build before do_deploy_deb
-
-
Instead of deploying the OVMF binaries via a dummy package, we directly deploy them as part of the imaging. This avoids the insertion of the dummy package into the apt repo, speeds up the build and simplifies the logic. Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com> --- kas/opt/ebg-swu.yml | 2 +- recipes-core/images/deploy-ovmf.inc | 21 +++++++++++ recipes-devtools/ovmf-binaries/files/rules | 17 --------- .../ovmf-binaries/ovmf-binaries_0.1.bb | 35 ------------------- 4 files changed, 22 insertions(+), 53 deletions(-) create mode 100644 recipes-core/images/deploy-ovmf.inc delete mode 100644 recipes-devtools/ovmf-binaries/files/rules delete mode 100644 recipes-devtools/ovmf-binaries/ovmf-binaries_0.1.bb