diff options
| author | Tyler Baker <tyler.baker@linaro.org> | 2015-04-01 19:20:17 -0400 |
|---|---|---|
| committer | Shuah Khan <shuahkh@osg.samsung.com> | 2015-04-02 14:40:48 -0400 |
| commit | 365ce9997b40c763413e965bd6a3a87dfce01f74 (patch) | |
| tree | 1f48f3d1997c758bc3e799211752cbe6d21933e9 /tools/testing/selftests | |
| parent | 52dd5576cd0d9d23b0b83b133d853a8ef074ee77 (diff) | |
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@linaro.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing/selftests')
| -rw-r--r-- | tools/testing/selftests/mount/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/testing/selftests/mount/Makefile b/tools/testing/selftests/mount/Makefile index a5b367f032ba..95580a97326e 100644 --- a/tools/testing/selftests/mount/Makefile +++ b/tools/testing/selftests/mount/Makefile | |||
| @@ -1,9 +1,10 @@ | |||
| 1 | # Makefile for mount selftests. | 1 | # Makefile for mount selftests. |
| 2 | 2 | CFLAGS = -Wall \ | |
| 3 | -O2 | ||
| 3 | all: unprivileged-remount-test | 4 | all: unprivileged-remount-test |
| 4 | 5 | ||
| 5 | unprivileged-remount-test: unprivileged-remount-test.c | 6 | unprivileged-remount-test: unprivileged-remount-test.c |
| 6 | gcc -Wall -O2 unprivileged-remount-test.c -o unprivileged-remount-test | 7 | $(CC) $(CFLAGS) unprivileged-remount-test.c -o unprivileged-remount-test |
| 7 | 8 | ||
| 8 | include ../lib.mk | 9 | include ../lib.mk |
| 9 | 10 | ||
