mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-17 08:45:13 +00:00
makefile clean up
This commit is contained in:
parent
62f0eb16d6
commit
8094bdce23
@ -9,7 +9,4 @@ INC += \
|
||||
EXAMPLE_SOURCE += $(wildcard src/*.c)
|
||||
SRC_C += $(addprefix $(CURRENT_PATH)/, $(EXAMPLE_SOURCE))
|
||||
|
||||
# Board source
|
||||
SRC_C += hw/bsp/$(BOARD)/board_$(BOARD).c
|
||||
|
||||
include ../../rules.mk
|
||||
|
@ -11,9 +11,6 @@ INC += \
|
||||
EXAMPLE_SOURCE += $(wildcard src/*.c)
|
||||
SRC_C += $(addprefix $(CURRENT_PATH)/, $(EXAMPLE_SOURCE))
|
||||
|
||||
# Board source
|
||||
SRC_C += hw/bsp/$(BOARD)/board_$(BOARD).c
|
||||
|
||||
# FreeRTOS source
|
||||
SRC_C += \
|
||||
lib/FreeRTOS/Source/list.c \
|
||||
|
@ -9,7 +9,4 @@ INC += \
|
||||
EXAMPLE_SOURCE += $(wildcard src/*.c)
|
||||
SRC_C += $(addprefix $(CURRENT_PATH)/, $(EXAMPLE_SOURCE))
|
||||
|
||||
# Board source
|
||||
SRC_C += hw/bsp/$(BOARD)/board_$(BOARD).c
|
||||
|
||||
include ../../rules.mk
|
||||
|
@ -9,7 +9,4 @@ INC += \
|
||||
EXAMPLE_SOURCE += $(wildcard src/*.c)
|
||||
SRC_C += $(addprefix $(CURRENT_PATH)/, $(EXAMPLE_SOURCE))
|
||||
|
||||
# Board source
|
||||
SRC_C += hw/bsp/$(BOARD)/board_$(BOARD).c
|
||||
|
||||
include ../../rules.mk
|
||||
|
@ -31,6 +31,9 @@ BUILD = build-$(BOARD)
|
||||
# Board specific
|
||||
include $(TOP)/hw/bsp/$(BOARD)/board.mk
|
||||
|
||||
# Include all source C in board folder
|
||||
SRC_C += $(subst $(TOP)/,,$(wildcard $(TOP)/hw/bsp/$(BOARD)/*.c))
|
||||
|
||||
# Compiler Flags
|
||||
CFLAGS += \
|
||||
-fsingle-precision-constant \
|
||||
|
@ -10,8 +10,6 @@ CFLAGS += \
|
||||
# All source paths should be relative to the top level.
|
||||
LD_FILE = hw/bsp/metro_m0_express/samd21g18a_flash.ld
|
||||
|
||||
LD_FLAGS += -mthumb -mcpu=cortex-m0plus
|
||||
|
||||
SRC_C += \
|
||||
hw/mcu/microchip/samd/asf4/samd21/gcc/gcc/startup_samd21.c \
|
||||
hw/mcu/microchip/samd/asf4/samd21/gcc/system_samd21.c \
|
||||
|
@ -13,8 +13,6 @@ CFLAGS += -Wno-error=undef
|
||||
# All source paths should be relative to the top level.
|
||||
LD_FILE = hw/bsp/metro_m4_express/samd51g19a_flash.ld
|
||||
|
||||
LDFLAGS += -mthumb -mcpu=cortex-m4
|
||||
|
||||
SRC_C += \
|
||||
hw/mcu/microchip/samd/asf4/samd51/gcc/gcc/startup_samd51.c \
|
||||
hw/mcu/microchip/samd/asf4/samd51/gcc/system_samd51.c \
|
||||
|
@ -12,8 +12,6 @@ CFLAGS += \
|
||||
# All source paths should be relative to the top level.
|
||||
LD_FILE = hw/bsp/stm32f303disc/STM32F303VCTx_FLASH.ld
|
||||
|
||||
LDFLAGS += -mthumb -mcpu=cortex-m4
|
||||
|
||||
SRC_C += \
|
||||
hw/mcu/st/system-init/system_stm32f3xx.c \
|
||||
hw/mcu/st/stm32lib/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal.c \
|
||||
|
@ -12,8 +12,6 @@ CFLAGS += \
|
||||
# All source paths should be relative to the top level.
|
||||
LD_FILE = hw/bsp/stm32f407g_disc1/STM32F407VGTx_FLASH.ld
|
||||
|
||||
LDFLAGS += -mthumb -mcpu=cortex-m4
|
||||
|
||||
SRC_C += \
|
||||
hw/mcu/st/system-init/system_stm32f4xx.c
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user