aboutsummaryrefslogtreecommitdiff
path: root/projects/hsm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'projects/hsm/Makefile')
-rw-r--r--projects/hsm/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/projects/hsm/Makefile b/projects/hsm/Makefile
index 429069d..9a75b92 100644
--- a/projects/hsm/Makefile
+++ b/projects/hsm/Makefile
@@ -12,8 +12,6 @@ OBJS = mgmt-cli.o \
log.o \
$(TOPLEVEL)/task.o
-CFLAGS += -DTASK_METRICS
-
CFLAGS += -DNUM_RPC_TASK=4
CFLAGS += -I$(LIBHAL_SRC)
@@ -32,6 +30,10 @@ LIBS += $(LIBPROF_BLD)/libprof.a
LDFLAGS += --specs=rdimon.specs -lc -lrdimon
endif
+ifdef DO_TASK_METRICS
+CFLAGS += -DDO_TASK_METRICS
+endif
+
all: $(PROJ:=.elf)
%.elf: %.o $(BOARD_OBJS) $(OBJS) $(LIBS)