Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
756fac64
Unverified
Commit
756fac64
authored
6 years ago
by
Soby Mathew
Committed by
GitHub
6 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #1595 from Yann-lms/dts_dep
MAKE_DTB: dependencies on device tree source files
parents
3989a819
077b3e9a
master
v2.5
v2.5-rc1
v2.5-rc0
v2.4
v2.4-rc2
v2.4-rc1
v2.4-rc0
v2.3
v2.3-rc2
v2.3-rc1
v2.3-rc0
v2.2
v2.2-rc2
v2.2-rc1
v2.2-rc0
v2.1
v2.1-rc1
v2.1-rc0
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
make_helpers/build_macros.mk
+11
-4
make_helpers/build_macros.mk
with
11 additions
and
4 deletions
+11
-4
make_helpers/build_macros.mk
View file @
756fac64
...
...
@@ -451,17 +451,24 @@ endef
# $(2) = input dts
define
MAKE_DTB
# List of DTB file(s) to generate, based on DTS file basename list
$(eval DOBJ
:
= $(addprefix $(1)/
,
$(call SOURCES_TO_DTBS
,
$(2))))
# List of the pre-compiled DTS file(s)
$(eval DPRE
:
= $(addprefix $(1)/
,
$(patsubst %.dts
,
%.pre.dts
,
$(notdir $(2)))))
$(eval DEP
:
= $(patsubst %.dtb
,
%.d
,
$(DOBJ)))
# Dependencies of the pre-compiled DTS file(s) on its source and included files
$(eval DTSDEP
:
= $(patsubst %.dtb
,
%.o.d
,
$(DOBJ)))
# Dependencies of the DT compilation on its pre-compiled DTS
$(eval DTBDEP
:
= $(patsubst %.dtb
,
%.d
,
$(DOBJ)))
$(DOBJ)
:
$(2) $(filter-out %.d
,
$(MAKEFILE_LIST)) | fdt_dirs
@
echo
" CPP
$$
<"
$
$(Q)
$
$(CPP)
$
$(CPPFLAGS)
-x
assembler-with-cpp
-o
$(DPRE)
$$
<
$(
eval
DTBS :
=
$(
addprefix
$(1)
/,
$(
call
SOURCES_TO_DTBS,
$(2)
)))
$
$(Q)
$
$(CPP)
$
$(CPPFLAGS)
-x
assembler-with-cpp
-MT
$(DTBS)
-MMD
-MF
$(DTSDEP)
-o
$(DPRE)
$$
<
@
echo
" DTC
$$
<"
$
$(Q)
$
$(DTC)
$
$(DTC_FLAGS)
-i
fdts
-d
$(DEP)
-o
$$
@
$(DPRE)
$
$(Q)
$
$(DTC)
$
$(DTC_FLAGS)
-i
fdts
-d
$(
DTB
DEP)
-o
$$
@
$(DPRE)
-include
$(DEP)
-include
$(DTBDEP)
-include
$(DTSDEP)
endef
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help