Skip to content

Commit b63d052

Browse files
committed
makefile: less brittle BLOCKS
all env vars of current design are unset before invoking submake Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 3137559 commit b63d052

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

flow/Makefile

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -318,16 +318,7 @@ export WRAPPED_GDSOAS = $(foreach lef,$(notdir $(WRAP_LEFS)),$(OBJECTS_DIR)/$(le
318318
define GENERATE_ABSTRACT_RULE
319319
# Single rule, two targets, hence the "&:", syntax
320320
$(1) $(2) &: $(3)
321-
# Make sure environment variables modified in this Makefile do not leak into the sub-build
322-
bash -c " \
323-
unset BLOCKS && \
324-
unset ADDITIONAL_LEFS && \
325-
unset ADDITIONAL_GDS && \
326-
unset ADDITIONAL_LIBS && \
327-
unset DONT_USE_SC_LIB && \
328-
unset LIB_FILES && \
329-
unset MACRO_PLACEMENT && \
330-
$(MAKE) \"DESIGN_CONFIG=$(3)\" generate_abstract"
321+
$$(UNSET_AND_MAKE) DESIGN_CONFIG=$(3) generate_abstract
331322
endef
332323

333324
# Targets to harden Blocks in case of hierarchical flow is triggered

0 commit comments

Comments
 (0)