mirror of
https://github.com/Ai-Thinker-Open/Ai-Thinker-Open_RTL8710BX_ALIOS_SDK.git
synced 2025-01-30 17:05:23 +00:00
59 lines
1.5 KiB
Makefile
59 lines
1.5 KiB
Makefile
NAME := stm32l476rg-nucleo
|
|
|
|
|
|
$(NAME)_TYPE := kernel
|
|
MODULE := 1062
|
|
HOST_ARCH := Cortex-M4
|
|
HOST_MCU_FAMILY := stm32l4xx_cube
|
|
SUPPORT_BINS := no
|
|
HOST_MCU_NAME := STM32L476RG-Nucleo
|
|
|
|
$(NAME)_SOURCES += aos/board_partition.c \
|
|
aos/soc_init.c
|
|
|
|
$(NAME)_SOURCES += Src/stm32l4xx_hal_msp.c
|
|
|
|
ifeq ($(COMPILER), armcc)
|
|
$(NAME)_SOURCES += startup_stm32l476xx_keil.s
|
|
else ifeq ($(COMPILER), iar)
|
|
$(NAME)_SOURCES += startup_stm32l476xx_iar.s
|
|
else
|
|
$(NAME)_SOURCES += startup_stm32l476xx.s
|
|
endif
|
|
|
|
GLOBAL_INCLUDES += . \
|
|
hal/ \
|
|
aos/ \
|
|
Inc/
|
|
|
|
GLOBAL_CFLAGS += -DSTM32L476xx
|
|
|
|
GLOBAL_DEFINES += STDIO_UART=2
|
|
|
|
ifeq ($(COMPILER),armcc)
|
|
GLOBAL_LDFLAGS += -L --scatter=board/stm32l476rg-nucleo/stm32l476.sct
|
|
else ifeq ($(COMPILER),iar)
|
|
GLOBAL_LDFLAGS += --config stm32l476.icf
|
|
else
|
|
GLOBAL_LDFLAGS += -T board/stm32l476rg-nucleo/STM32L476RGTx_FLASH.ld
|
|
endif
|
|
|
|
sal ?= 1
|
|
ifeq (1,$(sal))
|
|
$(NAME)_COMPONENTS += sal
|
|
module ?= wifi.mk3060
|
|
else
|
|
GLOBAL_DEFINES += CONFIG_NO_TCPIP
|
|
endif
|
|
|
|
ifeq ($(COMPILER),armcc)
|
|
$(NAME)_LINK_FILES := startup_stm32l433xx_keil.o
|
|
$(NAME)_LINK_FILES += Src/stm32l4xx_hal_msp.o
|
|
endif
|
|
|
|
CONFIG_SYSINFO_PRODUCT_MODEL := ALI_AOS_476-nucleo
|
|
CONFIG_SYSINFO_DEVICE_NAME := 476-nucleo
|
|
|
|
GLOBAL_CFLAGS += -DSYSINFO_OS_VERSION=\"$(CONFIG_SYSINFO_OS_VERSION)\"
|
|
GLOBAL_CFLAGS += -DSYSINFO_PRODUCT_MODEL=\"$(CONFIG_SYSINFO_PRODUCT_MODEL)\"
|
|
GLOBAL_CFLAGS += -DSYSINFO_DEVICE_NAME=\"$(CONFIG_SYSINFO_DEVICE_NAME)\"
|