-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathaos.mk
More file actions
43 lines (32 loc) · 1.17 KB
/
aos.mk
File metadata and controls
43 lines (32 loc) · 1.17 KB
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
NAME := board_mk3080
JTAG := jlink_swd
$(NAME)_MBINS_TYPE := kernel
$(NAME)_VERSION := 1.0.1
$(NAME)_SUMMARY := configuration for board mk3080
MODULE := AmebaZ
HOST_ARCH := Cortex-M4
HOST_MCU_FAMILY := mcu_rtl8710bn
SUPPORT_MBINS := no
AOS_SDK_2NDBOOT_SUPPORT := yes
ifeq ($(AOS_2NDBOOT_SUPPORT), yes)
$(NAME)_LIBSUFFIX := _2ndboot
else
$(NAME)_COMPONENTS += $(HOST_MCU_FAMILY) kernel_init
$(NAME)_SOURCES := board.c
endif
$(NAME)_SOURCES += flash_partitions.c
GLOBAL_INCLUDES += .
GLOBAL_DEFINES += STDIO_UART=0 USE_MX1290
GLOBAL_DEFINES += CLI_CONFIG_STACK_SIZE=4096
# Link Security Config
CONFIG_LS_DEBUG := n
CONFIG_LS_ID2_OTP := y
CONFIG_LS_KM_SE := n
CONFIG_LS_KM_TEE := n
CONFIG_SYSINFO_PRODUCT_MODEL := ALI_AOS_MK3080
CONFIG_SYSINFO_DEVICE_NAME := MK3080
GLOBAL_CFLAGS += -DSYSINFO_PRODUCT_MODEL=\"$(CONFIG_SYSINFO_PRODUCT_MODEL)\"
GLOBAL_CFLAGS += -DSYSINFO_DEVICE_NAME=\"$(CONFIG_SYSINFO_DEVICE_NAME)\"
GLOBAL_CFLAGS += -L $($(NAME)_LOCATION)
# Extra build target include bootloader, and copy output file to eclipse debug file (copy_output_for_eclipse)
EXTRA_TARGET_MAKEFILES += $($(HOST_MCU_FAMILY)_LOCATION)/download.mk