Skip to content

Commit 89cffd7

Browse files
committed
variables: handle space in defaults
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent fd99d94 commit 89cffd7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

flow/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export UTILS_DIR ?= $(FLOW_HOME)/util
160160
export SCRIPTS_DIR ?= $(FLOW_HOME)/scripts
161161
export TEST_DIR ?= $(FLOW_HOME)/test
162162

163-
$(foreach line,$(shell $(SCRIPTS_DIR)/defaults.py),$(eval export $(line)))
163+
$(foreach line,$(shell $(SCRIPTS_DIR)/defaults.py),$(eval export $(subst __SPACE__, ,$(line))))
164164

165165
PUBLIC=nangate45 sky130hd sky130hs asap7 ihp-sg13g2 gf180
166166

flow/scripts/defaults.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
for key, value in data.items():
1313
if value.get("default", None) is None:
1414
continue
15-
print(f'{key}?={value["default"]}')
15+
print(f'export {key}?={str(value["default"]).replace(" ", "__SPACE__")}')

0 commit comments

Comments
 (0)