diff mbox series

[isar-cip-core,v2] recipes-core/swupdate: Cleanup swupdate.inc

Message ID 20231219100858.1853427-1-Quirin.Gylstorff@siemens.com (mailing list archive)
State Accepted
Headers show
Series [isar-cip-core,v2] recipes-core/swupdate: Cleanup swupdate.inc | expand

Commit Message

Quirin Gylstorff Dec. 19, 2023, 10:08 a.m. UTC
From: Quirin Gylstorff <quirin.gylstorff@siemens.com>

As software loads the bootloader libraries dynamically it is no longer
necessary to set the build loader with BUILD_PROFILES.

Also add PROVIDES for the additional packages swupdate provides.

The profile 'pkg.swupdate.nosigning' is automatically set if signing is
not set to `1`.

Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
---
Changes v2:
 - cleanup 2021.12 for debian buster
 - move cross and nocheck to swupdate.inc
 - move DEB_BUILD_PROFILES pkg.swupdate.suricatta* back to swupdate_2023.05
   as the apply only to this version

 recipes-core/swupdate/swupdate.inc            | 21 +++++++++++--------
 .../swupdate/swupdate_2021.11-1+debian-gbp.bb | 11 ----------
 recipes-core/swupdate/swupdate_2023.05.bb     | 10 ---------
 3 files changed, 12 insertions(+), 30 deletions(-)

Comments

Quirin Gylstorff Jan. 12, 2024, 10:34 a.m. UTC | #1
@jan, ping

On 12/19/23 11:08, Quirin Gylstorff via lists.cip-project.org wrote:
> From: Quirin Gylstorff <quirin.gylstorff@siemens.com>
> 
> As software loads the bootloader libraries dynamically it is no longer
> necessary to set the build loader with BUILD_PROFILES.
> 
> Also add PROVIDES for the additional packages swupdate provides.
> 
> The profile 'pkg.swupdate.nosigning' is automatically set if signing is
> not set to `1`.
> 
> Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
> ---
> Changes v2:
>   - cleanup 2021.12 for debian buster
>   - move cross and nocheck to swupdate.inc
>   - move DEB_BUILD_PROFILES pkg.swupdate.suricatta* back to swupdate_2023.05
>     as the apply only to this version
> 
>   recipes-core/swupdate/swupdate.inc            | 21 +++++++++++--------
>   .../swupdate/swupdate_2021.11-1+debian-gbp.bb | 11 ----------
>   recipes-core/swupdate/swupdate_2023.05.bb     | 10 ---------
>   3 files changed, 12 insertions(+), 30 deletions(-)
> 
> diff --git a/recipes-core/swupdate/swupdate.inc b/recipes-core/swupdate/swupdate.inc
> index e5e7282..cb1716b 100644
> --- a/recipes-core/swupdate/swupdate.inc
> +++ b/recipes-core/swupdate/swupdate.inc
> @@ -1,7 +1,7 @@
>   #
>   # CIP Core, generic profile
>   #
> -# Copyright (c) Siemens AG, 2021-2022
> +# Copyright (c) Siemens AG, 2021-2023
>   #
>   # Authors:
>   #  Quirin Gylstorff <quirin.gylstorff@siemens.com>
> @@ -13,15 +13,10 @@ HOMEPAGE= "https://github.com/sbabic/swupdate"
>   LICENSE = "GPL-2.0"
>   LIC_FILES_CHKSUM = "file://${LAYERDIR_isar}/licenses/COPYING.GPLv2;md5=751419260aa954499f7abaabaa882bbe"
>   
> -def get_bootloader_build_profile(d):
> -    bootloader = d.getVar("SWUPDATE_BOOTLOADER") or ""
> -    if bootloader == "efibootguard":
> -        return "pkg.swupdate.efibootguard"
> -    if bootloader == "u-boot":
> -        return "pkg.swupdate.uboot"
> -    return ""
> +PROVIDES += "libswupdate-dev"
> +PROVIDES += "libswupdate0.1"
> +PROVIDES += "lua-swupdate"
>   
> -DEB_BUILD_PROFILES += "${@get_bootloader_build_profile(d)}"
>   
>   def get_bootloader_dependencies(d):
>       bootloader = d.getVar("SWUPDATE_BOOTLOADER") or ""
> @@ -37,6 +32,14 @@ def get_bootloader_dependencies(d):
>   DEPENDS += "${@get_bootloader_dependencies(d)}"
>   DEPENDS += "${@bb.utils.contains('DEB_BUILD_PROFILES', 'mtd', 'mtd-utils', '', d)}"
>   
> +DEB_BUILD_PROFILES += "${@'pkg.swupdate.nosigning' if not d.getVar('SWU_SIGNED') == '1' else ''}"
> +
> +# deactivate hardware compability for simple a/b rootfs update
> +DEB_BUILD_PROFILES += "pkg.swupdate.nohwcompat"
> +
> +# add cross build and deactivate testing for arm based builds
> +DEB_BUILD_PROFILES += "cross nocheck"
> +
>   python do_check_bootloader () {
>       bootloader = d.getVar("SWUPDATE_BOOTLOADER") or "None"
>       if not bootloader in ["efibootguard", "u-boot"]:
> diff --git a/recipes-core/swupdate/swupdate_2021.11-1+debian-gbp.bb b/recipes-core/swupdate/swupdate_2021.11-1+debian-gbp.bb
> index 8f7a97d..0f91d5e 100644
> --- a/recipes-core/swupdate/swupdate_2021.11-1+debian-gbp.bb
> +++ b/recipes-core/swupdate/swupdate_2021.11-1+debian-gbp.bb
> @@ -27,17 +27,6 @@ SRC_URI += "file://0001-debian-Remove-SWUpdate-USB-service-and-Udev-rules.patch
>               file://0004-debian-rules-Add-option-to-disable-webserver.patch \
>               file://0005-debian-Add-patch-to-fix-bootloader_env_get-for-EBG.patch"
>   
> -# end patching for dm-verity based images
> -
> -# The option: "pkg.swupdate.nosigning" disables the required signing
> -# of update binaries
> -# DEB_BUILD_PROFILES += "pkg.swupdate.nosigning"
> -
> -# deactivate hardware compability for simple a/b rootfs update
> -DEB_BUILD_PROFILES += "pkg.swupdate.nohwcompat"
> -
> -# add cross build and deactivate testing for arm based builds
> -DEB_BUILD_PROFILES += "cross nocheck"
>   # If the luahandler shall be embedded into the swupdate binary
>   # include the following lines.
>   # DEPENDS += "swupdate-handlers"
> diff --git a/recipes-core/swupdate/swupdate_2023.05.bb b/recipes-core/swupdate/swupdate_2023.05.bb
> index 77b7431..d1fe1fa 100644
> --- a/recipes-core/swupdate/swupdate_2023.05.bb
> +++ b/recipes-core/swupdate/swupdate_2023.05.bb
> @@ -31,13 +31,6 @@ SRC_URI += "file://0001-d-rules-Add-seperate-build_profile-option-for-delta-.pat
>               file://0003-d-rules-Add-option-to-enable-suricatta_wfx.patch"
>   SRC_URI:append:bullseye = " file://0004-d-swupdate-www.install-Fix-path-for-debian-bullseye.patch"
>   
> -# The option: "pkg.swupdate.nosigning" disables the required signing
> -# of update binaries
> -# DEB_BUILD_PROFILES += "pkg.swupdate.nosigning"
> -
> -# deactivate hardware compability for simple a/b rootfs update
> -DEB_BUILD_PROFILES += "pkg.swupdate.nohwcompat"
> -
>   # suricatta wfx requires suricatta lua and the dependency
>   # is not set automatically
>   DEB_BUILD_PROFILES += "pkg.swupdate.suricattalua"
> @@ -48,9 +41,6 @@ DEB_BUILD_PROFILES += "pkg.swupdate.suricattawfx"
>   # with cross compile we have a unsat-dependency to dh-nodejs on arm/arm64
>   ISAR_CROSS_COMPILE:bullseye = "0"
>   
> -# add cross build and deactivate testing for arm based builds
> -DEB_BUILD_PROFILES += "cross nocheck"
> -
>   # use backport build profile for bullseye
>   DEB_BUILD_PROFILES:append:bullseye = " pkg.swupdate.bpo"
>   
> 
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#14135): https://lists.cip-project.org/g/cip-dev/message/14135
> Mute This Topic: https://lists.cip-project.org/mt/103260154/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]
> -=-=-=-=-=-=-=-=-=-=-=-
>
Jan Kiszka Jan. 12, 2024, 6:50 p.m. UTC | #2
On 12.01.24 11:34, Gylstorff Quirin wrote:
> @jan, ping
> 

Sorry, misclassified as "changes requested" in patchwork. Will have a
look next week.

Jan

> On 12/19/23 11:08, Quirin Gylstorff via lists.cip-project.org wrote:
>> From: Quirin Gylstorff <quirin.gylstorff@siemens.com>
>>
>> As software loads the bootloader libraries dynamically it is no longer
>> necessary to set the build loader with BUILD_PROFILES.
>>
>> Also add PROVIDES for the additional packages swupdate provides.
>>
>> The profile 'pkg.swupdate.nosigning' is automatically set if signing is
>> not set to `1`.
>>
>> Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
>> ---
>> Changes v2:
>>   - cleanup 2021.12 for debian buster
>>   - move cross and nocheck to swupdate.inc
>>   - move DEB_BUILD_PROFILES pkg.swupdate.suricatta* back to
>> swupdate_2023.05
>>     as the apply only to this version
>>
>>   recipes-core/swupdate/swupdate.inc            | 21 +++++++++++--------
>>   .../swupdate/swupdate_2021.11-1+debian-gbp.bb | 11 ----------
>>   recipes-core/swupdate/swupdate_2023.05.bb     | 10 ---------
>>   3 files changed, 12 insertions(+), 30 deletions(-)
>>
>> diff --git a/recipes-core/swupdate/swupdate.inc
>> b/recipes-core/swupdate/swupdate.inc
>> index e5e7282..cb1716b 100644
>> --- a/recipes-core/swupdate/swupdate.inc
>> +++ b/recipes-core/swupdate/swupdate.inc
>> @@ -1,7 +1,7 @@
>>   #
>>   # CIP Core, generic profile
>>   #
>> -# Copyright (c) Siemens AG, 2021-2022
>> +# Copyright (c) Siemens AG, 2021-2023
>>   #
>>   # Authors:
>>   #  Quirin Gylstorff <quirin.gylstorff@siemens.com>
>> @@ -13,15 +13,10 @@ HOMEPAGE= "https://github.com/sbabic/swupdate"
>>   LICENSE = "GPL-2.0"
>>   LIC_FILES_CHKSUM =
>> "file://${LAYERDIR_isar}/licenses/COPYING.GPLv2;md5=751419260aa954499f7abaabaa882bbe"
>>   -def get_bootloader_build_profile(d):
>> -    bootloader = d.getVar("SWUPDATE_BOOTLOADER") or ""
>> -    if bootloader == "efibootguard":
>> -        return "pkg.swupdate.efibootguard"
>> -    if bootloader == "u-boot":
>> -        return "pkg.swupdate.uboot"
>> -    return ""
>> +PROVIDES += "libswupdate-dev"
>> +PROVIDES += "libswupdate0.1"
>> +PROVIDES += "lua-swupdate"
>>   -DEB_BUILD_PROFILES += "${@get_bootloader_build_profile(d)}"
>>     def get_bootloader_dependencies(d):
>>       bootloader = d.getVar("SWUPDATE_BOOTLOADER") or ""
>> @@ -37,6 +32,14 @@ def get_bootloader_dependencies(d):
>>   DEPENDS += "${@get_bootloader_dependencies(d)}"
>>   DEPENDS += "${@bb.utils.contains('DEB_BUILD_PROFILES', 'mtd',
>> 'mtd-utils', '', d)}"
>>   +DEB_BUILD_PROFILES += "${@'pkg.swupdate.nosigning' if not
>> d.getVar('SWU_SIGNED') == '1' else ''}"
>> +
>> +# deactivate hardware compability for simple a/b rootfs update
>> +DEB_BUILD_PROFILES += "pkg.swupdate.nohwcompat"
>> +
>> +# add cross build and deactivate testing for arm based builds
>> +DEB_BUILD_PROFILES += "cross nocheck"
>> +
>>   python do_check_bootloader () {
>>       bootloader = d.getVar("SWUPDATE_BOOTLOADER") or "None"
>>       if not bootloader in ["efibootguard", "u-boot"]:
>> diff --git a/recipes-core/swupdate/swupdate_2021.11-1+debian-gbp.bb
>> b/recipes-core/swupdate/swupdate_2021.11-1+debian-gbp.bb
>> index 8f7a97d..0f91d5e 100644
>> --- a/recipes-core/swupdate/swupdate_2021.11-1+debian-gbp.bb
>> +++ b/recipes-core/swupdate/swupdate_2021.11-1+debian-gbp.bb
>> @@ -27,17 +27,6 @@ SRC_URI +=
>> "file://0001-debian-Remove-SWUpdate-USB-service-and-Udev-rules.patch
>>              
>> file://0004-debian-rules-Add-option-to-disable-webserver.patch \
>>              
>> file://0005-debian-Add-patch-to-fix-bootloader_env_get-for-EBG.patch"
>>   -# end patching for dm-verity based images
>> -
>> -# The option: "pkg.swupdate.nosigning" disables the required signing
>> -# of update binaries
>> -# DEB_BUILD_PROFILES += "pkg.swupdate.nosigning"
>> -
>> -# deactivate hardware compability for simple a/b rootfs update
>> -DEB_BUILD_PROFILES += "pkg.swupdate.nohwcompat"
>> -
>> -# add cross build and deactivate testing for arm based builds
>> -DEB_BUILD_PROFILES += "cross nocheck"
>>   # If the luahandler shall be embedded into the swupdate binary
>>   # include the following lines.
>>   # DEPENDS += "swupdate-handlers"
>> diff --git a/recipes-core/swupdate/swupdate_2023.05.bb
>> b/recipes-core/swupdate/swupdate_2023.05.bb
>> index 77b7431..d1fe1fa 100644
>> --- a/recipes-core/swupdate/swupdate_2023.05.bb
>> +++ b/recipes-core/swupdate/swupdate_2023.05.bb
>> @@ -31,13 +31,6 @@ SRC_URI +=
>> "file://0001-d-rules-Add-seperate-build_profile-option-for-delta-.pat
>>              
>> file://0003-d-rules-Add-option-to-enable-suricatta_wfx.patch"
>>   SRC_URI:append:bullseye = "
>> file://0004-d-swupdate-www.install-Fix-path-for-debian-bullseye.patch"
>>   -# The option: "pkg.swupdate.nosigning" disables the required signing
>> -# of update binaries
>> -# DEB_BUILD_PROFILES += "pkg.swupdate.nosigning"
>> -
>> -# deactivate hardware compability for simple a/b rootfs update
>> -DEB_BUILD_PROFILES += "pkg.swupdate.nohwcompat"
>> -
>>   # suricatta wfx requires suricatta lua and the dependency
>>   # is not set automatically
>>   DEB_BUILD_PROFILES += "pkg.swupdate.suricattalua"
>> @@ -48,9 +41,6 @@ DEB_BUILD_PROFILES += "pkg.swupdate.suricattawfx"
>>   # with cross compile we have a unsat-dependency to dh-nodejs on
>> arm/arm64
>>   ISAR_CROSS_COMPILE:bullseye = "0"
>>   -# add cross build and deactivate testing for arm based builds
>> -DEB_BUILD_PROFILES += "cross nocheck"
>> -
>>   # use backport build profile for bullseye
>>   DEB_BUILD_PROFILES:append:bullseye = " pkg.swupdate.bpo"
>>  
>>
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>> View/Reply Online (#14135):
>> https://lists.cip-project.org/g/cip-dev/message/14135
>> Mute This Topic: https://lists.cip-project.org/mt/103260154/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]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>
Jan Kiszka Jan. 15, 2024, 8:23 a.m. UTC | #3
On 19.12.23 11:08, Quirin Gylstorff wrote:
> From: Quirin Gylstorff <quirin.gylstorff@siemens.com>
> 
> As software loads the bootloader libraries dynamically it is no longer
> necessary to set the build loader with BUILD_PROFILES.
> 
> Also add PROVIDES for the additional packages swupdate provides.
> 
> The profile 'pkg.swupdate.nosigning' is automatically set if signing is
> not set to `1`.
> 
> Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
> ---
> Changes v2:
>  - cleanup 2021.12 for debian buster
>  - move cross and nocheck to swupdate.inc
>  - move DEB_BUILD_PROFILES pkg.swupdate.suricatta* back to swupdate_2023.05
>    as the apply only to this version
> 
>  recipes-core/swupdate/swupdate.inc            | 21 +++++++++++--------
>  .../swupdate/swupdate_2021.11-1+debian-gbp.bb | 11 ----------
>  recipes-core/swupdate/swupdate_2023.05.bb     | 10 ---------
>  3 files changed, 12 insertions(+), 30 deletions(-)
> 
> diff --git a/recipes-core/swupdate/swupdate.inc b/recipes-core/swupdate/swupdate.inc
> index e5e7282..cb1716b 100644
> --- a/recipes-core/swupdate/swupdate.inc
> +++ b/recipes-core/swupdate/swupdate.inc
> @@ -1,7 +1,7 @@
>  #
>  # CIP Core, generic profile
>  #
> -# Copyright (c) Siemens AG, 2021-2022
> +# Copyright (c) Siemens AG, 2021-2023
>  #
>  # Authors:
>  #  Quirin Gylstorff <quirin.gylstorff@siemens.com>
> @@ -13,15 +13,10 @@ HOMEPAGE= "https://github.com/sbabic/swupdate"
>  LICENSE = "GPL-2.0"
>  LIC_FILES_CHKSUM = "file://${LAYERDIR_isar}/licenses/COPYING.GPLv2;md5=751419260aa954499f7abaabaa882bbe"
>  
> -def get_bootloader_build_profile(d):
> -    bootloader = d.getVar("SWUPDATE_BOOTLOADER") or ""
> -    if bootloader == "efibootguard":
> -        return "pkg.swupdate.efibootguard"
> -    if bootloader == "u-boot":
> -        return "pkg.swupdate.uboot"
> -    return ""
> +PROVIDES += "libswupdate-dev"
> +PROVIDES += "libswupdate0.1"
> +PROVIDES += "lua-swupdate"
>  
> -DEB_BUILD_PROFILES += "${@get_bootloader_build_profile(d)}"
>  
>  def get_bootloader_dependencies(d):
>      bootloader = d.getVar("SWUPDATE_BOOTLOADER") or ""
> @@ -37,6 +32,14 @@ def get_bootloader_dependencies(d):
>  DEPENDS += "${@get_bootloader_dependencies(d)}"
>  DEPENDS += "${@bb.utils.contains('DEB_BUILD_PROFILES', 'mtd', 'mtd-utils', '', d)}"
>  
> +DEB_BUILD_PROFILES += "${@'pkg.swupdate.nosigning' if not d.getVar('SWU_SIGNED') == '1' else ''}"
> +
> +# deactivate hardware compability for simple a/b rootfs update
> +DEB_BUILD_PROFILES += "pkg.swupdate.nohwcompat"
> +
> +# add cross build and deactivate testing for arm based builds
> +DEB_BUILD_PROFILES += "cross nocheck"
> +
>  python do_check_bootloader () {
>      bootloader = d.getVar("SWUPDATE_BOOTLOADER") or "None"
>      if not bootloader in ["efibootguard", "u-boot"]:
> diff --git a/recipes-core/swupdate/swupdate_2021.11-1+debian-gbp.bb b/recipes-core/swupdate/swupdate_2021.11-1+debian-gbp.bb
> index 8f7a97d..0f91d5e 100644
> --- a/recipes-core/swupdate/swupdate_2021.11-1+debian-gbp.bb
> +++ b/recipes-core/swupdate/swupdate_2021.11-1+debian-gbp.bb
> @@ -27,17 +27,6 @@ SRC_URI += "file://0001-debian-Remove-SWUpdate-USB-service-and-Udev-rules.patch
>              file://0004-debian-rules-Add-option-to-disable-webserver.patch \
>              file://0005-debian-Add-patch-to-fix-bootloader_env_get-for-EBG.patch"
>  
> -# end patching for dm-verity based images
> -
> -# The option: "pkg.swupdate.nosigning" disables the required signing
> -# of update binaries
> -# DEB_BUILD_PROFILES += "pkg.swupdate.nosigning"
> -
> -# deactivate hardware compability for simple a/b rootfs update
> -DEB_BUILD_PROFILES += "pkg.swupdate.nohwcompat"
> -
> -# add cross build and deactivate testing for arm based builds
> -DEB_BUILD_PROFILES += "cross nocheck"
>  # If the luahandler shall be embedded into the swupdate binary
>  # include the following lines.
>  # DEPENDS += "swupdate-handlers"
> diff --git a/recipes-core/swupdate/swupdate_2023.05.bb b/recipes-core/swupdate/swupdate_2023.05.bb
> index 77b7431..d1fe1fa 100644
> --- a/recipes-core/swupdate/swupdate_2023.05.bb
> +++ b/recipes-core/swupdate/swupdate_2023.05.bb
> @@ -31,13 +31,6 @@ SRC_URI += "file://0001-d-rules-Add-seperate-build_profile-option-for-delta-.pat
>              file://0003-d-rules-Add-option-to-enable-suricatta_wfx.patch"
>  SRC_URI:append:bullseye = " file://0004-d-swupdate-www.install-Fix-path-for-debian-bullseye.patch"
>  
> -# The option: "pkg.swupdate.nosigning" disables the required signing
> -# of update binaries
> -# DEB_BUILD_PROFILES += "pkg.swupdate.nosigning"
> -
> -# deactivate hardware compability for simple a/b rootfs update
> -DEB_BUILD_PROFILES += "pkg.swupdate.nohwcompat"
> -
>  # suricatta wfx requires suricatta lua and the dependency
>  # is not set automatically
>  DEB_BUILD_PROFILES += "pkg.swupdate.suricattalua"
> @@ -48,9 +41,6 @@ DEB_BUILD_PROFILES += "pkg.swupdate.suricattawfx"
>  # with cross compile we have a unsat-dependency to dh-nodejs on arm/arm64
>  ISAR_CROSS_COMPILE:bullseye = "0"
>  
> -# add cross build and deactivate testing for arm based builds
> -DEB_BUILD_PROFILES += "cross nocheck"
> -
>  # use backport build profile for bullseye
>  DEB_BUILD_PROFILES:append:bullseye = " pkg.swupdate.bpo"
>  

Thanks, applied.

Jan
diff mbox series

Patch

diff --git a/recipes-core/swupdate/swupdate.inc b/recipes-core/swupdate/swupdate.inc
index e5e7282..cb1716b 100644
--- a/recipes-core/swupdate/swupdate.inc
+++ b/recipes-core/swupdate/swupdate.inc
@@ -1,7 +1,7 @@ 
 #
 # CIP Core, generic profile
 #
-# Copyright (c) Siemens AG, 2021-2022
+# Copyright (c) Siemens AG, 2021-2023
 #
 # Authors:
 #  Quirin Gylstorff <quirin.gylstorff@siemens.com>
@@ -13,15 +13,10 @@  HOMEPAGE= "https://github.com/sbabic/swupdate"
 LICENSE = "GPL-2.0"
 LIC_FILES_CHKSUM = "file://${LAYERDIR_isar}/licenses/COPYING.GPLv2;md5=751419260aa954499f7abaabaa882bbe"
 
-def get_bootloader_build_profile(d):
-    bootloader = d.getVar("SWUPDATE_BOOTLOADER") or ""
-    if bootloader == "efibootguard":
-        return "pkg.swupdate.efibootguard"
-    if bootloader == "u-boot":
-        return "pkg.swupdate.uboot"
-    return ""
+PROVIDES += "libswupdate-dev"
+PROVIDES += "libswupdate0.1"
+PROVIDES += "lua-swupdate"
 
-DEB_BUILD_PROFILES += "${@get_bootloader_build_profile(d)}"
 
 def get_bootloader_dependencies(d):
     bootloader = d.getVar("SWUPDATE_BOOTLOADER") or ""
@@ -37,6 +32,14 @@  def get_bootloader_dependencies(d):
 DEPENDS += "${@get_bootloader_dependencies(d)}"
 DEPENDS += "${@bb.utils.contains('DEB_BUILD_PROFILES', 'mtd', 'mtd-utils', '', d)}"
 
+DEB_BUILD_PROFILES += "${@'pkg.swupdate.nosigning' if not d.getVar('SWU_SIGNED') == '1' else ''}"
+
+# deactivate hardware compability for simple a/b rootfs update
+DEB_BUILD_PROFILES += "pkg.swupdate.nohwcompat"
+
+# add cross build and deactivate testing for arm based builds
+DEB_BUILD_PROFILES += "cross nocheck"
+
 python do_check_bootloader () {
     bootloader = d.getVar("SWUPDATE_BOOTLOADER") or "None"
     if not bootloader in ["efibootguard", "u-boot"]:
diff --git a/recipes-core/swupdate/swupdate_2021.11-1+debian-gbp.bb b/recipes-core/swupdate/swupdate_2021.11-1+debian-gbp.bb
index 8f7a97d..0f91d5e 100644
--- a/recipes-core/swupdate/swupdate_2021.11-1+debian-gbp.bb
+++ b/recipes-core/swupdate/swupdate_2021.11-1+debian-gbp.bb
@@ -27,17 +27,6 @@  SRC_URI += "file://0001-debian-Remove-SWUpdate-USB-service-and-Udev-rules.patch
             file://0004-debian-rules-Add-option-to-disable-webserver.patch \
             file://0005-debian-Add-patch-to-fix-bootloader_env_get-for-EBG.patch"
 
-# end patching for dm-verity based images
-
-# The option: "pkg.swupdate.nosigning" disables the required signing
-# of update binaries
-# DEB_BUILD_PROFILES += "pkg.swupdate.nosigning"
-
-# deactivate hardware compability for simple a/b rootfs update
-DEB_BUILD_PROFILES += "pkg.swupdate.nohwcompat"
-
-# add cross build and deactivate testing for arm based builds
-DEB_BUILD_PROFILES += "cross nocheck"
 # If the luahandler shall be embedded into the swupdate binary
 # include the following lines.
 # DEPENDS += "swupdate-handlers"
diff --git a/recipes-core/swupdate/swupdate_2023.05.bb b/recipes-core/swupdate/swupdate_2023.05.bb
index 77b7431..d1fe1fa 100644
--- a/recipes-core/swupdate/swupdate_2023.05.bb
+++ b/recipes-core/swupdate/swupdate_2023.05.bb
@@ -31,13 +31,6 @@  SRC_URI += "file://0001-d-rules-Add-seperate-build_profile-option-for-delta-.pat
             file://0003-d-rules-Add-option-to-enable-suricatta_wfx.patch"
 SRC_URI:append:bullseye = " file://0004-d-swupdate-www.install-Fix-path-for-debian-bullseye.patch"
 
-# The option: "pkg.swupdate.nosigning" disables the required signing
-# of update binaries
-# DEB_BUILD_PROFILES += "pkg.swupdate.nosigning"
-
-# deactivate hardware compability for simple a/b rootfs update
-DEB_BUILD_PROFILES += "pkg.swupdate.nohwcompat"
-
 # suricatta wfx requires suricatta lua and the dependency
 # is not set automatically
 DEB_BUILD_PROFILES += "pkg.swupdate.suricattalua"
@@ -48,9 +41,6 @@  DEB_BUILD_PROFILES += "pkg.swupdate.suricattawfx"
 # with cross compile we have a unsat-dependency to dh-nodejs on arm/arm64
 ISAR_CROSS_COMPILE:bullseye = "0"
 
-# add cross build and deactivate testing for arm based builds
-DEB_BUILD_PROFILES += "cross nocheck"
-
 # use backport build profile for bullseye
 DEB_BUILD_PROFILES:append:bullseye = " pkg.swupdate.bpo"