Skip to content

Commit 4f8126f

Browse files
wtarreaupaulmckrcu
authored andcommitted
tools/nolibc: add a help target to list supported targets
The "help" target simply presents the list of supported targets and the current set of variables being used to build the sysroot. Since the help in tools/ suggests to use "install", which is supported by most tools while such a target is not really relevant here, an "install" target was also added, redirecting to "help". Signed-off-by: Willy Tarreau <w@1wt.eu> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
1 parent fe20cad commit 4f8126f

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

tools/include/nolibc/Makefile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,23 @@ all_files := ctype.h errno.h nolibc.h signal.h std.h stdio.h stdlib.h string.h \
3131
# install all headers needed to support a bare-metal compiler
3232
all: headers
3333

34+
install: help
35+
36+
help:
37+
@echo "Supported targets under nolibc:"
38+
@echo " all call \"headers\""
39+
@echo " clean clean the sysroot"
40+
@echo " headers prepare a sysroot in tools/include/nolibc/sysroot"
41+
@echo " headers_standalone like \"headers\", and also install kernel headers"
42+
@echo " help this help"
43+
@echo ""
44+
@echo "These targets may also be called from tools as \"make nolibc_<target>\"."
45+
@echo ""
46+
@echo "Currently using the following variables:"
47+
@echo " ARCH = $(ARCH)"
48+
@echo " OUTPUT = $(OUTPUT)"
49+
@echo ""
50+
3451
# Note: when ARCH is "x86" we concatenate both x86_64 and i386
3552
headers:
3653
$(Q)mkdir -p $(OUTPUT)sysroot

0 commit comments

Comments
 (0)