From 9851849ae6e648df617542c22111fe542cb0fd23 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Tue, 17 Jan 2017 11:53:48 +0100 Subject: hwstub/jz4760b: build packtools automatically if neeeded Change-Id: I543e405bf75868d0f7509a35e08fe31ed253e0e6 --- utils/hwstub/stub/jz4760b/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/utils/hwstub/stub/jz4760b/Makefile b/utils/hwstub/stub/jz4760b/Makefile index 52595fc1c1..51455d5dc2 100644 --- a/utils/hwstub/stub/jz4760b/Makefile +++ b/utils/hwstub/stub/jz4760b/Makefile @@ -17,6 +17,13 @@ EXEC=$(BUILD_DIR)/factory.x1 include ../hwstub.make +# make packtools if necessary +$(PACKTOOLS): + make -C $(JZ4760TOOLS) + +# add dependency on packtool +$(BUILD_DIR)/factory.x1: $(PACKTOOLS) + $(BUILD_DIR)/factory.x1: $(EXEC_BIN) $(call PRINTS,PACKTOOLS $(@F)) $(SILENT)$(PACKTOOLS) --scramble -o $@ -i $< -- cgit