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
02126db8
Unverified
Commit
02126db8
authored
Oct 12, 2018
by
Soby Mathew
Committed by
GitHub
Oct 12, 2018
Browse files
Merge pull request #1615 from Andre-ARM/make_s
Makefile: Support totally quiet output with -s
parents
d9f529f5
ee1ba6d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
02126db8
...
...
@@ -74,11 +74,19 @@ CHECK_PATHS := ${ROOT_DIRS_TO_CHECK} \
# Verbose flag
ifeq
(${V},0)
Q
:=
@
ECHO
:=
@echo
CHECKCODE_ARGS
+=
--no-summary
--terse
else
Q
:=
ECHO
:=
@
\#
endif
export
Q
ifneq
($(findstring s,$(filter-out --%,$(MAKEFLAGS))),)
Q
:=
@
ECHO
:=
@
\#
endif
export
Q
ECHO
# Process Debug flag
$(eval
$(call
add_define,DEBUG))
...
...
make_helpers/build_macros.mk
View file @
02126db8
...
...
@@ -177,7 +177,7 @@ endef
# GZIP
define
GZIP_RULE
$(1)
:
$(2)
@
echo
" GZIP
$$
@"
$(ECHO)
" GZIP
$$
@"
$(Q)
gzip
-n
-f
-9
$$
<
--stdout
>
$$
@
endef
...
...
@@ -199,7 +199,7 @@ $(eval OBJ := $(1)/$(patsubst %.c,%.o,$(notdir $(2))))
$(eval DEP
:
= $(patsubst %.o
,
%.d
,
$(OBJ)))
$(OBJ)
:
$(2) $(filter-out %.d
,
$(MAKEFILE_LIST)) | lib$(3)_dirs
@
echo
" CC
$$
<"
$
$(ECHO)
" CC
$$
<"
$
$(Q)
$
$(CC)
$
$(TF_CFLAGS)
$
$(CFLAGS)
$(MAKE_DEP)
-c
$$
<
-o
$$
@
-include
$(DEP)
...
...
@@ -218,7 +218,7 @@ $(eval DEP := $(patsubst %.o,%.d,$(OBJ)))
$(eval IMAGE
:
= IMAGE_BL$(call uppercase
,
$(3)))
$(OBJ)
:
$(2) $(filter-out %.d
,
$(MAKEFILE_LIST)) | bl$(3)_dirs
@
echo
" CC
$$
<"
$
$(ECHO)
" CC
$$
<"
$
$(Q)
$
$(CC)
$
$(TF_CFLAGS)
$
$(CFLAGS)
-D
$(IMAGE)
$(MAKE_DEP)
-c
$$
<
-o
$$
@
-include
$(DEP)
...
...
@@ -237,7 +237,7 @@ $(eval DEP := $(patsubst %.o,%.d,$(OBJ)))
$(eval IMAGE
:
= IMAGE_BL$(call uppercase
,
$(3)))
$(OBJ)
:
$(2) $(filter-out %.d
,
$(MAKEFILE_LIST)) | bl$(3)_dirs
@
echo
" AS
$$
<"
$
$(ECHO)
" AS
$$
<"
$
$(Q)
$
$(AS)
$
$(ASFLAGS)
-D
$(IMAGE)
$(MAKE_DEP)
-c
$$
<
-o
$$
@
-include
$(DEP)
...
...
@@ -255,7 +255,7 @@ $(eval DEP := $(1).d)
$(eval IMAGE
:
= IMAGE_BL$(call uppercase
,
$(3)))
$(1)
:
$(2) $(filter-out %.d
,
$(MAKEFILE_LIST)) | bl$(3)_dirs
@
echo
" PP
$$
<"
$
$(ECHO)
" PP
$$
<"
$
$(Q)
$
$(CPP)
$
$(CPPFLAGS)
-P
-D__ASSEMBLY__
-D__LINKER__
$(MAKE_DEP)
-D
$(IMAGE)
-o
$$
@
$$
<
-include
$(DEP)
...
...
@@ -344,7 +344,7 @@ endif
all
:
${LIB_DIR}/lib$(1).a
${LIB_DIR}/lib$(1).a
:
$(OBJS)
@
echo
" AR
$$
@"
$
$(ECHO)
" AR
$$
@"
$
$(Q)
$
$(AR)
cr
$$
@
$$
?
endef
...
...
@@ -392,7 +392,7 @@ $(ELF): romlib.bin
endif
$(ELF)
:
$(OBJS) $(LINKERFILE) | bl$(1)_dirs libraries $(BL_LIBS)
@
echo
" LD
$$
@"
$
$(ECHO)
" LD
$$
@"
ifdef
MAKE_BUILD_STRINGS
$(
call
MAKE_BUILD_STRINGS,
$(BUILD_DIR)
/build_message.o
)
else
...
...
@@ -405,11 +405,11 @@ endif
$(OBJS)
$(LDPATHS)
$(LDLIBS)
$(BL_LIBS)
$(DUMP)
:
$(ELF)
@
echo
" OD
$$
@"
$
${ECHO}
" OD
$$
@"
$
${Q}
$
${OD}
-dx
$$
<
>
$$
@
$(BIN)
:
$(ELF)
@
echo
" BIN
$$
@"
$
${ECHO}
" BIN
$$
@"
$
$(Q)
$
$(OC)
-O
binary
$$
<
$$
@
@
${ECHO_BLANK_LINE}
@
echo
"Built
$$
@ successfully"
...
...
@@ -461,10 +461,10 @@ $(eval DTSDEP := $(patsubst %.dtb,%.o.d,$(DOBJ)))
$(eval DTBDEP
:
= $(patsubst %.dtb
,
%.d
,
$(DOBJ)))
$(DOBJ)
:
$(2) $(filter-out %.d
,
$(MAKEFILE_LIST)) | fdt_dirs
@
echo
" CPP
$$
<"
$
${ECHO}
" CPP
$$
<"
$(
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
$$
<"
$
${ECHO}
" DTC
$$
<"
$
$(Q)
$
$(DTC)
$
$(DTC_FLAGS)
-i
fdts
-d
$(DTBDEP)
-o
$$
@
$(DPRE)
-include
$(DTBDEP)
...
...
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