[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1427930420-4762-4-git-send-email-tyler.baker@linaro.org>
Date: Wed, 1 Apr 2015 16:20:17 -0700
From: Tyler Baker <tyler.baker@...aro.org>
To: Shuah Khan <shuahkh@....samsung.com>
Cc: Kevin Hilman <khilman@...nel.org>,
John Stultz <john.stultz@...aro.org>,
Darren Hart <dvhart@...radead.org>,
David Herrmann <dh.herrmann@...il.com>,
Michael Ellerman <mpe@...erman.id.au>,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
Tyler Baker <tyler.baker@...aro.org>
Subject: [PATCH 3/6] selftest/mount: enable cross compilation
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@...aro.org>
---
tools/testing/selftests/mount/Makefile | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tools/testing/selftests/mount/Makefile b/tools/testing/selftests/mount/Makefile
index a5b367f..95580a9 100644
--- a/tools/testing/selftests/mount/Makefile
+++ b/tools/testing/selftests/mount/Makefile
@@ -1,9 +1,10 @@
# Makefile for mount selftests.
-
+CFLAGS = -Wall \
+ -O2
all: unprivileged-remount-test
unprivileged-remount-test: unprivileged-remount-test.c
- gcc -Wall -O2 unprivileged-remount-test.c -o unprivileged-remount-test
+ $(CC) $(CFLAGS) unprivileged-remount-test.c -o unprivileged-remount-test
include ../lib.mk
--
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists