summaryrefslogtreecommitdiff
path: root/cleopatre/devkit
diff options
context:
space:
mode:
authorThierry Carré2013-03-12 13:26:39 +0100
committerThierry Carré2013-03-19 15:02:36 +0100
commit294424c90ecdb79f53f0da499e121f2ea517b0db (patch)
tree5c3eaa97d3dd8d2cdb099f03f8fe66d73a2542d8 /cleopatre/devkit
parentcb4766887e8eb7ab60bcc7772011c7c678395be1 (diff)
cleo/devkit/tests: initiate libspid stubs with plcd utest, refs #3865
Diffstat (limited to 'cleopatre/devkit')
-rw-r--r--cleopatre/devkit/tests/libspid/stubs/libspid_stub.c12
-rw-r--r--cleopatre/devkit/tests/plcd/Makefile6
2 files changed, 17 insertions, 1 deletions
diff --git a/cleopatre/devkit/tests/libspid/stubs/libspid_stub.c b/cleopatre/devkit/tests/libspid/stubs/libspid_stub.c
new file mode 100644
index 0000000000..5708d4a5c1
--- /dev/null
+++ b/cleopatre/devkit/tests/libspid/stubs/libspid_stub.c
@@ -0,0 +1,12 @@
+/* Cleopatre project {{{
+ *
+ * Copyright (C) 2013 MStar Semiconductor
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file devkit/test/libspid/stubs/libspid_stub.c
+ * \ingroup libspid_stub
+ */
+
diff --git a/cleopatre/devkit/tests/plcd/Makefile b/cleopatre/devkit/tests/plcd/Makefile
index 0f7adaf25e..44fde91130 100644
--- a/cleopatre/devkit/tests/plcd/Makefile
+++ b/cleopatre/devkit/tests/plcd/Makefile
@@ -5,6 +5,7 @@ INCPATH := .
CLEO_DIR := ../../..
PLCD_DIR := $(CLEO_DIR)/devkit/plcd
+LIBSPID_STUBS_DIR := $(CLEO_DIR)/devkit/tests/libspid/stubs
LIBMME_DIR := $(CLEO_DIR)/application/libmme
LIBSPID_DIR := $(CLEO_DIR)/application/libspid
LINUX_DIR := $(CLEO_DIR)/linux-2.6.25.10-spc300
@@ -19,7 +20,7 @@ CC := gcc
CFLAGS := $(INCLUDES) -MMD -Wall -g
LFLAGS := -lcheck
-UTEST_BASE := utest_launcher.o
+UTEST_BASE := utest_launcher.o libspid_stub.o
UTEST_BASE_OBJ := $(addprefix $(OBJPATH)/, $(UTEST_BASE))
SRCS := $(subst $(SRCPATH)/,,$(wildcard $(SRCPATH)/*.c)) \
@@ -46,6 +47,9 @@ $(OBJPATH)/%.o: $(PLCD_SRC_DIR)/%.c
$(OBJPATH)/%.o: $(SRCPATH)/%.c
$(CC) $(CFLAGS) -o $@ -c $<
+$(OBJPATH)/%.o: $(LIBSPID_STUBS_DIR)/%.c
+ $(CC) $(CFLAGS) -o $@ -c $<
+
$(OBJS): | $(OBJPATH)
$(OBJPATH):