Commit f5068365 authored by Charles Jacobsen's avatar Charles Jacobsen
Browse files

lcd: Fix kernel tests build and install

parent d1d9a2ba
......@@ -28,8 +28,9 @@ export AM_CPPFLAGS COMMON_SRCS
LIBFIPC_KBUILD=@abs_top_builddir@/src/platform/kernel
LIBFIPC_TESTS_KBUILD=@abs_top_builddir@/src/platform/kernel/tests
LIBFIPC_PATH=../libfipc.a # relative to tests dir
export LIBFIPC_TESTS_KBUILD
export LIBFIPC_TESTS_KBUILD LIBFIPC_PATH
if ENABLE_KERNEL_TESTS_BUILD
......
LIBFIPC=$(abs_top_buildir)/src/platform/kernel/libfipc.a
export LIBFIPC
# D=install dir (something/lib)
install-tests:
cp $(LIBFIPC_TESTS_KBUILD)/rpc/libfipc_test_rpc.ko $(D)
......@@ -6,8 +6,9 @@ src = @abs_top_srcdir@/src/platform/kernel/tests/rpc
obj-m = libfipc_test_rpc.o
# Path are relative to root test/ dir
libfipc_test_rpc-y += main.o callee.o caller.o
libfipc_test_rpc-y += $(LIBFIPC)
libfipc_test_rpc-y += ../$(LIBFIPC_PATH) # libfipc.a is relative to tests/
# Add -DCHECK_MESSAGES to check that message values contain what is expected
ccflags-y += $(CFLAGS) $(AM_CPPFLAGS) -DCHECK_MESSAGES
......@@ -69,7 +69,7 @@ test_fipc_wait_for_thread(struct task_struct *thread)
{
int ret;
ret = kthread_stop(thread);
release_thread(thread);
test_fipc_release_thread(thread);
return ret;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment