mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
firmware: proper makefile deps
Single threaded evaluation is (assumed to be!) left to right, depth first - but with concurrent make using -j this breaks, because the actual usb string header is generated after the attempt to concurrently compile the code that needs it, since there is no explicit order among the all: dependencies. This is fixed by properly adding a dependency on that header. Change-Id: I0bdf915deabeda861f6398e654764918e58a64c2
This commit is contained in:
@@ -197,7 +197,7 @@ OUTPUT := $(BIN)/$(OUTPUT)
|
||||
# Rules
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
all: apps/$(APP)/usb_strings_generated.h $(BIN) $(OBJ) $(MEMORIES)
|
||||
all: $(BIN) $(OBJ) $(MEMORIES)
|
||||
|
||||
combined: $(OUTPUT)-combined.bin
|
||||
|
||||
@@ -208,7 +208,7 @@ $(BIN)/$(BOARD)-dfu-flash-padded.bin: $(BIN)/$(BOARD)-dfu-flash.bin
|
||||
$(OUTPUT)-combined.bin: $(BIN)/$(BOARD)-dfu-flash-padded.bin $(OUTPUT)-dfu.bin
|
||||
cat $^ > $@
|
||||
|
||||
$(BIN) $(OBJ):
|
||||
$(BIN) $(OBJ): apps/$(APP)/usb_strings_generated.h
|
||||
mkdir -p $@
|
||||
|
||||
usbstring/usbstring: usbstring/usbstring.c
|
||||
|
||||
Reference in New Issue
Block a user