mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
Infix defines its own Kconfig options with unprefixed names (IMAGE_*, QEMU_*, TRUSTED_KEYS*) and an INFIX_ prefix. Unprefixed names risk clashing with Buildroot and with other br2-externals/spins that source our tree. Rename all 86 options to a common IX_ prefix, collapsing the existing INFIX_ ones, e.g. INFIX_IMAGE_ID becomes IX_IMAGE_ID. The os-release INFIX_DESC field is a runtime interface, not a Kconfig option, and is kept; the qemu Config.in generator's @ARCH@ symbol is updated to match. Closes #1305 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
38 lines
653 B
Bash
38 lines
653 B
Bash
ixmsg()
|
|
{
|
|
printf "\e[37;44m#!: $@\e[0m\n"
|
|
}
|
|
|
|
die()
|
|
{
|
|
echo "$@" >&2
|
|
exit 1
|
|
}
|
|
|
|
# Find all matching key=value assignments in output/.config
|
|
# E.g., load_cfg DISK_IMAGE sets the following variables:
|
|
#
|
|
# DISK_IMAGE=y
|
|
# DISK_IMAGE_SIZE="512"
|
|
# etc.
|
|
#
|
|
# Nested variables, like IX_COMPATIBLE="${IX_IMAGE_ID}"
|
|
# are handled by sourcing the file in a subshell.
|
|
#
|
|
# shellcheck disable=SC1090
|
|
load_cfg()
|
|
{
|
|
tmp=$(mktemp -p /tmp)
|
|
(
|
|
. "$BR2_CONFIG" 2>/dev/null
|
|
|
|
# Set *all* matching variables
|
|
set | grep -E "^${1}[^=]*=" | while IFS= read -r line; do
|
|
echo "$line"
|
|
done
|
|
) > "$tmp"
|
|
|
|
. "$tmp"
|
|
rm "$tmp"
|
|
}
|