diff options
author | Tyler Baker <tyler.baker@linaro.org> | 2015-04-01 16:20:16 -0700 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2016-12-14 13:48:41 +0900 |
commit | 545fb44e05bd6c2caac0252769449691565add4d (patch) | |
tree | 76691e4202512453c46809d6cb5204486823fa0d /tools | |
parent | 60417f99ead9627e1982e29ebc39856a6682c606 (diff) |
selftest/kdbus: enable cross compilation
Use the CC variable instead of hard coding gcc and include lib.mk.
Signed-off-by: Tyler Baker <tyler.baker@linaro.org>
Acked-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paul Osmialowski <p.osmialowsk@samsung.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/kdbus/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/testing/selftests/kdbus/Makefile b/tools/testing/selftests/kdbus/Makefile index f6cfab26f315..de8242f9b00e 100644 --- a/tools/testing/selftests/kdbus/Makefile +++ b/tools/testing/selftests/kdbus/Makefile @@ -33,11 +33,13 @@ OBJS= \ all: kdbus-test +include ../lib.mk + %.o: %.c - gcc $(CFLAGS) -c $< -o $@ + $(CC) $(CFLAGS) -c $< -o $@ kdbus-test: $(OBJS) - gcc $(CFLAGS) $^ $(LDLIBS) -o $@ + $(CC) $(CFLAGS) $^ $(LDLIBS) -o $@ run_tests: ./kdbus-test --tap |