Skip to content

[stable/V01.06] Improvement for firmware-update min_version#652

Open
huaqianli wants to merge 3 commits intostable/V01.06from
lee/stable_v1.6_sm_ver
Open

[stable/V01.06] Improvement for firmware-update min_version#652
huaqianli wants to merge 3 commits intostable/V01.06from
lee/stable_v1.6_sm_ver

Conversation

@huaqianli
Copy link
Collaborator

@huaqianli huaqianli commented Mar 12, 2026

iot2050-firmware-update: Remove OS dependency from backup pacakge
firmware-update-pacakge: Update to follow shellcheck best practices
firmware-update-pacakge: Enhance min_version calculation

@huaqianli huaqianli changed the base branch from master to stable/V01.06 March 12, 2026 06:22
Improves the logic for calculating the `min_version` in the firmware
update package generation script.

The new implementation correctly handles various version formats,
including those with multi-digit numbers and zero-padding (e.g.,
`V01.06.12`, `1.6.6`). It replaces any numeric part of the version
string greater than 1 with a 1, while preserving the original padding
and any non-numeric prefixes.

This change makes the version handling more robust and adaptable to
different versioning schemes.

Signed-off-by: Li Hua Qian <huaqian.li@siemens.com>
Signed-off-by: Li Hua Qian <huaqian.li@siemens.com>
Simplify the firmware rollback process by removing the OS version check
from the backup package.

Previously, the backup function would attempt to calculate a min_version
for the target_os. This created an unnecessary dependency, potentially
complicating rollbacks.

Signed-off-by: Li Hua Qian <huaqian.li@siemens.com>
@huaqianli huaqianli force-pushed the lee/stable_v1.6_sm_ver branch from a726385 to ab12e02 Compare March 12, 2026 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant