summaryrefslogtreecommitdiffstats
path: root/tests/libsercomstub.c
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2018-01-18 16:50:51 +0100
committerHarald Welte <laforge@gnumonks.org>2018-01-21 19:08:05 +0000
commit3da793857d78142e3594c67f4405ad19b57e9cd1 (patch)
tree7fbe83f996ef57992b75d643b8ebc83591a80bf9 /tests/libsercomstub.c
parent89c8c4027b54cb1d20448a7c624b373b40823403 (diff)
Embedded: add sercomm stubs
The sercomm functions are unavailable in case of embedded build. Add stub and link the tests against it. Change-Id: I9bc5cb2f822b1a3ffdc6ec29f46b6bac8288314e
Diffstat (limited to 'tests/libsercomstub.c')
-rw-r--r--tests/libsercomstub.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/libsercomstub.c b/tests/libsercomstub.c
new file mode 100644
index 00000000..99662d02
--- /dev/null
+++ b/tests/libsercomstub.c
@@ -0,0 +1,3 @@
+/* Stubs for embedded build */
+void sercomm_drv_lock(unsigned long __attribute__((unused)) *flags) {}
+void sercomm_drv_unlock(unsigned long __attribute__((unused)) *flags) {}