diff options
author | Martin Roth <martinroth@chromium.org> | 2016-10-24 16:24:44 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-11-16 16:47:42 -0800 |
commit | 8feb3ab4ec68d230493c45b1d43835d04a37b398 (patch) | |
tree | 5aa3d873d0e717a5c20bc8325ee3ec599fcfb31c /Makefile.rules | |
parent | b2bc2341978884cf0bde01c1b9de06ea0c092576 (diff) | |
download | chrome-ec-8feb3ab4ec68d230493c45b1d43835d04a37b398.tar.gz |
makefile: Add help target
This just adds some basic output as a reminder of what targets
do what.
BUG=none
BRANCH=none
TEST=make help shows useful output
Change-Id: Ic46f153ce8ed0b39294644a01eba8e06f2abe1c6
Signed-off-by: Martin Roth <martinroth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/403497
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules index f1bd06374b..25131515ec 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -389,6 +389,24 @@ clean: clobber: -rm -rf build TAGS cscope.files cscope.out +.PHONY: help +help: + @echo "Google Chromium EC build" + @echo "Common Targets:" + @echo " all [BOARD=] - Build a single board (Default target)" + @echo " clean [BOARD=] - Clean a single board" + @echo " buildall - Build and test all boards" + @echo " clobber - Clean all boards" + @echo " proj-<boardname> - Build a single board (similar to 'all BOARD=boardname')" + @echo " savesizes - Save the filesizes of currently built boards for comparison" + @echo " newsizes - Compare previously saved filesizes against new sizes" + @echo "Common Variables:" + @echo " BOARD= - Set the board name to build (Default is $(BOARD))" + @echo " CROSS_COMPILE= - Set the compiler for the board" + @echo " V=1 - Show make output" + @echo "Example:" + @echo " make BOARD=reef CROSS_COMPILE='arm-eabi-'" + .PHONY: savesizes savesizes: @find $(BUILD_DIR) -name '*.flat' -printf "%s %p\n" | sort --key 2 > \ |