Skip to content

Commit

Permalink
Merge pull request #755 from kernelkit/rauc-compatible
Browse files Browse the repository at this point in the history
Add support for overriding the compatible string

Signed-off-by: Joachim Wiberg <[email protected]>
  • Loading branch information
troglobit authored Oct 22, 2024
2 parents 52eafa7 + cedb654 commit 822cb93
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@ config INFIX_IMAGE_ID
Mandatory. When INFIX_RELEASE is set, this string is appended to
the IMAGE_ID with a '-' separator.

config INFIX_COMPATIBLE
string "Operating system compatible string"
default "${INFIX_IMAGE_ID}"
help
A lower-case string (no spaces or other characters outside of 0–9,
a–z, ".", "_" and "-"), used for image identification at upgrade.
E.g., the RAUC [system] compatible string.

Mandatory. Defaults to $INFIX_IMAGE_ID, which in turn is composed
of $INFIX_ID-$BR2_ARCH.

config INFIX_TAGLINE
string "Operating system tagline"
default "Infix -- a Network Operating System"
Expand Down
2 changes: 1 addition & 1 deletion board/common/post-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ else
fi

if [ -f "$TARGET_DIR/etc/rauc/system.conf" ]; then
sed -i "s/compatible=.*/compatible=$NAME/" "$TARGET_DIR/etc/rauc/system.conf"
sed -i "s/compatible=.*/compatible=$INFIX_COMPATIBLE/" "$TARGET_DIR/etc/rauc/system.conf"
fi

# This is a symlink to /usr/lib/os-release, so we remove this to keep
Expand Down

0 comments on commit 822cb93

Please sign in to comment.