Compare commits

...

1 Commits

Author SHA1 Message Date
Andreas Gnau
99668e3730 iop: genconfig: Add hack to deal with cw3 ambiguity
genconfig script is to be replaced soon and the existing code makes
adding a proper check hard and we need some way to deal with the
ambiguity quickly.

Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
2023-06-01 17:07:43 +02:00
2 changed files with 11 additions and 1 deletions

View File

@@ -326,6 +326,11 @@ function genconfig {
shift
local CUSTOMERS=$@
# hack until we have deprecated this script in a month or two
if [ "$BOARDTYPE" = cw3 ] && [ -z "$TARGET" ]; then
echo "'$BOARDTYPE' is ambiguous. Please specify the target using -t <target-name>. See ./iop genconfig --boards." >&2
return 1
fi
# Validate seleced board and customers
set_target $BOARDTYPE
if [ $target == "bogus" ]; then
@@ -506,7 +511,7 @@ function genconfig {
CUSTREPO="${CUSTREPO:-git@dev.iopsys.eu:consumer/iopsys.git}"
setup_dirs
create_and_copy_files "$@"
create_and_copy_files "$@" || exit 1
fi
}

View File

@@ -300,6 +300,11 @@ function genconfig_min {
shift
local CUSTOMERS=$@
# hack until we have deprecated this script in a month or two
if [ "$BOARDTYPE" = cw3 ] && [ -z "$TARGET" ]; then
echo "'$BOARDTYPE' is ambiguous. Please specify the target using -t <target-name>. See ./iop genconfig --boards." >&2
return 1
fi
# Validate seleced board and customers
set_target $BOARDTYPE
if [ $target == "bogus" ]; then