Skip to content

[Backport scarthgap] updatehub: 2.1.6 -> 2.3.0 - #140

Merged
otavio merged 4 commits into
UpdateHub:scarthgapfrom
lucianogdittgen:backport-135-137-to-scarthgap
Oct 22, 2026
Merged

otavio merged 4 commits into
UpdateHub:scarthgapfrom
lucianogdittgen:backport-135-137-to-scarthgap

Conversation

@lucianogdittgen

Copy link
Copy Markdown
Contributor

Backport of #135 and #137 to scarthgap, bringing updatehub from 2.1.6 to 2.3.0.

Rust requirement

updatehub 2.2.1 and later require Rust 1.88 (edition 2024). OpenEmbedded-Core scarthgap ships Rust 1.75, so the first commit adds the scarthgap/rust branch of meta-lts-mixins (Rust 1.98.1, collection scarthgap-rust-mixin) to LAYERDEPENDS and documents it in the README. Builds using this branch must add that layer.

Commits

  1. conf/layer.conf: Depend on the meta-lts-mixins Rust layer (new)
  2. updatehub: 2.1.6 -> 2.2.1: cherry-pick of 74a08ad
  3. updatehub: 2.2.1 -> 2.3.0: cherry-pick of 029a052
  4. updatehub: Fix the PACKAGECONFIG parameter to backward-compatibility: cherry-pick of 6d70299

For 2 and 3, updatehub-crates.inc applied unchanged and is byte-identical to master's. The recipe rename conflicted only on context, so this branch keeps its own recipe body (including S = "${WORKDIR}/git") and the only delta is SRCREV.

Commit 4 is needed because the mixin's cargo.bbclass passes PACKAGECONFIG_CONFARGS directly to cargo build. Without it, the bare v1-parsing becomes a stray argument and do_compile fails.

Notes

Testing

Built updatehub-image-base for raspberrypi3-64 on scarthgap with meta-lts-mixins scarthgap/rust, flashed it, then generated a .uhupkg with bitbake updatehub-image-base -c uhuarchive after changing UPDATEHUB_PACKAGE_VERSION_SUFFIX. The update was applied on the device and VERSION_ID in /etc/os-release showed the new version.

The board support came from meta-updatehub-raspberrypi master, with local changes to build on scarthgap: scarthgap added to LAYERSERIES_COMPAT, the :append:updatehub-rpi override syntax fixed in its bbappends, and CONFIG_SYS_MAXARGS moved to the u-boot config fragment. Those changes are not part of this PR.

lucianogdittgen and others added 4 commits October 21, 2026 14:34
UpdateHub 2.2.1 and later require Rust 1.88 (edition 2024), but
OpenEmbedded-Core scarthgap ships an older Rust. The scarthgap/rust
branch of meta-lts-mixins provides Rust 1.98.1, so add its collection
to LAYERDEPENDS and document it in the README.

Signed-off-by: Luciano Dittgen <luciano.dittgen@ossystems.com.br>
Signed-off-by: Rodrigo M. Duarte <rodrigo.duarte@ossystems.com.br>
(cherry picked from commit 74a08ad)
Signed-off-by: Luciano Dittgen <luciano.dittgen@ossystems.com.br>
(cherry picked from commit 029a052)
Signed-off-by: Rodrigo M. Duarte <rodrigo.duarte@ossystems.com.br>
(cherry picked from commit 6d70299)
@otavio
otavio merged commit 868d575 into UpdateHub:scarthgap Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants