[FOSS_TLK]ote: tlk: makefile change for upstream TLK
Sharif Inamdar [Wed, 11 Mar 2015 05:28:06 +0000 (10:28 +0530)]
Add "TASK_MODULES" and "TASKS" variables for upstream TLK to compile tasks
and add them to the final tos.img

Change-Id: Ia472fdbdd589567cc0bea80733c0354bd235b02e
Signed-off-by: Sharif Inamdar <isharif@nvidia.com>
Reviewed-on: http://git-master/r/752877
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

makefile

index 14aca4f..e322c80 100644 (file)
--- a/makefile
+++ b/makefile
@@ -46,9 +46,16 @@ OUTSYS := $(BUILDDIR)/lk.sys
 OUTTASK := $(BUILDDIR)/lk.task
 CONFIGHEADER := $(BUILDDIR)/config.h
 IMGBIN := $(BUILDDIR)/img.bin
-LK_IMAGE ?= $(BUILDDIR)/tos.img
+TOSIMAGE ?= $(BUILDDIR)/tos.img
 MONLIB := $(BUILDDIR)/secure_monitor/libmonitor.a
 
+TASK_MODULES := \
+       trusted_app \
+       trusted_app2
+
+TASKS ?= \
+       $(foreach task,$(TASK_MODULES), ../out/tasks/$(task)/$(task))
+
 ifneq ($(TARGET),t124)
 DEFINES += \
        WITH_MONITOR_BIN=1