-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathKbuild.mk
49 lines (42 loc) · 1.19 KB
/
Kbuild.mk
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#
# This file is the root of the build tree for each project
#
# The order of declarations of subdirectories is VERY important,
# as it defines which level has precedence for:
# - the include path search order (for header overrides),
# - the object link order (for weak function overrides).
#
# The current order is:
# - project,
# - core,
# - board,
# - soc.
#
ifdef PROJECT_PATH
# Project specific source and includes
obj-y += $(PROJECT_PATH)/
# Also add the project root include path recursively to the CFLAGS
subdir-cflags-y += -I$(PROJECT_PATH)/include
endif
# Core specific include path
subdir-cflags-y += -I$(MACHINE_INCLUDE_PATH)
ifdef BOARD_PATH
# Board specific source and includes
obj-y += $(BOARD_PATH)/
subdir-cflags-y += -I$(BOARD_PATH)/include
endif
ifdef SOC_PATH
# SoC specific source and includes
obj-y += $(SOC_PATH)/
subdir-cflags-y += -I$(SOC_PATH)/include
endif
# Component framework and services
obj-$(CONFIG_CFW) += framework/
subdir-cflags-y += -I$(T)/framework/include
# Infra, drivers and utils
obj-y += bsp/
subdir-cflags-y += -I$(T)/bsp/include
# Packages are optional SDK components
-include packages/*/package.mk
-include packages/*/*/package.mk
-include packages/*/*/*/package.mk