From 749e095b040c15c3ee9b913980c0145959b59bf9 Mon Sep 17 00:00:00 2001 From: Andreas Gnau Date: Tue, 30 Jan 2024 17:18:27 +0100 Subject: [PATCH] Revert "iop: genconfig_wrap: Depricate --clean option" This reverts commit 6b93fd6e2745760f6b60a20d09dbf17995c83591. --- iop/scripts/genconfig_wrap.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/iop/scripts/genconfig_wrap.sh b/iop/scripts/genconfig_wrap.sh index 8c619f7ea..9a4bc9e80 100755 --- a/iop/scripts/genconfig_wrap.sh +++ b/iop/scripts/genconfig_wrap.sh @@ -4,7 +4,7 @@ function to_lowercase { local params=() for param in "$@"; do - params+=("$(tr '[:upper:]' '[:lower:]' <<< "$param")") + params+=("$(echo "$param" | tr '[:upper:]' '[:lower:]')") done echo "${params[@]}" } @@ -19,11 +19,16 @@ function genconfig { if [[ ${args[0]} == -* ]]; then # Convert options for target script if [[ ${args[0]} == "-b" || ${args[0]} == "--boards" ]]; then - args=("--list") + args=() + args[0]="-l" + elif [[ ${args[0]} == "-c" || ${args[0]} == "--clean" ]]; then + args=() + args[0]="-c" fi fi - "${target_script}" "${args[@]}" + ${target_script} ${args[*]} + } register_command "genconfig" "Generate configuration for board and customer"