[PATCH 2/6] selftest/kdbus: enable cross compilation

From
Shuah Khan <hidden>
Date
2015-04-02 17:28:26
Also in
lkml
Reply to
Tyler Baker, 2015-04-01
On 04/01/2015 05:20 PM, Tyler Baker wrote:
Use the CC variable instead of hard coding gcc and include lib.mk.

Signed-off-by: Tyler Baker <redacted>
Greg,

Will you be able to take this patch in with the other
kdbus sleftest patches?

Acked-by: Shuah Khan <redacted>

thanks,
-- Shuah
quoted hunk ↗ jump to hunk
---
 tools/testing/selftests/kdbus/Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tools/testing/selftests/kdbus/Makefile b/tools/testing/selftests/kdbus/Makefile
index f6cfab2..de8242f 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

-- 
Shuah Khan
Sr. Linux Kernel Developer
Open Source Innovation Group
Samsung Research America (Silicon Valley)
shuahkh at osg.samsung.com | (970) 217-8978
Thread (14 messages) 14 messages, 3 authors, last reply 2015-04-03
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help