Skip to content

Commit 591fc48

Browse files
committed
make: make vars/issue fix
The name of the variable is what comes before the first, not the last '=' char Fixes make DESIGN_CONFIG=designs/asap7/mock-array/config.mk vars, for instance, because MAKEFLAGS is not excluded from vars.sh generated. Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 10570d0 commit 591fc48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flow/util/generate-vars.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ while read -r VAR; do
2222
# they are invalid in shell
2323
continue
2424
fi
25-
name="${VAR%=*}"
25+
name="${VAR%%=*}"
2626
value="${VAR#*=}"
2727
if [[ "${name}" =~ ^[[:digit:]] ]] ; then
2828
# skip if the name starts with a number

0 commit comments

Comments
 (0)