aboutsummaryrefslogtreecommitdiff
path: root/Common.mk
diff options
context:
space:
mode:
authorSudar Muthu <sudar@sudarmuthu.com>2019-06-03 11:52:05 +0530
committerGitHub <noreply@github.com>2019-06-03 11:52:05 +0530
commit3817dbeb2847cb33173063c6d4488bfdc18aafbb (patch)
tree313ae6cc02cc7e5db073777f420a00ff743d0a3a /Common.mk
parent8c85ca7001580a04438490332c7b4e0418856d94 (diff)
parent6cf275f0e72f28e95735de0e8295caf62f537b83 (diff)
Merge pull request #604 from stv0g/fix-issue-601
Fix regression: PARSE_BOARD chops off flags which contain '=' signs
Diffstat (limited to 'Common.mk')
-rw-r--r--Common.mk4
1 files changed, 1 insertions, 3 deletions
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 = \