From patchwork Tue Nov 2 10:39:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinuvasan Arjunan X-Patchwork-Id: 12598433 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B352AC433EF for ; Tue, 2 Nov 2021 10:39:49 +0000 (UTC) Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com [68.232.141.98]) by mx.groups.io with SMTP id smtpd.web12.7431.1635849588644825808 for ; Tue, 02 Nov 2021 03:39:48 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: mentor.com, ip: 68.232.141.98, mailfrom: srinuvasan_a@mentor.com) IronPort-SDR: GiPSLgjVoINEcDIRCkjEhc9DZpPcmoa0kjMhhlXTwRPcJz5oVhZBsIVjLacZy66t3hqn6GILO4 +9o04dRjs+dZpx4DAqWBR/+XmIoeAj8CseHKIdhaqYLHBB+a2kQGTE9u6cNDePAYXU7BnePXG0 Fq7reS+0WxBkkt+rPCd5GQTGfLffiRQeQQujQB08xYyBRqgWjAqiXD+uaA90yTHeUV4Zkjl6vv KB0l5kjJ2lFahIWayqbXDufB6A/sisQKkgrDdaxu/qs8S4zj3wtk9Oy+FN8AKcJCmIcS7QpDrY mFw7c6vgMcCHo7RBdjMYOQCp X-IronPort-AV: E=Sophos;i="5.87,202,1631606400"; d="scan'208";a="67938003" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa2.mentor.iphmx.com with ESMTP; 02 Nov 2021 02:39:47 -0800 IronPort-SDR: zIP2YUaweyIJXnsGwhT1u84DIxZfFg+9BzSr9mS4mzjpfFF0d5yx0EqODoxWsjJP5zOdML0f7V whKEcwaT6Ju1abyS38PT+zPFngNghO9BM2gBpeXqA5SnVjGu4TtjikEnW0wCloxKaNPYK+eGtM 6LPkNVyS1wAzlvuYuO6535Hj1wTdTqJq85J8RzQXHVUfJlWVbfsF58nGqH50ytsgyx+5pYRMCw FQVOSgQibUdlGrPRN5IMB6ga/0cVIJ5ZZ/HUt92jeSz4Hg93ky+ixWF3VzqFBbpMxhT2S1ulJp e1k= From: Srinuvasan A To: CC: Srinuvasan A Subject: [PATCH] recipes-core/swupdate: Update the SRC_URI and SWUPDATE_BUILD_PROFILES append for buster Date: Tue, 2 Nov 2021 16:09:23 +0530 Message-ID: <20211102103923.648222-1-Srinuvasan_A@mentor.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-ClientProxiedBy: SVR-ORW-MBX-05.mgc.mentorg.com (147.34.90.205) To svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 02 Nov 2021 10:39:49 -0000 X-Groupsio-URL: https://lists.cip-project.org/g/cip-dev/message/6851 From: Srinuvasan A When we build the swupdate debian package for buster some build dependency packages are not available in stable buster repo, hence we created a patch in cip-core upstream for buster build, here we hardcoded the distro for buster build hence it is building fine in cip-core not the downstream layer, added the OVERRIDES for BASE_DISTRO_CODENAME to select the particular base distro. Signed-off-by: Srinuvasan A --- recipes-core/swupdate/swupdate.inc | 2 ++ recipes-core/swupdate/swupdate_2021.04-1+debian-gbp.bb | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/recipes-core/swupdate/swupdate.inc b/recipes-core/swupdate/swupdate.inc index a469587..191aa2b 100644 --- a/recipes-core/swupdate/swupdate.inc +++ b/recipes-core/swupdate/swupdate.inc @@ -13,6 +13,8 @@ HOMEPAGE= "https://github.com/sbabic/swupdate" LICENSE = "GPL-2.0" LIC_FILES_CHKSUM = "file://${LAYERDIR_isar}/licenses/COPYING.GPLv2;md5=751419260aa954499f7abaabaa882bbe" +OVERRIDES_append = ":${BASE_DISTRO_CODENAME}" + def get_bootloader_build_profile(d): bootloader = d.getVar("SWUPDATE_BOOTLOADER") or "" if bootloader == "efibootguard": diff --git a/recipes-core/swupdate/swupdate_2021.04-1+debian-gbp.bb b/recipes-core/swupdate/swupdate_2021.04-1+debian-gbp.bb index a451b55..e62230f 100644 --- a/recipes-core/swupdate/swupdate_2021.04-1+debian-gbp.bb +++ b/recipes-core/swupdate/swupdate_2021.04-1+debian-gbp.bb @@ -35,14 +35,14 @@ SWUPDATE_BUILD_PROFILES += "pkg.swupdate.nosigning pkg.swupdate.noencryption" # SWUPDATE_BUILD_PROFILES += "pkg.swupdate.embeddedlua" # modify for debian buster build -SRC_URI_append_cip-core-buster = " file://0009-debian-prepare-build-for-isar-debian-buster.patch" +SRC_URI_append_buster = " file://0009-debian-prepare-build-for-isar-debian-buster.patch" # disable documentation due to missing packages in debian buster # disable create filesystem due to missing symbols in debian buster # disable webserver due to missing symbols in debian buster -SWUPDATE_BUILD_PROFILES_append_cip-core-buster = " nodoc \ - pkg.swupdate.nocreatefs \ - pkg.swupdate.nowebserver " +SWUPDATE_BUILD_PROFILES_append_buster = " nodoc \ + pkg.swupdate.nocreatefs \ + pkg.swupdate.nowebserver " # In debian buster the git-compression defaults to gz and does not detect other # compression formats. GBP_EXTRA_OPTIONS += "--git-compression=xz"