From d38936cdae46bfd2623ff83f6ce9b616d36ab0f9 Mon Sep 17 00:00:00 2001
From: Wolfgang Denk <wd@pollux.denx.de>
Date: Fri, 27 Oct 2006 11:55:21 +0200
Subject: [PATCH] Fix "ar" flags in some Makefiles to allow for silent "make
 -s"

---
 board/atmel/atstk1000/Makefile | 2 +-
 board/v38b/Makefile            | 2 +-
 cpu/at32ap/Makefile            | 2 +-
 cpu/at32ap/at32ap7000/Makefile | 2 +-
 cpu/mpc86xx/Makefile           | 2 +-
 lib_avr32/Makefile             | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/board/atmel/atstk1000/Makefile b/board/atmel/atstk1000/Makefile
index 22ac02aa330..155d46ac979 100644
--- a/board/atmel/atstk1000/Makefile
+++ b/board/atmel/atstk1000/Makefile
@@ -32,7 +32,7 @@ SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS	:= $(addprefix $(obj),$(SOBJS) $(COBJS))
 
 $(LIB): $(obj).depend $(OBJS)
-	$(AR) crv $@ $(OBJS)
+	$(AR) $(ARFLAGS) $@ $(OBJS)
 
 #########################################################################
 
diff --git a/board/v38b/Makefile b/board/v38b/Makefile
index 304deaa4f21..b21bd6f6c52 100644
--- a/board/v38b/Makefile
+++ b/board/v38b/Makefile
@@ -32,7 +32,7 @@ OBJS	:= $(addprefix $(obj),$(COBJS))
 SOBJS	:= $(addprefix $(obj),$(SOBJS))
 
 $(LIB):	$(obj).depend $(OBJS)
-	$(AR) crv $@ $(OBJS)
+	$(AR) $(ARFLAGS) $@ $(OBJS)
 
 clean:
 	rm -f $(SOBJS) $(OBJS)
diff --git a/cpu/at32ap/Makefile b/cpu/at32ap/Makefile
index 8ce79e9ef69..f62ec8bc9b2 100644
--- a/cpu/at32ap/Makefile
+++ b/cpu/at32ap/Makefile
@@ -38,7 +38,7 @@ START	:= $(addprefix $(obj),$(START))
 all: $(obj).depend $(START) $(LIB)
 
 $(LIB): $(OBJS)
-	$(AR) crv $@ $^
+	$(AR) $(ARFLAGS) $@ $^
 
 #########################################################################
 
diff --git a/cpu/at32ap/at32ap7000/Makefile b/cpu/at32ap/at32ap7000/Makefile
index 1cd94448663..2ed74d2508c 100644
--- a/cpu/at32ap/at32ap7000/Makefile
+++ b/cpu/at32ap/at32ap7000/Makefile
@@ -31,7 +31,7 @@ OBJS	:= $(addprefix $(obj),$(SOBJS) $(COBJS))
 all: $(obj).depend $(LIB)
 
 $(LIB): $(OBJS)
-	$(AR) crv $@ $^
+	$(AR) $(ARFLAGS) $@ $^
 
 #########################################################################
 
diff --git a/cpu/mpc86xx/Makefile b/cpu/mpc86xx/Makefile
index de5561e9238..fffcfd24029 100644
--- a/cpu/mpc86xx/Makefile
+++ b/cpu/mpc86xx/Makefile
@@ -39,7 +39,7 @@ START	:= $(addprefix $(obj),$(START))
 all:	$(obj).depend $(START) $(LIB)
 
 $(LIB):	$(OBJS)
-	$(AR) crv $@ $(ASOBJS) $(OBJS)
+	$(AR) $(ARFLAGS) $@ $(ASOBJS) $(OBJS)
 
 #########################################################################
 
diff --git a/lib_avr32/Makefile b/lib_avr32/Makefile
index 5b6300ba78a..cf20836023f 100644
--- a/lib_avr32/Makefile
+++ b/lib_avr32/Makefile
@@ -35,7 +35,7 @@ SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS	:= $(addprefix $(obj),$(SOBJS) $(COBJS))
 
 $(LIB):	$(obj).depend $(OBJS)
-	$(AR) crv $@ $(OBJS)
+	$(AR) $(ARFLAGS) $@ $(OBJS)
 
 #########################################################################
 
-- 
GitLab