From 54d1981df652d731dfcf3ad05a50a83a90d1a8af Mon Sep 17 00:00:00 2001 From: Willian Paixao Date: Sun, 5 Dec 2021 19:35:29 +0100 Subject: add tinyusb as a git submodule --- rules.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'rules.mk') diff --git a/rules.mk b/rules.mk index cc442f67..d993404a 100644 --- a/rules.mk +++ b/rules.mk @@ -2,7 +2,9 @@ CFLAGS += $(INCLUDES) $(DEFINES) OBJS = $(addprefix $(BUILD)/, $(notdir %/$(subst .c,.o, $(SRCS)))) -all: directory $(BUILD)/$(BIN).elf $(BUILD)/$(BIN).hex $(BUILD)/$(BIN).bin $(BUILD)/$(BIN).uf2 size +SUBMODULES = tinyusb + +all: directory $(SUBMODULES) $(BUILD)/$(BIN).elf $(BUILD)/$(BIN).hex $(BUILD)/$(BIN).bin $(BUILD)/$(BIN).uf2 size $(BUILD)/$(BIN).elf: $(OBJS) @echo LD $@ @@ -20,6 +22,9 @@ $(BUILD)/$(BIN).uf2: $(BUILD)/$(BIN).bin @echo UF2CONV $@ @$(UF2) $^ -co $@ +$(SUBMODULES): + git submodule update --init --recursive + install: @$(UF2) -D $(BUILD)/$(BIN).uf2 -- cgit v1.2.3