From f4f3863c59767812beda136b9ef0aa641f4c2973 Mon Sep 17 00:00:00 2001 From: "Yan, Shaopu" Date: Mon, 6 Nov 2017 16:31:53 +0800 Subject: [PATCH] [device][sand] initial commit for device/sand Signed-off-by: Yan, Shaopu --- project/product/iot_joule.mk | 7 +++++ project/sand-x86-64.mk | 52 ++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 project/product/iot_joule.mk create mode 100644 project/sand-x86-64.mk diff --git a/project/product/iot_joule.mk b/project/product/iot_joule.mk new file mode 100644 index 0000000..00d487c --- /dev/null +++ b/project/product/iot_joule.mk @@ -0,0 +1,7 @@ +# compiled from source +TRUSTY_ALL_USER_TASKS += \ + sample/skel \ + sample/skel2 + +GLOBAL_DEFINES += PRINT_USE_MMIO=1 +GLOBAL_DEFINES += APP_STORAGE_RPMB_BLOCK_COUNT=8192 diff --git a/project/sand-x86-64.mk b/project/sand-x86-64.mk new file mode 100644 index 0000000..de2973e --- /dev/null +++ b/project/sand-x86-64.mk @@ -0,0 +1,52 @@ +# top level project rules for the sand-x86-64 project +# +LOCAL_DIR := $(GET_LOCAL_DIR) + +# Default SMP_MAX_CPUS of *sand is 4 processors. +# If WITH_SMP flag enabled in rule.mk, SMP_MAX_CPUS +# to 4, if not, equals to 1 +SMP_MAX_CPUS ?= 4 +ARCH := x86 +SUBARCH := x86-64 +TARGET := sand + +WITH_LINKER_GC := 1 + +MODULES += \ + lib/trusty \ + lib/sm \ + lib/memlog \ + +# SUBARCH will be set as final user application architecture +TRUSTY_USER_ARCH := x86 + +# do not relocate kernel in physical memory +GLOBAL_DEFINES += WITH_NO_PHYS_RELOCATION=1 + +# limit heap grows +GLOBAL_DEFINES += HEAP_GROW_SIZE=65536 + +#Disable trace application info, since it might leads LK crash till now +#GLOBAL_DEFINES += DEBUG_LOAD_TRUSTY_APP=1 + +# prebuilt +TRUSTY_PREBUILT_USER_TASKS := + +# compiled from source +TRUSTY_ALL_USER_TASKS := + +WITH_TRUSTY_IPC := true + +STACK_PROTECTOR ?= true +ASLR_OF_TA ?= true + +EPT_DEBUG ?= false +ifeq (true,$(call TOBOOL,$(EPT_DEBUG))) +GLOBAL_DEFINES += \ + EPT_DEBUG=1 +endif + + +EXTRA_BUILDRULES += app/trusty/user-tasks.mk + +include $(LOCAL_DIR)/product/$(TARGET_PRODUCT).mk