Fix fpga_compress race condition and isolate it in tools

This commit is contained in:
Philippe Teuwen
2019-08-09 14:41:44 +02:00
parent d19754567d
commit 80b4e81130
8 changed files with 87 additions and 15 deletions

View File

@@ -135,7 +135,7 @@ include ../common_arm/Makefile.common
COMMON_FLAGS = -Os
OBJS = $(OBJDIR)/fullimage.s19
FPGA_COMPRESSOR = ../client/fpga_compress
FPGA_COMPRESSOR = ../tools/fpga_compress/fpga_compress
all: $(OBJS)
@@ -163,8 +163,8 @@ else
endif
$(FPGA_COMPRESSOR):
$(info [*] MAKE $@)
$(Q)$(MAKE) --no-print-directory -C ../client $(notdir $(FPGA_COMPRESSOR))
$(error [!] MISSING $@ => To build it, go the root of the repo and do "make $(notdir $@)")
$(error [!] MISSING $@)
$(OBJDIR)/fullimage.stage1.elf: $(VERSIONOBJ) $(OBJDIR)/fpga_all.o $(THUMBOBJ) $(ARMOBJ)
$(info [=] LD $@)