forked from arturo182/tinyuf2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (21 loc) · 684 Bytes
/
Makefile
File metadata and controls
28 lines (21 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
TINYUSB_PATH ?= lib/tinyusb
# Force using the local board directory
TOP := $(shell realpath `pwd`)
include $(TINYUSB_PATH)/examples/make.mk
INC += \
hw \
hw/bsp \
hw/bsp/$(BOARD) \
src \
lib/tinyusb/tools \
_build/build-$(BOARD)
SRC_C = \
$(addprefix $(CURRENT_PATH)/, $(wildcard src/*.c))
CFLAGS += -Wno-unused-parameter
UF2_VERSION_BASE = $(shell git describe --always --tags)
$(BUILD)/uf2_version.h: Makefile
@echo "#define UF2_VERSION_BASE \"$(UF2_VERSION_BASE)\""> $@
OBJ += $(BUILD)/uf2_version.h
include $(TOP)/hw/chip/$(TUF2_CHIP_FAMILY)/$(TUF2_CHIP_MEMBER)/$(TUF2_CHIP_VARIANT).mk
include $(TINYUSB_PATH)/tools/top.mk
include $(TINYUSB_PATH)/examples/rules.mk