samd/Makefile: Fix a dependency problem with "make -j".

The build directory was not created before attempting to create the
generated files in it.
This commit is contained in:
robert-hh 2022-06-24 08:27:23 +02:00 committed by Damien George
parent 560170de02
commit b001730462
1 changed files with 3 additions and 2 deletions

View File

@ -194,12 +194,13 @@ $(BUILD)/firmware.uf2: $(BUILD)/firmware.bin
pin_af.c: $(BUILD)/$(GEN_PIN_AF)
$(BUILD)/$(GEN_PIN_AF): $(PIN_AF_TABLE_CSV)
$(BUILD)/$(GEN_PIN_AF): $(PIN_AF_TABLE_CSV) | $(HEADER_BUILD)
$(ECHO) "Create $@"
$(Q)$(PYTHON) $(MAKE_PIN_AF) --csv $(PIN_AF_TABLE_CSV) --table $(BUILD)/$(GEN_PIN_AF) --mcu $(MCU_SERIES)
machine_led.c machine_pin.c modsamd.c: $(GEN_PINS_HDR)
$(GEN_PINS_SRC): $(BOARD_PINS)
$(GEN_PINS_SRC) $(GEN_PINS_HDR): $(BOARD_PINS) | $(HEADER_BUILD)
$(ECHO) "Create $@"
$(Q)$(PYTHON) $(MAKE_PINS) --board $(BOARD_PINS) --pins $(GEN_PINS_SRC) --inc $(GEN_PINS_HDR)