Skip to content
GitLab
Menu
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
e9b77791
Unverified
Commit
e9b77791
authored
Jan 28, 2019
by
Antonio Niño Díaz
Committed by
GitHub
Jan 28, 2019
Browse files
Merge pull request #1780 from pmanish87/master
Make device tree pre-processing similar to U-boot/Linux
parents
d4dcadb0
7e94a699
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
e9b77791
...
@@ -242,6 +242,7 @@ TF_LDFLAGS += --gc-sections
...
@@ -242,6 +242,7 @@ TF_LDFLAGS += --gc-sections
TF_LDFLAGS
+=
$
(
TF_LDFLAGS_
$(ARCH)
)
TF_LDFLAGS
+=
$
(
TF_LDFLAGS_
$(ARCH)
)
DTC_FLAGS
+=
-I
dts
-O
dtb
DTC_FLAGS
+=
-I
dts
-O
dtb
DTC_CPPFLAGS
+=
-nostdinc
-Iinclude
-undef
-x
assembler-with-cpp
################################################################################
################################################################################
# Common sources and include directories
# Common sources and include directories
...
...
make_helpers/build_macros.mk
View file @
e9b77791
...
@@ -464,7 +464,7 @@ $(eval DTBDEP := $(patsubst %.dtb,%.d,$(DOBJ)))
...
@@ -464,7 +464,7 @@ $(eval DTBDEP := $(patsubst %.dtb,%.d,$(DOBJ)))
$(DOBJ)
:
$(2) $(filter-out %.d
,
$(MAKEFILE_LIST)) | fdt_dirs
$(DOBJ)
:
$(2) $(filter-out %.d
,
$(MAKEFILE_LIST)) | fdt_dirs
$
${ECHO}
" CPP
$$
<"
$
${ECHO}
" CPP
$$
<"
$(
eval
DTBS :
=
$(
addprefix
$(1)
/,
$(
call
SOURCES_TO_DTBS,
$(2)
)))
$(
eval
DTBS :
=
$(
addprefix
$(1)
/,
$(
call
SOURCES_TO_DTBS,
$(2)
)))
$
$(Q)
$
$(
C
PP)
$
$(CPPFLAGS)
-x
assembler-with-cpp
-MT
$(DTBS)
-MMD
-MF
$(DTSDEP)
-o
$(DPRE)
$$
<
$
$(Q)
$
$(PP)
$
$(
DTC_
CPPFLAGS)
-MT
$(DTBS)
-MMD
-MF
$(DTSDEP)
-o
$(DPRE)
$$
<
$
${ECHO}
" DTC
$$
<"
$
${ECHO}
" DTC
$$
<"
$
$(Q)
$
$(DTC)
$
$(DTC_FLAGS)
-i
fdts
-d
$(DTBDEP)
-o
$$
@
$(DPRE)
$
$(Q)
$
$(DTC)
$
$(DTC_FLAGS)
-i
fdts
-d
$(DTBDEP)
-o
$$
@
$(DPRE)
...
...
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