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
bdd33afc
Unverified
Commit
bdd33afc
authored
6 years ago
by
Dimitris Papastamos
Committed by
GitHub
6 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #1421 from Yann-lms/cpp_dtc
Build: add cpp build processing for dtb
parents
a125014b
01d237cb
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+2
-1
Makefile
make_helpers/build_macros.mk
+4
-1
make_helpers/build_macros.mk
with
6 additions
and
2 deletions
+6
-2
Makefile
View file @
bdd33afc
...
...
@@ -198,7 +198,8 @@ BL_COMMON_SOURCES += common/bl_common.c \
${COMPILER_RT_SRCS}
\
${STDLIB_SRCS}
INCLUDES
+=
-Iinclude
/bl1
\
INCLUDES
+=
-Iinclude
\
-Iinclude
/bl1
\
-Iinclude
/bl2
\
-Iinclude
/bl2u
\
-Iinclude
/bl31
\
...
...
This diff is collapsed.
Click to expand it.
make_helpers/build_macros.mk
View file @
bdd33afc
...
...
@@ -372,11 +372,14 @@ endef
define
MAKE_DTB
$(eval DOBJ
:
= $(addprefix $(1)/
,
$(call SOURCES_TO_DTBS
,
$(2))))
$(eval DPRE
:
= $(addprefix $(1)/
,
$(patsubst %.dts
,
%.pre.dts
,
$(notdir $(2)))))
$(eval DEP
:
= $(patsubst %.dtb
,
%.d
,
$(DOBJ)))
$(DOBJ)
:
$(2) $(filter-out %.d
,
$(MAKEFILE_LIST)) | fdt_dirs
@
echo
" CPP
$$
<"
$
$(Q)
$
$(CPP)
$
$(CPPFLAGS)
-x
assembler-with-cpp
-o
$(DPRE)
$$
<
@
echo
" DTC
$$
<"
$
$(Q)
$
$(DTC)
$
$(DTC_FLAGS)
-d
$(DEP)
-o
$$
@
$
$
<
$
$(Q)
$
$(DTC)
$
$(DTC_FLAGS)
-i
fdts
-d
$(DEP)
-o
$$
@
$
(DPRE)
-include
$(DEP)
...
...
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