[meta-swupdate,1/3] fix image generation when signing is enabled

Message ID 1504954145-19534-1-git-send-email-c.andersen@kostal.com
State Changes Requested
Headers show
Series
  • [meta-swupdate,1/3] fix image generation when signing is enabled
Related show

Commit Message

Andersen, Christian Sept. 9, 2017, 10:49 a.m.
When using signing openssl-native is required. Since pyro the sysroot
is deployed per recipe, so do_swuimage also requires
do_prepare_recipe_sysroot.

Signed-off-by: Christian Andersen <c.andersen@kostal.com>
---
 classes/swupdate.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stefano Babic Sept. 14, 2017, 7:45 a.m. | #1
On 09/09/2017 12:49, Christian Andersen wrote:
> When using signing openssl-native is required. Since pyro the sysroot
> is deployed per recipe, so do_swuimage also requires
> do_prepare_recipe_sysroot.
> 
> Signed-off-by: Christian Andersen <c.andersen@kostal.com>
> ---
>  classes/swupdate.bbclass | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/classes/swupdate.bbclass b/classes/swupdate.bbclass
> index 28297ca..5a2d963 100644
> --- a/classes/swupdate.bbclass
> +++ b/classes/swupdate.bbclass
> @@ -199,5 +199,5 @@ python do_swuimage () {
>  COMPRESSIONTYPES = ""
>  PACKAGE_ARCH = "${MACHINE_ARCH}"
>  
> -addtask do_swuimage after do_unpack before do_install
> +addtask do_swuimage after do_unpack after do_prepare_recipe_sysroot before do_install
>  addtask do_createlink after do_swuimage before do_install
> 

Reviewed-by: Stefano Babic <sbabic@denx.de>

Best regards,
Stefano Babic

Patch

diff --git a/classes/swupdate.bbclass b/classes/swupdate.bbclass
index 28297ca..5a2d963 100644
--- a/classes/swupdate.bbclass
+++ b/classes/swupdate.bbclass
@@ -199,5 +199,5 @@  python do_swuimage () {
 COMPRESSIONTYPES = ""
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-addtask do_swuimage after do_unpack before do_install
+addtask do_swuimage after do_unpack after do_prepare_recipe_sysroot before do_install
 addtask do_createlink after do_swuimage before do_install