From b16a755a0b6f471fff8dc1d29794b9c4105fc093 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 21 Aug 2017 20:32:30 +1000 Subject: [PATCH] py/mkrules.mk: Use "find -path" when searching for frozen obj files. This allows the command to succeed without error even if there is no $(BUILD)/build directory, which is the case for mpy-cross. --- py/mkrules.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/mkrules.mk b/py/mkrules.mk index de2c92a3f4..bf6ad29410 100644 --- a/py/mkrules.mk +++ b/py/mkrules.mk @@ -135,7 +135,7 @@ $(PROG): $(OBJ) ifndef DEBUG $(Q)$(STRIP) $(STRIPFLAGS_EXTRA) $(PROG) endif - $(Q)$(SIZE) $$(find $(BUILD)/build -name "frozen*.o") $(PROG) + $(Q)$(SIZE) $$(find $(BUILD) -path "$(BUILD)/build/frozen*.o") $(PROG) clean: clean-prog clean-prog: