Makefile (6a3ad243b29be01d0c30f8c3b35a1149e1a0139a) Makefile (fe20cad47e6c79febd323c8db0a1f85896acbcdd)
1# SPDX-License-Identifier: GPL-2.0
2# Makefile for nolibc installation and tests
3include ../../scripts/Makefile.include
4
5# we're in ".../tools/include/nolibc"
6ifeq ($(srctree),)
7srctree := $(patsubst %/tools/include/,%,$(dir $(CURDIR)))
8endif

--- 15 unchanged lines hidden (view full) ---

24endif
25
26nolibc_arch := $(patsubst arm64,aarch64,$(ARCH))
27arch_file := arch-$(nolibc_arch).h
28all_files := ctype.h errno.h nolibc.h signal.h std.h stdio.h stdlib.h string.h \
29 sys.h time.h types.h unistd.h
30
31# install all headers needed to support a bare-metal compiler
1# SPDX-License-Identifier: GPL-2.0
2# Makefile for nolibc installation and tests
3include ../../scripts/Makefile.include
4
5# we're in ".../tools/include/nolibc"
6ifeq ($(srctree),)
7srctree := $(patsubst %/tools/include/,%,$(dir $(CURDIR)))
8endif

--- 15 unchanged lines hidden (view full) ---

24endif
25
26nolibc_arch := $(patsubst arm64,aarch64,$(ARCH))
27arch_file := arch-$(nolibc_arch).h
28all_files := ctype.h errno.h nolibc.h signal.h std.h stdio.h stdlib.h string.h \
29 sys.h time.h types.h unistd.h
30
31# install all headers needed to support a bare-metal compiler
32all:
32all: headers
33
34# Note: when ARCH is "x86" we concatenate both x86_64 and i386
35headers:
36 $(Q)mkdir -p $(OUTPUT)sysroot
37 $(Q)mkdir -p $(OUTPUT)sysroot/include
38 $(Q)cp $(all_files) $(OUTPUT)sysroot/include/
39 $(Q)if [ "$(ARCH)" = "x86" ]; then \
40 sed -e \

--- 18 unchanged lines hidden ---
33
34# Note: when ARCH is "x86" we concatenate both x86_64 and i386
35headers:
36 $(Q)mkdir -p $(OUTPUT)sysroot
37 $(Q)mkdir -p $(OUTPUT)sysroot/include
38 $(Q)cp $(all_files) $(OUTPUT)sysroot/include/
39 $(Q)if [ "$(ARCH)" = "x86" ]; then \
40 sed -e \

--- 18 unchanged lines hidden ---