1b0104773SPascal Brandinclude mk/cleanvars.mk 2b0104773SPascal Brand 3b0104773SPascal Brand# Set current submodule (used for module specific flags compile result etc) 4b0104773SPascal Brandsm := core 5b0104773SPascal Brandsm-$(sm) := y 6b0104773SPascal Brand 7*4334e8d7SJerome Forissierarch-dir := core/arch/$(ARCH) 8*4334e8d7SJerome Forissierplatform-dir := $(arch-dir)/plat-$(PLATFORM) 9*4334e8d7SJerome Forissierinclude $(platform-dir)/conf.mk 10b0104773SPascal Brand 11c0346845SJens WiklanderPLATFORM_FLAVOR ?= default 12c0346845SJens Wiklanderplatform_$(PLATFORM) := y 13c0346845SJens Wiklanderplatform_flavor_$(PLATFORM_FLAVOR) := y 14c0346845SJens Wiklandercppflags$(sm) += -DPLATFORM_FLAVOR=PLATFORM_FLAVOR_ID_$(PLATFORM_FLAVOR) 15c0346845SJens Wiklander 16b0104773SPascal Brandcppflags$(sm) += -Icore/include $(platform-cppflags) $(core-platform-cppflags) 17b0104773SPascal Brandcflags$(sm) += $(platform-cflags) $(core-platform-cflags) 18b0104773SPascal Brandaflags$(sm) += $(platform-aflags) $(core-platform-aflags) 19b0104773SPascal Brand 20b0104773SPascal Brand# Config flags from mk/config.mk 21b0104773SPascal Brandcppflags$(sm) += -DCFG_TEE_TA_LOG_LEVEL=$(CFG_TEE_TA_LOG_LEVEL) 22b0104773SPascal Brandcppflags$(sm) += -DCFG_TEE_FW_DEBUG=$(CFG_TEE_FW_DEBUG) 23b0104773SPascal Brandcppflags$(sm) += -DCFG_TEE_CORE_LOG_LEVEL=$(CFG_TEE_CORE_LOG_LEVEL) 24b0104773SPascal Brandcppflags$(sm) += -DCFG_TEE_CORE_DYNAMIC_SUPPORT=$(CFG_TEE_CORE_DYNAMIC_SUPPORT) 25b0104773SPascal Brand 26b0104773SPascal Brandcppflags$(sm) += -Ilib/libutee/include 27b0104773SPascal Brand 28b0104773SPascal Brand# 29b0104773SPascal Brand# Do libraries 30b0104773SPascal Brand# 31b0104773SPascal Brand 32b0104773SPascal Brand# Set a prefix to avoid conflicts with user TAs that will use the same 33b0104773SPascal Brand# source but with different flags below 34b0104773SPascal Brandbase-prefix := $(sm)- 35b0104773SPascal Brandlibname = utils 36b0104773SPascal Brandlibdir = lib/libutils 37b0104773SPascal Brandinclude mk/lib.mk 38b0104773SPascal Brand 39b0104773SPascal Brandlibname = mpa 40b0104773SPascal Brandlibdir = lib/libmpa 41b0104773SPascal Brandinclude mk/lib.mk 42b0104773SPascal Brandbase-prefix := 43b0104773SPascal Brand 44b0104773SPascal Brandlibname = tomcrypt 45b0104773SPascal Brandlibdir = core/lib/libtomcrypt 46b0104773SPascal Brandinclude mk/lib.mk 47b0104773SPascal Brand 48b0104773SPascal Brand# 49b0104773SPascal Brand# Do main source 50b0104773SPascal Brand# 51b0104773SPascal Brandsubdirs = $(core-platform-subdirs) core 52b0104773SPascal Brandinclude mk/subdir.mk 53b0104773SPascal Brandinclude mk/compile.mk 54*4334e8d7SJerome Forissierinclude $(platform-dir)/link.mk 55b0104773SPascal Brand 56b0104773SPascal Brand 57