From: Quirin Gylstorff If cross compiling should be used the configuration path for pkgconfig needs to be adapted for the target architecture. Add pkg-config as build dependency. Fix typo in swupdate.bb. Signed-off-by: Quirin Gylstorff --- classes/swupdate-config.bbclass | 2 +- recipes-core/swupdate/files/debian/rules.tmpl | 1 + recipes-core/swupdate/swupdate.bb | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/classes/swupdate-config.bbclass b/classes/swupdate-config.bbclass index 42f0654..208d240 100644 --- a/classes/swupdate-config.bbclass +++ b/classes/swupdate-config.bbclass @@ -15,7 +15,7 @@ inherit kconfig-snippets BUILD_DEB_DEPENDS = " \ zlib1g-dev, debhelper, libconfig-dev, libarchive-dev, \ - python-sphinx:native, dh-systemd, libsystemd-dev, libssl-dev" + python-sphinx:native, dh-systemd, libsystemd-dev, libssl-dev, pkg-config" KFEATURE_lua = "" KFEATURE_lua[BUILD_DEB_DEPENDS] = "liblua5.3-dev" diff --git a/recipes-core/swupdate/files/debian/rules.tmpl b/recipes-core/swupdate/files/debian/rules.tmpl index 54cca57..ec83a88 100755 --- a/recipes-core/swupdate/files/debian/rules.tmpl +++ b/recipes-core/swupdate/files/debian/rules.tmpl @@ -2,6 +2,7 @@ ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) export CROSS_COMPILE=$(DEB_HOST_GNU_TYPE)- +export PKG_CONFIG_PATH=/usr/lib/$(DEB_HOST_GNU_TYPE)/pkgconfig export CC=$(DEB_HOST_GNU_TYPE)-gcc export LD=$(DEB_HOST_GNU_TYPE)-gcc endif diff --git a/recipes-core/swupdate/swupdate.bb b/recipes-core/swupdate/swupdate.bb index dd02cc2..b4d64fe 100644 --- a/recipes-core/swupdate/swupdate.bb +++ b/recipes-core/swupdate/swupdate.bb @@ -8,7 +8,7 @@ # # SPDX-License-Identifier: MIT -hDESCRIPTION = "swupdate utility for software updates" +DESCRIPTION = "swupdate utility for software updates" HOMEPAGE= "https://github.com/sbabic/swupdate" LICENSE = "GPL-2.0" LIC_FILES_CHKSUM = "file://${LAYERDIR_isar}/licenses/COPYING.GPLv2;md5=751419260aa954499f7abaabaa882bbe" -- 2.20.1