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

selftests/timers: Cleanup Makefile to make it easier to add future tests

Try to streamline the makefile so its easier to add timer/timekeeping
tests.

Also adds support for the CROSS_COMPILE variable.

Cc: Shuah Khan <shuahkh@osg.samsung.com>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Tested-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>

authored by

John Stultz and committed by
Shuah Khan
03438212 9eccca08

+8 -3
+8 -3
tools/testing/selftests/timers/Makefile
··· 1 - all: 2 - gcc posix_timers.c -o posix_timers -lrt 1 + CC = $(CROSS_COMPILE)gcc 2 + BUILD_FLAGS = -DKTEST 3 + CFLAGS += -O3 -Wl,-no-as-needed -Wall $(BUILD_FLAGS) 4 + LDFLAGS += -lrt -lpthread 5 + bins = posix_timers 6 + 7 + all: ${bins} 3 8 4 9 run_tests: all 5 10 ./posix_timers 6 11 7 12 clean: 8 - rm -f ./posix_timers 13 + rm -f ${bins}