Dmitry Safonov
cc08d1b91d
selftests/x86: Add <test_name>{,_32,_64} targets
One can only use `make all` or `make <test_name>_<bitness>`
as make targets.
`make <test_name>` doesn't work as Ingo noticed:
x86> make test_vsyscall
gcc -O2 -g -std=gnu99 -pthread -Wall -no-pie test_vsyscall.c -o test_vsyscall
/tmp/aBaoo3nb.o: In function `init_vdso':
test_vsyscall.c:68: undefined reference to `dlopen'
test_vsyscall.c:76: undefined reference to `dlsym'
test_vsyscall.c:80: undefined reference to `dlsym'
test_vsyscall.c:84: undefined reference to `dlsym'
test_vsyscall.c:88: undefined reference to `dlsym'
test_vsyscall.c:70: undefined reference to `dlopen'
collect2: error: ld returned 1 exit status
<builtin>: recipe for target 'test_vsyscall' failed
make: *** [test_vsyscall] Error 1
Makefile target substitution neither works :-/
Generate .PHONY targets per-test and fix target substitution.
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kselftest@vger.kernel.org
Cc: x86@kernel.org
Reported-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Dmitry Safonov <dima@arista.com>
Reviewed-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
2018-01-23 07:46:55 -07:00
..
2017-05-03 10:55:20 -06:00
2017-11-16 11:43:12 +01:00
2015-05-12 20:02:40 -06:00
2016-01-29 09:46:37 +01:00
2017-11-08 11:16:25 +01:00
2017-08-10 17:15:13 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-07 11:13:43 +01:00
2018-01-23 07:46:55 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-21 09:34:52 +01:00
2017-07-19 19:13:15 -05:00
2017-11-02 11:10:55 +01:00
2017-11-21 09:34:52 +01:00
2017-11-21 09:34:52 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2016-09-13 20:34:15 +02:00
2017-03-01 10:24:56 +01:00
2015-07-07 10:58:30 +02:00
2016-03-10 09:48:12 +01:00
2017-01-05 09:20:02 +01:00
2015-05-08 13:33:59 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2016-07-08 14:17:51 +02:00
2015-09-18 09:40:48 +02:00
2017-11-02 11:10:55 +01:00
2015-09-18 09:40:48 +02:00
2015-05-08 13:33:59 +02:00
2015-05-12 20:02:40 -06:00
2015-05-26 15:58:41 -06:00
2015-10-14 16:56:28 +02:00
2016-01-13 10:34:40 +01:00