summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKumar Gala <kumar.gala@linaro.org>2016-06-03 10:52:12 -0500
committerAndrew Boie <andrew.p.boie@intel.com>2016-07-31 21:02:32 +0000
commit44b712da85db4088c5ca92157335889ebda00496 (patch)
treea037a8ee353474883afca8b0b2577e27618f388d /Makefile
parent31994e06459fccd0e395b58e683e82f12bd2aa32 (diff)
build: use quiet cmd for AR of libzephyr.a
Introduce a quiet_cmd to create the .a for libzephyr.a so that we can get see explicitly what's going on if V=1 is set Change-Id: Id0a3cf0aefac4f28bab1da3ba244b7dcead394a8 Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d73a9e852..9fb9045f0 100644
--- a/Makefile
+++ b/Makefile
@@ -768,9 +768,10 @@ LINK_LIBS := $(foreach l,$(ALL_LIBS), -l$(l))
OUTPUT_FORMAT ?= elf32-i386
OUTPUT_ARCH ?= i386
+quiet_cmd_ar_target = AR $@
+cmd_ar_target = rm -f $@; $(AR) rcT$(KBUILD_ARFLAGS) $@ $(KBUILD_ZEPHYR_MAIN)
libzephyr.a: $(zephyr-deps)
- @rm -f $@
- $(Q)$(AR) -rcT libzephyr.a $(KBUILD_ZEPHYR_MAIN)
+ $(call cmd,ar_target)
quiet_cmd_create-lnk = LINK $@
cmd_create-lnk = \