forked from trusty-ia/trusty_device_x86_sand
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[device][sand] initial commit for device/sand
Signed-off-by: Yan, Shaopu <[email protected]>
- Loading branch information
0 parents
commit f4f3863
Showing
2 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |