aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile7
-rw-r--r--tools/Makefile10
2 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1932984478c1..23b9ce5a2c2c 100644
--- a/Makefile
+++ b/Makefile
@@ -1468,6 +1468,13 @@ kernelrelease:
1468kernelversion: 1468kernelversion:
1469 @echo $(KERNELVERSION) 1469 @echo $(KERNELVERSION)
1470 1470
1471# Clear a bunch of variables before executing the submake
1472tools/: FORCE
1473 $(Q)$(MAKE) LDFLAGS= MAKEFLAGS= -C $(src)/tools/
1474
1475tools/%: FORCE
1476 $(Q)$(MAKE) LDFLAGS= MAKEFLAGS= -C $(src)/tools/ $*
1477
1471# Single targets 1478# Single targets
1472# --------------------------------------------------------------------------- 1479# ---------------------------------------------------------------------------
1473# Single targets are compatible with: 1480# Single targets are compatible with:
diff --git a/tools/Makefile b/tools/Makefile
index f87c0ec63e6c..3ae43947a171 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -14,6 +14,16 @@ help:
14 @echo ' vm - misc vm tools' 14 @echo ' vm - misc vm tools'
15 @echo ' x86_energy_perf_policy - Intel energy policy tool' 15 @echo ' x86_energy_perf_policy - Intel energy policy tool'
16 @echo '' 16 @echo ''
17 @echo 'You can do:'
18 @echo ' $$ make -C tools/<tool>_install'
19 @echo ''
20 @echo ' from the kernel command line to build and install one of'
21 @echo ' the tools above'
22 @echo ''
23 @echo ' $$ make tools/install'
24 @echo ''
25 @echo ' installs all tools.'
26 @echo ''
17 @echo 'Cleaning targets:' 27 @echo 'Cleaning targets:'
18 @echo '' 28 @echo ''
19 @echo ' all of the above with the "_clean" string appended cleans' 29 @echo ' all of the above with the "_clean" string appended cleans'