From patchwork Mon Jan 18 15:06:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quirin Gylstorff X-Patchwork-Id: 12027509 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D4226C433E0 for ; Mon, 18 Jan 2021 15:06:31 +0000 (UTC) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4E30222C7E for ; Mon, 18 Jan 2021 15:06:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4E30222C7E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=siemens.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=bounce+64572+6101+4520388+8129055@lists.cip-project.org X-Received: by 127.0.0.2 with SMTP id 0oByYY4521723x0s9Ugm4uso; Mon, 18 Jan 2021 07:06:30 -0800 X-Received: from goliath.siemens.de (goliath.siemens.de [192.35.17.28]) by mx.groups.io with SMTP id smtpd.web10.34689.1610982389236720402 for ; Mon, 18 Jan 2021 07:06:30 -0800 X-Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id 10IF6RZI018946 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 18 Jan 2021 16:06:27 +0100 X-Received: from md2dvrtc.fritz.box ([139.22.46.47]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 10IF6PYT021968; Mon, 18 Jan 2021 16:06:26 +0100 From: "Quirin Gylstorff" To: cip-dev@lists.cip-project.org, Jan.Kiszka@siemens.com Cc: Quirin Gylstorff Subject: [cip-dev][isar-cip-core][PATCH v2 1/4] swupdate: enable cross-compile by setting PKG_CONFIG_PATH Date: Mon, 18 Jan 2021 16:06:22 +0100 Message-Id: <20210118150625.20155-2-Quirin.Gylstorff@siemens.com> In-Reply-To: <20210118150625.20155-1-Quirin.Gylstorff@siemens.com> References: <20210118150625.20155-1-Quirin.Gylstorff@siemens.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: cip-dev@lists.cip-project.org List-Id: Mailing-List: list cip-dev@lists.cip-project.org; contact cip-dev+owner@lists.cip-project.org Reply-To: cip-dev@lists.cip-project.org X-Gm-Message-State: nnHUttrcJhYdZMpu2AEygiuPx4520388AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.cip-project.org; q=dns/txt; s=20140610; t=1610982390; bh=brjjSJ2MOO4ztnMOh7rYyf1upowq/8sTj32PU/r/8vo=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=gteW5vuyAwboBke7oEO+RxUcdhpGe/NywcxPHFyzBZOav4xC03k8onZUVp/YjnPDJtP t4KeRz4+dJkvmXWOD2cZC7GMDb78FG8Cu/ICCpcOxUgkyWvMFtnVLdv4rCC0tnwUp+e3U 9HzS0mNOEFwqcDeojbl8B+PY3JRQ9gzbVR8= 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"