diff mbox

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

Message ID 1427930420-4762-3-git-send-email-tyler.baker@linaro.org (mailing list archive)
State New, archived
Headers show

Commit Message

Tyler Baker April 1, 2015, 11:20 p.m. UTC
Use the CC variable instead of hard coding gcc and include lib.mk.

Signed-off-by: Tyler Baker <tyler.baker@linaro.org>
---
 tools/testing/selftests/kdbus/Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Comments

Shuah Khan April 2, 2015, 5:28 p.m. UTC | #1
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 <tyler.baker@linaro.org>

Greg,

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

Acked-by: Shuah Khan <shuahkh@osg.samsung.com>

thanks,
-- Shuah

> ---
>  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
>
Greg KH April 2, 2015, 10:04 p.m. UTC | #2
On Thu, Apr 02, 2015 at 11:28:23AM -0600, Shuah Khan wrote:
> 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 <tyler.baker@linaro.org>
> 
> Greg,
> 
> Will you be able to take this patch in with the other
> kdbus sleftest patches?
> 
> Acked-by: Shuah Khan <shuahkh@osg.samsung.com>

Thanks, I'll pick this up through my tree.

greg k-h
Greg KH April 3, 2015, 2:28 p.m. UTC | #3
On Wed, Apr 01, 2015 at 04:20:16PM -0700, Tyler Baker wrote:
> 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>
> ---
>  tools/testing/selftests/kdbus/Makefile | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)

Applied to my kdbus branch, thanks.

greg k-h
diff mbox

Patch

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