From patchwork Fri Feb 16 08:07:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gylstorff Quirin X-Patchwork-Id: 13559676 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 9C692C48260 for ; Fri, 16 Feb 2024 08:08:58 +0000 (UTC) Received: from mta-65-228.siemens.flowmailer.net (mta-65-228.siemens.flowmailer.net [185.136.65.228]) by mx.groups.io with SMTP id smtpd.web11.14398.1708070934590758685 for ; Fri, 16 Feb 2024 00:08:56 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=Quirin.Gylstorff@siemens.com header.s=fm1 header.b=hbcY1PoE; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.65.228, mailfrom: fm-51332-20240216080850ad4039cc077ba6e637-grpvsk@rts-flowmailer.siemens.com) Received: by mta-65-228.siemens.flowmailer.net with ESMTPSA id 20240216080850ad4039cc077ba6e637 for ; Fri, 16 Feb 2024 09:08:50 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=Quirin.Gylstorff@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:References:In-Reply-To; bh=B+5OxU/5EHXHonSgLx82UNhWIoikErw1XMJjnhbp56Q=; b=hbcY1PoE4dqdLJx+Al6kab2aAygDJEuuk4YLh5p15Aupc8D+D0OEaydBv+exoeea17aPCG LLBZlo//pTklNjPjb4GXBTOsA3oah3qbFVDF0YoRnY65NYq7+xfYkoLSVesCTBMPF+IMcXMM 4bM9LJo+dzELNyReJe44xNcEyrXW8=; From: Quirin Gylstorff To: cip-dev@lists.cip-project.org, felix.moessbauer@siemens.com, jan.kiszka@siemens.com Subject: [cip-dev][isar-cip-core][PATCH v3 1/3] swupdate delete unused patch Date: Fri, 16 Feb 2024 09:07:13 +0100 Message-ID: <20240216080848.9146-2-Quirin.Gylstorff@siemens.com> In-Reply-To: <20240216080848.9146-1-Quirin.Gylstorff@siemens.com> References: <20240216080848.9146-1-Quirin.Gylstorff@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-51332:519-21489:flowmailer 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 ; Fri, 16 Feb 2024 08:08:58 -0000 X-Groupsio-URL: https://lists.cip-project.org/g/cip-dev/message/15010 From: Quirin Gylstorff Signed-off-by: Quirin Gylstorff --- ...tch-to-add-the-build-version-to-swup.patch | 94 ------------------- 1 file changed, 94 deletions(-) delete mode 100644 recipes-core/swupdate/files/0001-d-patches-Add-patch-to-add-the-build-version-to-swup.patch diff --git a/recipes-core/swupdate/files/0001-d-patches-Add-patch-to-add-the-build-version-to-swup.patch b/recipes-core/swupdate/files/0001-d-patches-Add-patch-to-add-the-build-version-to-swup.patch deleted file mode 100644 index efc584b..0000000 --- a/recipes-core/swupdate/files/0001-d-patches-Add-patch-to-add-the-build-version-to-swup.patch +++ /dev/null @@ -1,94 +0,0 @@ -From 48963be5c3cd33ed9f36db52130cbd1dda3ed007 Mon Sep 17 00:00:00 2001 -From: Quirin Gylstorff -Date: Fri, 16 Jun 2023 19:43:38 +0200 -Subject: [PATCH] d/patches: Add patch to add the build version to swupdate - -The build version is only set if build in a git repository -this patch allows to use the version information stored in -the Makefile. - -Signed-off-by: Quirin Gylstorff ---- - ...Set-version-if-git-returns-no-informa.diff | 46 +++++++++++++++++++ - debian/patches/series | 1 + - debian/rules | 2 + - 3 files changed, 49 insertions(+) - create mode 100644 debian/patches/Makefile.flags-Set-version-if-git-returns-no-informa.diff - -diff --git a/debian/patches/Makefile.flags-Set-version-if-git-returns-no-informa.diff b/debian/patches/Makefile.flags-Set-version-if-git-returns-no-informa.diff -new file mode 100644 -index 00000000..480b67f5 ---- /dev/null -+++ b/debian/patches/Makefile.flags-Set-version-if-git-returns-no-informa.diff -@@ -0,0 +1,46 @@ -+From 40b3d8036ba08da2cb0013f5fefd4736b25dca8e Mon Sep 17 00:00:00 2001 -+From: Quirin Gylstorff -+Date: Sat, 17 Jun 2023 17:56:18 +0200 -+Subject: [PATCH] Makefile.flags: Set version if git returns no information -+ -+This set the swupdate version if build in a non git environment. -+E.g. pristine-tar build or from a release tarball. -+ -+Also allows to set the EXTRAVERSION from the command line. -+ -+Signed-off-by: Quirin Gylstorff -+--- -+ Makefile | 2 +- -+ Makefile.flags | 3 +++ -+ 2 files changed, 4 insertions(+), 1 deletion(-) -+ -+diff --git a/Makefile b/Makefile -+index 9f6a33a6..56189688 100644 -+--- a/Makefile -++++ b/Makefile -+@@ -5,7 +5,7 @@ -+ VERSION = 2022 -+ PATCHLEVEL = 12 -+ SUBLEVEL = 0 -+-EXTRAVERSION = -++EXTRAVERSION ?= -+ NAME = -+ -+ IPCLIB_VERSION = 0.1 -+diff --git a/Makefile.flags b/Makefile.flags -+index 2bec8468..f69ab5e8 100644 -+--- a/Makefile.flags -++++ b/Makefile.flags -+@@ -7,6 +7,9 @@ -+ # ========================================================================== -+ SWU_DIR = $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) -+ SWU_VER = $(shell git -C $(SWU_DIR) describe --tags --always --dirty) -++ifeq (,$(SWU_VER)) -++ SWU_VER = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) -++endif -+ export SWU_VER -+ SKIP_STRIP ?= n -+ -+-- -+2.39.2 -+ -diff --git a/debian/patches/series b/debian/patches/series -index 5638bbf5..12324569 100644 ---- a/debian/patches/series -+++ b/debian/patches/series -@@ -1,3 +1,4 @@ - Link-config-to-swupdate-www-path.diff - Replace-Font-Awesome-5-with-Fork-Awesome.diff - use-gcc-compiler.diff -+Makefile.flags-Set-version-if-git-returns-no-informa.diff -diff --git a/debian/rules b/debian/rules -index 57da4ca7..f645cc6e 100755 ---- a/debian/rules -+++ b/debian/rules -@@ -17,6 +17,8 @@ export DH_WITH=--with lua - export HAVE_LUA=y - endif - -+DEB_CHANGELOG_VERSION := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p' | cut -d + -f 2) -+export EXTRAVERSION=($(DEB_CHANGELOG_VERSION)) - BU_SWU= - ifeq (linux,$(DEB_HOST_ARCH_OS)) - BU_SWU += -VBuilt-Using="$(shell dpkg-query -f '$${source:Package} (= $${source:Version}), ' -W libmtd-dev libubi-dev)" --- -2.39.2 -