blob: 0db571340edbd94a7042a63f517f410b42c127d7 [file] [log] [blame]
Andrew Morton66a01b92013-02-27 17:05:56 -08001TARGETS = breakpoints
Andrew Morton66a01b92013-02-27 17:05:56 -08002TARGETS += cpu-hotplug
Andrew Morton66a01b92013-02-27 17:05:56 -08003TARGETS += efivarfs
Andrew Morton96e869d2014-12-18 16:17:43 -08004TARGETS += exec
5TARGETS += firmware
6TARGETS += ftrace
Pavel Emelyanov58c7be82013-04-30 15:27:06 -07007TARGETS += kcmp
David Herrmann4f5ce5e2014-08-08 14:25:32 -07008TARGETS += memfd
Pavel Emelyanov58c7be82013-04-30 15:27:06 -07009TARGETS += memory-hotplug
Eric W. Biedermandb181ce2014-07-29 15:50:44 -070010TARGETS += mount
Andrew Morton96e869d2014-12-18 16:17:43 -080011TARGETS += mqueue
David S. Millera6f68032013-03-20 15:07:56 -040012TARGETS += net
Michael Ellerman0e56dac2013-08-06 17:42:35 +100013TARGETS += powerpc
Andrew Morton96e869d2014-12-18 16:17:43 -080014TARGETS += ptrace
Tim Bird3ce51052014-12-03 10:42:21 -080015TARGETS += size
Andrew Morton96e869d2014-12-18 16:17:43 -080016TARGETS += sysctl
17TARGETS += timers
18TARGETS += user
19TARGETS += vm
20#Please keep the TARGETS list alphabetically sorted
Frederic Weisbecker274343a2012-01-12 17:20:44 -080021
Shuah Khanddddda92014-07-02 09:51:38 -060022TARGETS_HOTPLUG = cpu-hotplug
23TARGETS_HOTPLUG += memory-hotplug
24
Shuah Khan67d87122015-03-18 11:57:39 -060025# Clear LDFLAGS and MAKEFLAGS if called from main
26# Makefile to avoid test build failures when test
27# Makefile doesn't have explicit build rules.
28ifeq (1,$(MAKELEVEL))
29undefine LDFLAGS
30override MAKEFLAGS =
31endif
32
Frederic Weisbecker274343a2012-01-12 17:20:44 -080033all:
34 for TARGET in $(TARGETS); do \
35 make -C $$TARGET; \
36 done;
37
Andrew Mortoncab6b052012-03-28 14:42:54 -070038run_tests: all
Frederic Weisbeckerf467f712012-03-28 14:42:54 -070039 for TARGET in $(TARGETS); do \
40 make -C $$TARGET run_tests; \
41 done;
42
Shuah Khanddddda92014-07-02 09:51:38 -060043hotplug:
44 for TARGET in $(TARGETS_HOTPLUG); do \
45 make -C $$TARGET; \
46 done;
47
48run_hotplug: hotplug
49 for TARGET in $(TARGETS_HOTPLUG); do \
50 make -C $$TARGET run_full_test; \
51 done;
52
53clean_hotplug:
54 for TARGET in $(TARGETS_HOTPLUG); do \
55 make -C $$TARGET clean; \
56 done;
57
Frederic Weisbecker274343a2012-01-12 17:20:44 -080058clean:
59 for TARGET in $(TARGETS); do \
60 make -C $$TARGET clean; \
61 done;