Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Tyler Baker and committed by
Shuah Khan
365ce999 52dd5576

+3 -2
+3 -2
tools/testing/selftests/mount/Makefile
··· 1 1 # Makefile for mount selftests. 2 - 2 + CFLAGS = -Wall \ 3 + -O2 3 4 all: unprivileged-remount-test 4 5 5 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 9 include ../lib.mk 9 10