Skip to content

Commit fe20cad

Browse files
wtarreaupaulmckrcu
authored andcommitted
tools/nolibc: make the default target build the headers
The help in "make -C tools" enumerates nolibc as a valid target so we must at least make it do something. Let's make it do the equivalent of "make headers" in that it will prepare a sysroot with the arch's headers, but will not install the kernel's headers. This is the minimum some tools will need when built with a full-blown toolchain anyway. Signed-off-by: Willy Tarreau <w@1wt.eu> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
1 parent 6a3ad24 commit fe20cad

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

tools/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ bpf/%: FORCE
7878
libapi: FORCE
7979
$(call descend,lib/api)
8080

81+
nolibc: FORCE
82+
$(call descend,include/nolibc)
83+
8184
nolibc_%: FORCE
8285
$(call descend,include/nolibc,$(patsubst nolibc_%,%,$@))
8386

tools/include/nolibc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ all_files := ctype.h errno.h nolibc.h signal.h std.h stdio.h stdlib.h string.h \
2929
sys.h time.h types.h unistd.h
3030

3131
# install all headers needed to support a bare-metal compiler
32-
all:
32+
all: headers
3333

3434
# Note: when ARCH is "x86" we concatenate both x86_64 and i386
3535
headers:

0 commit comments

Comments
 (0)