From: "Quirin Gylstorff" <quirin.gylstorff@siemens.com>
To: cip-dev@lists.cip-project.org, jan.kiszka@siemens.com
Cc: Quirin Gylstorff <quirin.gylstorff@siemens.com>
Subject: [cip-dev][isar-cip-core][PATCH v3 1/4] swupdate: enable cross-compile by setting PKG_CONFIG_PATH
Date: Wed, 20 Jan 2021 09:34:40 +0100 [thread overview]
Message-ID: <20210120083443.8105-2-Quirin.Gylstorff@siemens.com> (raw)
In-Reply-To: <20210120083443.8105-1-Quirin.Gylstorff@siemens.com>
[-- Attachment #1: Type: text/plain, Size: 2094 bytes --]
From: Quirin Gylstorff <quirin.gylstorff@siemens.com>
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 <quirin.gylstorff@siemens.com>
---
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
[-- Attachment #2: Type: text/plain, Size: 420 bytes --]
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#6115): https://lists.cip-project.org/g/cip-dev/message/6115
Mute This Topic: https://lists.cip-project.org/mt/79974653/4520388
Group Owner: cip-dev+owner@lists.cip-project.org
Unsubscribe: https://lists.cip-project.org/g/cip-dev/leave/8129055/727948398/xyzzy [cip-dev@archiver.kernel.org]
-=-=-=-=-=-=-=-=-=-=-=-
next prev parent reply other threads:[~2021-01-20 8:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-20 8:34 [cip-dev][isar-cip-core][PATCH v3 0/4] Updates & Fixes Quirin Gylstorff
2021-01-20 8:34 ` Quirin Gylstorff [this message]
2021-01-20 8:34 ` [cip-dev][isar-cip-core][PATCH v3 2/4] swupdate: use libubootenv Quirin Gylstorff
2021-01-20 8:34 ` [cip-dev][isar-cip-core][PATCH v3 3/4] update linux kernels Quirin Gylstorff
2021-01-20 9:56 ` Jan Kiszka
2021-01-20 8:34 ` [cip-dev][isar-cip-core][PATCH v3 4/4] kas: update ISAR Quirin Gylstorff
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=20210120083443.8105-2-Quirin.Gylstorff@siemens.com \
--to=quirin.gylstorff@siemens.com \
--cc=cip-dev@lists.cip-project.org \
--cc=jan.kiszka@siemens.com \
/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;
as well as URLs for NNTP newsgroup(s).