[v2] libubootenv: Update to 0.3.5

Message ID 20240108075441.2753541-1-Quirin.Gylstorff@siemens.com
State Accepted, archived
Headers show
Series [v2] libubootenv: Update to 0.3.5 | expand

Commit Message

Quirin Gylstorff Jan. 8, 2024, 7:54 a.m. UTC
From: Quirin Gylstorff <quirin.gylstorff@siemens.com>

The version is in Debian Testing upstream.

According to the patch notes[1],[2], following changes are added:
   - 0.3.5 release notes:

    Fix slowness on SPI flash
    Fixes validating Env flags
    Feature: get U-Boot namespace from DT
    Feature: specify UBI volumes from MTD path
  - 0.3.4 release notes:

    Fixes
    Add namespace for multiple environment
    Add new config format based on YAML

Also SWUpdate 2023.12 requires the symbol libuboot_get_namespace,
provided by this version, unconditionally

[1]: https://github.com/sbabic/libubootenv/releases/tag/v0.3.5
[2]: https://github.com/sbabic/libubootenv/releases/tag/v0.3.4

Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
---
 ...ootenv_0.3-3.bb => libubootenv_0.3.5-0.1.bb} | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)
 rename meta/recipes-bsp/libubootenv/{libubootenv_0.3-3.bb => libubootenv_0.3.5-0.1.bb} (65%)

Comments

Uladzimir Bely Jan. 9, 2024, 8:12 a.m. UTC | #1
On Mon, 2024-01-08 at 08:54 +0100, 'Quirin Gylstorff' via isar-users
wrote:
> From: Quirin Gylstorff <quirin.gylstorff@siemens.com>
> 
> The version is in Debian Testing upstream.
> 
> According to the patch notes[1],[2], following changes are added:
>    - 0.3.5 release notes:
> 
>     Fix slowness on SPI flash
>     Fixes validating Env flags
>     Feature: get U-Boot namespace from DT
>     Feature: specify UBI volumes from MTD path
>   - 0.3.4 release notes:
> 
>     Fixes
>     Add namespace for multiple environment
>     Add new config format based on YAML
> 
> Also SWUpdate 2023.12 requires the symbol libuboot_get_namespace,
> provided by this version, unconditionally
> 
> [1]: https://github.com/sbabic/libubootenv/releases/tag/v0.3.5
> [2]: https://github.com/sbabic/libubootenv/releases/tag/v0.3.4
> 
> Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
> ---
>  ...ootenv_0.3-3.bb => libubootenv_0.3.5-0.1.bb} | 17 ++++++++++++---
> --
>  1 file changed, 12 insertions(+), 5 deletions(-)

Applied to next, thanks.

Patch

diff --git a/meta/recipes-bsp/libubootenv/libubootenv_0.3-3.bb b/meta/recipes-bsp/libubootenv/libubootenv_0.3.5-0.1.bb
similarity index 65%
rename from meta/recipes-bsp/libubootenv/libubootenv_0.3-3.bb
rename to meta/recipes-bsp/libubootenv/libubootenv_0.3.5-0.1.bb
index dee19c0b..08eab73c 100644
--- a/meta/recipes-bsp/libubootenv/libubootenv_0.3-3.bb
+++ b/meta/recipes-bsp/libubootenv/libubootenv_0.3.5-0.1.bb
@@ -12,11 +12,18 @@  LIC_FILES_CHKSUM = "file://${LAYERDIR_isar}/licenses/COPYING.GPLv2;md5=751419260
 
 PROVIDES = "libubootenv-tool libubootenv-dev libubootenv-doc libubootenv0.1"
 
-inherit dpkg-gbp
+inherit dpkg
 
-SRC_URI = "git://salsa.debian.org/debian/libubootenv.git;protocol=https;branch=master"
-SRCREV = "a1a3504e5cda1883928a8747a0bedc56afff6910"
-
-S = "${WORKDIR}/git"
+SRC_URI = "git://salsa.debian.org/debian/libubootenv.git;protocol=https;branch=master;destsuffix=${P}"
+SRCREV = "32dcabeea9ed5342a2d1bb254bb4839e2e68ee5e"
 
 DEB_BUILD_OPTIONS += "nocheck"
+
+
+CHANGELOG_V ?= "${PV}+isar-${SRCREV}"
+
+do_prepare_build() {
+    deb_add_changelog
+    cd ${WORKDIR}
+    tar cJf ${PN}_${PV}+isar.orig.tar.xz --exclude=.git --exclude=debian ${P}
+}