diff options
-rw-r--r-- | Makefile | 7 | ||||
-rw-r--r-- | tools/Makefile | 10 |
2 files changed, 17 insertions, 0 deletions
@@ -1468,6 +1468,13 @@ kernelrelease: | |||
1468 | kernelversion: | 1468 | kernelversion: |
1469 | @echo $(KERNELVERSION) | 1469 | @echo $(KERNELVERSION) |
1470 | 1470 | ||
1471 | # Clear a bunch of variables before executing the submake | ||
1472 | tools/: FORCE | ||
1473 | $(Q)$(MAKE) LDFLAGS= MAKEFLAGS= -C $(src)/tools/ | ||
1474 | |||
1475 | tools/%: 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' |