mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 03:01:51 +08:00
add tinyusb as a git submodule
This commit is contained in:
parent
ac2e205ae9
commit
54d1981df6
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "tinyusb"]
|
||||||
|
path = tinyusb
|
||||||
|
url = https://github.com/hathach/tinyusb.git
|
7
rules.mk
7
rules.mk
|
@ -2,7 +2,9 @@ CFLAGS += $(INCLUDES) $(DEFINES)
|
||||||
|
|
||||||
OBJS = $(addprefix $(BUILD)/, $(notdir %/$(subst .c,.o, $(SRCS))))
|
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)
|
$(BUILD)/$(BIN).elf: $(OBJS)
|
||||||
@echo LD $@
|
@echo LD $@
|
||||||
|
@ -20,6 +22,9 @@ $(BUILD)/$(BIN).uf2: $(BUILD)/$(BIN).bin
|
||||||
@echo UF2CONV $@
|
@echo UF2CONV $@
|
||||||
@$(UF2) $^ -co $@
|
@$(UF2) $^ -co $@
|
||||||
|
|
||||||
|
$(SUBMODULES):
|
||||||
|
git submodule update --init --recursive
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@$(UF2) -D $(BUILD)/$(BIN).uf2
|
@$(UF2) -D $(BUILD)/$(BIN).uf2
|
||||||
|
|
||||||
|
|
1
tinyusb
Submodule
1
tinyusb
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit f8288be03f28ad7b944e6925f49422dfa39202c5
|
Loading…
Reference in a new issue