aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2016-03-21 22:44:08 -0400
committerPaul Selkirk <paul@psgd.org>2016-03-21 22:44:08 -0400
commit7f390d57768dfd9662274f6e896ca6796232294e (patch)
treeefcc77d1c40d7c9f30290c0f9405d36dc9b438cd
parent7c77c0dba0eede8d56ba90c9fef59d0c0a88249f (diff)
making RPC tests
-rw-r--r--Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 3324969..f4185bf 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# Copyright (c) 2015, NORDUnet A/S
+# Copyright (c) 2015-2016, NORDUnet A/S
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -32,7 +32,9 @@ SELF-TESTS = fmc-test led-test short-test uart-test fmc-perf
vpath %.c self-test
# apps originally written for unix-like environment
-LIBHAL-TESTS = cores test-bus test-trng test-hash test-aes-key-wrap test-pbkdf2 test-ecdsa test-rsa test-rpc_server
+#LIBHAL-TESTS = cores test-bus test-trng test-hash test-aes-key-wrap test-pbkdf2 test-ecdsa test-rsa
+#LIBHAL-TESTS = cores test-hash test-rpc_hash
+LIBHAL-TESTS = test-rpc_server
vpath %.c libhal/tests libhal/utils
# absolute path, because we're going to be passing -I cflags to sub-makes
@@ -67,8 +69,7 @@ CFLAGS = -ggdb -O2 -Wall -Warray-bounds #-Wextra
CFLAGS += -mcpu=cortex-m4 -mthumb -mlittle-endian -mthumb-interwork
CFLAGS += -mfloat-abi=hard -mfpu=fpv4-sp-d16
CFLAGS += -DUSE_STDPERIPH_DRIVER -DSTM32F4XX -DSTM32F429xx
-CFLAGS += -ffunction-sections -fdata-sections
-CFLAGS += -Wl,--gc-sections
+CFLAGS += -ffunction-sections -fdata-sections -Wl,--gc-sections
CFLAGS += -std=c99
CFLAGS += -I $(TOPLEVEL) -I $(STD_PERIPH_LIB)
CFLAGS += -I $(STD_PERIPH_LIB)/CMSIS/Device/ST/STM32F4xx/Include
@@ -77,7 +78,8 @@ CFLAGS += -I $(STD_PERIPH_LIB)/STM32F4xx_HAL_Driver/Inc
CFLAGS += -I libhal
export CFLAGS
-all: lib self-test libhal-tests
+#all: lib self-test libhal-tests
+all: lib libhal-tests
init:
git submodule update --init --recursive
@@ -92,6 +94,7 @@ thirdparty/libtfm/libtfm.a:
libhal/libhal.a: thirdparty/libtfm/libtfm.a
$(MAKE) -C libhal IO_BUS=fmc RPC_SERVER=yes RPC_TRANSPORT=serial KS=volatile libhal.a
+# $(MAKE) -C libhal RPC_CLIENT=local IO_BUS=fmc KS=volatile libhal.a
self-test: $(SELF-TESTS:=.elf)