xref: /optee_os/core/arch/arm/plat-stm/conf.mk (revision 31908aeac446be4859fe9dc98dc4e1e0c13b528c)
1include core/arch/$(ARCH)/plat-$(PLATFORM)/platform_flags.mk
2
3CROSS_COMPILE	?= armv7-linux-
4COMPILER	?= gcc
5
6CFG_ARM32_core ?= y
7
8core-platform-cppflags	 = -I$(arch-dir)/include
9
10core-platform-subdirs += \
11	$(addprefix $(arch-dir)/, kernel mm sm tee sta) $(platform-dir)
12
13libutil_with_isoc := y
14CFG_PL310 := y
15CFG_SECURE_TIME_SOURCE_REE := y
16CFG_CACHE_API := y
17CFG_WITH_STACK_CANARIES := y
18CFG_PM_STUBS := y
19
20include mk/config.mk
21include $(platform-dir)/system_config.in
22
23ifndef CFG_TEE_CORE_EMBED_INTERNAL_TESTS
24$(error "CFG_TEE_CORE_EMBED_INTERNAL_TESTS should be set from system_config.in")
25endif
26
27ifndef CFG_DDR_TEETZ_RESERVED_START
28$(error "CFG_DDR_TEETZ_RESERVED_START should be set from system_config.in")
29endif
30ifndef CFG_DDR_TEETZ_RESERVED_SIZE
31$(error "CFG_DDR_TEETZ_RESERVED_SIZE should be set from system_config.in")
32endif
33
34core-platform-cppflags += -DCONFIG_TEE_GDB_BOOT
35CFG_NO_TA_HASH_SIGN ?= y
36
37CFG_WITH_SOFTWARE_PRNG ?= n
38
39ifeq ($(PLATFORM_FLAVOR),cannes)
40
41PRIMARY_STARTUP_PHYS	 = $(shell echo $$(( ${CFG_LINUX_LOAD_ADDR} + 0x8000 )))
42OFFSET_STARTUP_PHYS	 = $(shell echo $$((\
43 	$(PRIMARY_STARTUP_PHYS) - \
44 	0x$(shell grep stext $(platform-dir)/System.map | grep -v _stext | \
45 		cut -d' ' -f 1) )) )
46SECONDARY_STARTUP_PHYS	 = $(shell echo $$((\
47	0x$(shell grep sti_secondary_startup $(platform-dir)/System.map | \
48		cut -d' ' -f 1) + $(OFFSET_STARTUP_PHYS) )) )
49
50else ifeq ($(PLATFORM_FLAVOR),orly2)
51
52PRIMARY_STARTUP_PHYS	 = \
53	0x$(shell grep stext $(platform-dir)/System.map | grep -v _stext | \
54		cut -d' ' -f 1)
55SECONDARY_STARTUP_PHYS	 = \
56	0x$(shell grep stm_secondary_startup $(platform-dir)/System.map | \
57		cut -d' ' -f 1)
58else
59$(error PLATFORM_FLAVOR=$(PLATFORM_FLAVOR) is not supported)
60endif
61
62TEE_SCATTER_START=$(CFG_DDR_TEETZ_RESERVED_START)
63export TEE_SCATTER_START
64