Deploy efibootguardx64.efi and bg_setenv from .deb package
cover Deploy efibootguardx64.efi and bg_setenv from .deb package
This patchset allows to build efibootguardx64 package against upcoming sbuild patchset for Isar.
Additionally, deokit stuff could be moved to do_deploy() instead of currently used dpkg_runbuild_append().
Uladzimir Bely (1):
Deploy efibootguardx64.efi and bg_setenv from .deb package
recipes-bsp/efibootguard/efibootguard_0.9-git+isar.bb | 10 ++++++++-- .../efibootguard/files/debian/efibootguard.install | 1 + 2 files changed, 9 insertions(+), 2 deletions(-)
Signature · 1 line
2.20.1
PATCH 1/1 Deploy efibootguardx64.efi and bg_setenv from .deb package
This patch makes efibootguardx64.efi binary to be included in .deb package. Also, files are now deployed from .deb package, not from ${S} directory.
--- recipes-bsp/efibootguard/efibootguard_0.9-git+isar.bb | 10 ++++++++-- .../efibootguard/files/debian/efibootguard.install | 1 + 2 files changed, 9 insertions(+), 2 deletions(-)
recipes-bsp/efibootguard/efibootguard_0.9-git+isar.bb +8 -2
@@ -41,6 +41,12 @@ do_prepare_build() { dpkg_runbuild_append() { install -m 0755 -d ${DEPLOY_DIR_IMAGE} - install -m 0755 ${S}/efibootguardx64.efi ${DEPLOY_DIR_IMAGE}/bootx64.efi - install -m 0755 ${S}/bg_setenv ${DEPLOY_DIR_IMAGE}/bg_setenv + dpkg --fsys-tarfile ${WORKDIR}/${PN}_${PV}_${DISTRO_ARCH}.deb | \ + tar xOf - ./usr/lib/efibootguardx64.efi \ + > ${DEPLOY_DIR_IMAGE}/bootx64.efi + chmod 755 ${DEPLOY_DIR_IMAGE}/bootx64.efi + dpkg --fsys-tarfile ${WORKDIR}/${PN}_${PV}_${DISTRO_ARCH}.deb | \ + tar xOf - ./usr/bin/bg_setenv \ + > ${DEPLOY_DIR_IMAGE}/bg_setenv + chmod 755 ${DEPLOY_DIR_IMAGE}/bg_setenv }
recipes-bsp/efibootguard/files/debian/efibootguard.install +1 -0
@@ -1,2 +1,3 @@ bg_setenv usr/bin bg_printenv usr/bin +efibootguardx64.efi usr/lib
Signature · 1 line
2.20.1
Quoted 18 lines · Uladzimir Bely via lists.cip-project.org
This patch makes efibootguardx64.efi binary to be included in .deb package. Also, files are now deployed from .deb package, not from ${S} directory.
Signed-off-by Uladzimir Bely <[email protected]>--- recipes-bsp/efibootguard/efibootguard_0.9-git+isar.bb | 10 ++++++++-- .../efibootguard/files/debian/efibootguard.install | 1 + 2 files changed, 9 insertions(+), 2 deletions(-)recipes-bsp/efibootguard/efibootguard_0.9-git+isar.bb +0
-1@@ -41,6 +41,12 @@ do_prepare_build() { dpkg_runbuild_append() { install -m 0755 -d ${DEPLOY_DIR_IMAGE} - install -m 0755 ${S}/efibootguardx64.efi ${DEPLOY_DIR_IMAGE}/bootx64.efi
recipes-bsp/efibootguard/efibootguard_0.9-git+isar.bb do_prepare_build() { · line 52
Quoted 10 lines
recipes-bsp/efibootguard/efibootguard_0.9-git+isar.bb +8
-1- install -m 0755 ${S}/bg_setenv ${DEPLOY_DIR_IMAGE}/bg_setenv + dpkg --fsys-tarfile ${WORKDIR}/${PN}_${PV}_${DISTRO_ARCH}.deb | \ + tar xOf - ./usr/lib/efibootguardx64.efi \ + > ${DEPLOY_DIR_IMAGE}/bootx64.efi + chmod 755 ${DEPLOY_DIR_IMAGE}/bootx64.efi + dpkg --fsys-tarfile ${WORKDIR}/${PN}_${PV}_${DISTRO_ARCH}.deb | \ + tar xOf - ./usr/bin/bg_setenv \ + > ${DEPLOY_DIR_IMAGE}/bg_setenv + chmod 755 ${DEPLOY_DIR_IMAGE}/bg_setenv }
This only works if sstate is disabled. As the current sstate implementation does not execute any function if a package is already available.
If sstate is enabled the following error occurs:
``` ERROR: cip-core-image-1.0-r0 do_wic_image: Error executing a python function in exec_python_func() autogenerated: ```
I will send a fix to the list.
Quirin
Quoted 19 lines
recipes-bsp/efibootguard/files/debian/efibootguard.install +1
-1@@ -1,2 +1,3 @@ bg_setenv usr/bin bg_printenv usr/bin +efibootguardx64.efi usr/lib -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#7593): https://lists.cip-project.org/g/cip-dev/message/7593
Mute This Topic: https://lists.cip-project.org/mt/89132786/1753640
Group Owner: [email protected]
Unsubscribe: https://lists.cip-project.org/g/cip-dev/leave/8129121/1753640/1405269326/xyzzy [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-