linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: tyler.baker@linaro.org (Tyler Baker)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/6] selftest/memfd: enable cross compilation
Date: Wed,  1 Apr 2015 16:20:15 -0700	[thread overview]
Message-ID: <1427930420-4762-2-git-send-email-tyler.baker@linaro.org> (raw)
In-Reply-To: <1427930420-4762-1-git-send-email-tyler.baker@linaro.org>

Use the CC variable instead of hard coding gcc. Also clean up the compiler
options by creating a CFLAGS variable.

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

diff --git a/tools/testing/selftests/memfd/Makefile b/tools/testing/selftests/memfd/Makefile
index 191dee9..69f08ab 100644
--- a/tools/testing/selftests/memfd/Makefile
+++ b/tools/testing/selftests/memfd/Makefile
@@ -1,17 +1,18 @@
+CC = $(CROSS_COMPILE)gcc
 CFLAGS += -D_FILE_OFFSET_BITS=64
 CFLAGS += -I../../../../include/uapi/
 CFLAGS += -I../../../../include/
 
 all:
-	gcc $(CFLAGS) memfd_test.c -o memfd_test
+	$(CC) $(CFLAGS) memfd_test.c -o memfd_test
 
 TEST_PROGS := memfd_test
 
 include ../lib.mk
 
 build_fuse:
-	gcc $(CFLAGS) fuse_mnt.c `pkg-config fuse --cflags --libs` -o fuse_mnt
-	gcc $(CFLAGS) fuse_test.c -o fuse_test
+	$(CC) $(CFLAGS) fuse_mnt.c `pkg-config fuse --cflags --libs` -o fuse_mnt
+	$(CC) $(CFLAGS) fuse_test.c -o fuse_test
 
 run_fuse: build_fuse
 	@./run_fuse_test.sh || echo "fuse_test: [FAIL]"
-- 
2.1.4

  reply	other threads:[~2015-04-01 23:20 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-01 23:20 [PATCH 0/6] selftests: improve cross compilation support Tyler Baker
2015-04-01 23:20 ` Tyler Baker [this message]
2015-04-01 23:20 ` [PATCH 2/6] selftest/kdbus: enable cross compilation Tyler Baker
2015-04-02 17:28   ` Shuah Khan
2015-04-02 22:04     ` Greg Kroah-Hartman
2015-04-03 14:28   ` Greg KH
2015-04-01 23:20 ` [PATCH 3/6] selftest/mount: " Tyler Baker
2015-04-01 23:20 ` [PATCH 4/6] selftest/memfd: include default header install path Tyler Baker
2015-04-01 23:20 ` [PATCH 5/6] selftest/ipc: enable cross compilation Tyler Baker
2015-04-01 23:20 ` [PATCH 6/6] selftest/mqueue: " Tyler Baker
2015-04-02 13:53 ` [PATCH 0/6] selftests: improve cross compilation support Shuah Khan
2015-04-02 17:19   ` Tyler Baker
2015-04-02 17:23   ` Shuah Khan
2015-04-02 18:47     ` Shuah Khan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1427930420-4762-2-git-send-email-tyler.baker@linaro.org \
    --to=tyler.baker@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).