public inbox for cip-dev@lists.cip-project.org
 help / color / mirror / Atom feed
From: quirin.gylstorff@siemens.com
To: cip-dev@lists.cip-project.org, ubely@ilbers.de
Subject: Re: [cip-dev] [isar-cip-core][PATCH 1/1] Deploy efibootguardx64.efi and bg_setenv from .deb package
Date: Mon, 14 Feb 2022 17:19:21 +0100	[thread overview]
Message-ID: <30ccc30f-e12a-5762-a27d-e44656c8d896@siemens.com> (raw)
In-Reply-To: <20220214094237.16369-2-ubely@ilbers.de>



On 2/14/22 10:42, Uladzimir Bely via lists.cip-project.org wrote:
> 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 <ubely@ilbers.de>
> ---
>   recipes-bsp/efibootguard/efibootguard_0.9-git+isar.bb  | 10 ++++++++--
>   .../efibootguard/files/debian/efibootguard.install     |  1 +
>   2 files changed, 9 insertions(+), 2 deletions(-)
> 
> diff --git a/recipes-bsp/efibootguard/efibootguard_0.9-git+isar.bb b/recipes-bsp/efibootguard/efibootguard_0.9-git+isar.bb
> index 2817e5b..2028ac6 100644
> --- a/recipes-bsp/efibootguard/efibootguard_0.9-git+isar.bb
> +++ b/recipes-bsp/efibootguard/efibootguard_0.9-git+isar.bb
> @@ -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
>   }



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

> diff --git a/recipes-bsp/efibootguard/files/debian/efibootguard.install b/recipes-bsp/efibootguard/files/debian/efibootguard.install
> index 8a8d9d3..d0c3ee3 100644
> --- a/recipes-bsp/efibootguard/files/debian/efibootguard.install
> +++ b/recipes-bsp/efibootguard/files/debian/efibootguard.install
> @@ -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: cip-dev+owner@lists.cip-project.org
> Unsubscribe: https://lists.cip-project.org/g/cip-dev/leave/8129121/1753640/1405269326/xyzzy [quirin.gylstorff@siemens.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 



      reply	other threads:[~2022-02-14 16:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-14  9:42 [isar-cip-core][PATCH 0/1] Deploy efibootguardx64.efi and bg_setenv from .deb package Uladzimir Bely
2022-02-14  9:42 ` [isar-cip-core][PATCH 1/1] " Uladzimir Bely
2022-02-14 16:19   ` quirin.gylstorff [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=30ccc30f-e12a-5762-a27d-e44656c8d896@siemens.com \
    --to=quirin.gylstorff@siemens.com \
    --cc=cip-dev@lists.cip-project.org \
    --cc=ubely@ilbers.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox