2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-09-08 12:40:45 +00:00

feat(genesis): report build architectures

This commit is contained in:
Vinícius Ferrão
2026-09-04 16:54:13 -03:00
parent 6aba71b44c
commit 0cbeb3bb56
+8 -2
View File
@@ -6,6 +6,12 @@ oe_dir=$(CDPATH='' cd -- "$(dirname -- "$0")" && pwd)
: "${XCAT_GENESIS_WORK_DIR:=$oe_dir/.work}"
: "${KAS:=kas}"
supported_architectures='aarch64 armv7hf riscv64 s390x x86 x86_64 ppc64 ppc64le'
if [ "$#" -eq 1 ] && [ "$1" = '--list-architectures' ]; then
printf '%s\n' $supported_architectures
exit 0
fi
mkdir -p "$XCAT_GENESIS_WORK_DIR"
export KAS_WORK_DIR="$XCAT_GENESIS_WORK_DIR"
@@ -16,8 +22,8 @@ if [ "$#" -eq 0 ]; then
fi
for architecture do
case "$architecture" in
aarch64|armv7hf|riscv64|s390x|x86|x86_64|ppc64|ppc64le) ;;
case " $supported_architectures " in
*" $architecture "*) ;;
*)
printf 'Unsupported Genesis architecture: %s\n' "$architecture" >&2
exit 2