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 18 19include mk/config.mk 20include $(platform-dir)/system_config.in 21 22ifndef CFG_TEE_CORE_EMBED_INTERNAL_TESTS 23$(error "CFG_TEE_CORE_EMBED_INTERNAL_TESTS should be set from system_config.in") 24endif 25 26ifndef CFG_DDR_TEETZ_RESERVED_START 27$(error "CFG_DDR_TEETZ_RESERVED_START should be set from system_config.in") 28endif 29ifndef CFG_DDR_TEETZ_RESERVED_SIZE 30$(error "CFG_DDR_TEETZ_RESERVED_SIZE should be set from system_config.in") 31endif 32 33core-platform-cppflags += -DCONFIG_TEE_GDB_BOOT 34CFG_NO_TA_HASH_SIGN ?= y 35 36CFG_WITH_SOFTWARE_PRNG ?= n 37 38ifeq ($(PLATFORM_FLAVOR),cannes) 39 40PRIMARY_STARTUP_PHYS = $(shell echo $$(( ${CFG_LINUX_LOAD_ADDR} + 0x8000 ))) 41OFFSET_STARTUP_PHYS = $(shell echo $$((\ 42 $(PRIMARY_STARTUP_PHYS) - \ 43 0x$(shell grep stext $(platform-dir)/System.map | grep -v _stext | \ 44 cut -d' ' -f 1) )) ) 45SECONDARY_STARTUP_PHYS = $(shell echo $$((\ 46 0x$(shell grep sti_secondary_startup $(platform-dir)/System.map | \ 47 cut -d' ' -f 1) + $(OFFSET_STARTUP_PHYS) )) ) 48 49else ifeq ($(PLATFORM_FLAVOR),orly2) 50 51PRIMARY_STARTUP_PHYS = \ 52 0x$(shell grep stext $(platform-dir)/System.map | grep -v _stext | \ 53 cut -d' ' -f 1) 54SECONDARY_STARTUP_PHYS = \ 55 0x$(shell grep stm_secondary_startup $(platform-dir)/System.map | \ 56 cut -d' ' -f 1) 57else 58$(error PLATFORM_FLAVOR=$(PLATFORM_FLAVOR) is not supported) 59endif 60 61TEE_SCATTER_START=$(CFG_DDR_TEETZ_RESERVED_START) 62export TEE_SCATTER_START 63