blob: 77d380c1dd7a8c21de0640ff84b978525a9e7c8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
targets += lib/runtime lib/string lib/libfdt lib/core
target.lib/runtime.kind := source-set
target.lib/runtime.sources := \
lib/cxx_abi.cc lib/rbtree.cc lib/kobject.cc lib/kprintf.cc lib/klog.cc \
lib/random.cc lib/printf.c
target.lib/string.kind := static-library
target.lib/string.sources := $(sort $(wildcard lib/string/*.c))
# Architecture assembly replaces the matching generic C implementation.
string-arch.riscv :=
string-arch.x86_64 := x86_64
string-arch.aarch64 := aarch64
string-arch.i386 := i386
string-arch.arm := arm
string-arch := $(string-arch.$(ARCH))
ifneq ($(string-arch),)
string-asm := $(sort $(wildcard lib/string/$(string-arch)/*.S) \
$(wildcard lib/string/$(string-arch)/*.s))
string-asm-names := $(sort $(basename $(notdir $(string-asm))))
target.lib/string.sources := $(filter-out \
$(foreach name,$(string-asm-names),lib/string/$(name).c), \
$(target.lib/string.sources)) $(string-asm)
endif
target.lib/libfdt.kind := static-library
target.lib/libfdt.sources := \
lib/fdt.c lib/fdt_ro.c lib/fdt_wip.c lib/fdt_rw.c lib/fdt_sw.c \
lib/fdt_strerror.c lib/fdt_empty_tree.c lib/fdt_addresses.c
target.lib/libfdt.private-includes := scripts/dtc/libfdt
target.lib/libfdt.cflags := -Wno-parentheses -Wno-sign-compare
target.lib/core.kind := header-library
target.lib/core.deps := lib/runtime lib/string lib/libfdt
|