-
Notifications
You must be signed in to change notification settings - Fork 28
/
Makefile
executable file
·55 lines (46 loc) · 1.69 KB
/
Makefile
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
BINARYNAME = main
BUILDDIR = build
OPTFLAG = -O3
EXTLIBDIR = ../../third-party
SHAREDDIR = ../../shared
STM32HALDIR = $(EXTLIBDIR)/STM32MP1xx_HAL_Driver
PATCHEDSTM32HALDIR = $(SHAREDDIR)/stm32hal_patched
USBLIBDIR = $(EXTLIBDIR)/STM32_USB_Device_Library
SOURCES = startup.s \
main.cc \
$(SHAREDDIR)/system/libc_stub.c \
$(SHAREDDIR)/system/libcpp_stub.cc \
$(SHAREDDIR)/system/system_ca7.c \
$(SHAREDDIR)/system/mmu_ca7.c \
$(SHAREDDIR)/system/irq_init.c \
$(SHAREDDIR)/drivers/irq_handler.cc \
$(PATCHEDSTM32HALDIR)/stm32mp1xx_hal.c \
$(PATCHEDSTM32HALDIR)/stm32mp1xx_hal_pcd.c \
$(PATCHEDSTM32HALDIR)/stm32mp1xx_hal_pcd_ex.c \
$(PATCHEDSTM32HALDIR)/stm32mp1xx_ll_usb.c \
$(PATCHEDSTM32HALDIR)/stm32mp1xx_ll_usb_phy.c \
$(STM32HALDIR)/Src/stm32mp1xx_hal_gpio.c \
$(STM32HALDIR)/Src/stm32mp1xx_hal_rcc.c \
$(STM32HALDIR)/Src/stm32mp1xx_hal_rcc_ex.c \
$(STM32HALDIR)/Src/stm32mp1xx_ll_rcc.c \
usbd_conf.c \
usbd_desc.c \
usbd_msc_storage.c \
$(USBLIBDIR)/Class/MSC/Src/usbd_msc_bot.c \
$(USBLIBDIR)/Class/MSC/Src/usbd_msc_data.c \
$(USBLIBDIR)/Class/MSC/Src/usbd_msc_scsi.c \
$(USBLIBDIR)/Class/MSC/Src/usbd_msc.c \
$(USBLIBDIR)/Core/Src/usbd_core.c \
$(USBLIBDIR)/Core/Src/usbd_ctlreq.c \
$(USBLIBDIR)/Core/Src/usbd_ioreq.c \
INCLUDES = -I. \
-I$(PATCHEDSTM32HALDIR) \
-I$(EXTLIBDIR)/STM32MP1xx_HAL_Driver/Inc \
-I$(EXTLIBDIR)/CMSIS/Core_A/Include \
-I$(EXTLIBDIR)/CMSIS/Device/ST/STM32MP1xx/Include \
-I$(SHAREDDIR) \
-I$(USBLIBDIR)/Class/MSC/Inc \
-I$(USBLIBDIR)/Core/Inc \
EXTRA_ARCH_CFLAGS = -DUSE_HAL_DRIVER
LINK_STDLIB = --specs=nosys.specs
include $(SHAREDDIR)/makefile-common.mk