deleted file mode 100644
@@ -1,11 +0,0 @@
-Source: ${PN}
-Section: misc
-Priority: optional
-Standards-Version: 3.9.6
-Maintainer: ${MAINTAINER}
-Build-Depends: debhelper (>= 9), ${DEBIAN_BUILD_DEPENDS}
-
-Package: ${PN}
-Architecture: ${DPKG_ARCH}
-Depends: ${DEBIAN_DEPENDS}
-Description: ${DESCRIPTION}
new file mode 100644
@@ -0,0 +1,17 @@
+#!/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 $@
@@ -14,18 +14,22 @@ 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://control.tmpl"
+SRC_URI = "file://rules"
DEBIAN_BUILD_DEPENDS = "ovmf"
-TEMPLATE_FILES = "control.tmpl"
-TEMPLATE_VARS += "PN DEBIAN_DEPENDS MAINTAINER DESCRIPTION DPKG_ARCH DEBIAN_BUILD_DEPENDS"
SSTATETASKS = ""
-do_extract_ovmf() {
+do_install() {
+ install -v -d ${D}/var/share
+ touch ${D}/var/share/test
+}
+
+do_deploy() {
install -m 0755 -d ${DEPLOY_DIR_IMAGE}
- cp -r ${BUILDCHROOT_DIR}/usr/share/OVMF ${DEPLOY_DIR_IMAGE}
- chown $(id -u):$(id -g) ${DEPLOY_DIR_IMAGE}/OVMF
+ 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
+
-addtask do_extract_ovmf after do_install_builddeps before do_dpkg_build