From 6cf275f0e72f28e95735de0e8295caf62f537b83 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Fri, 3 May 2019 20:07:13 +0200 Subject: fix regression: PARSE_BOARD chops off flags which contain '=' signs (closes #601) --- Common.mk | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Common.mk') diff --git a/Common.mk b/Common.mk index c5f2bc2..0c1f92c 100644 --- a/Common.mk +++ b/Common.mk @@ -5,16 +5,14 @@ COMMON_INCLUDED = TRUE # (directory and optional filename) exists dir_if_exists = $(if $(wildcard $(1)$(2)),$(1)) -ifndef PARSE_BOARD # result = $(call READ_BOARD_TXT, 'boardname', 'parameter') PARSE_BOARD = $(shell if [ -f $(BOARDS_TXT) ]; \ then \ grep -Ev '^\#' $(BOARDS_TXT) | \ grep -E "^[ \t]*$(1).$(2)=" | \ - cut -d = -f 2 | \ + cut -d = -f 2- | \ cut -d : -f 2; \ fi) -endif # Run a shell script if it exists. Stops make on error. runscript_if_exists = \ -- cgit v1.2.3