[U-Boot-Users] [PATCH] Cleanup: replace hard-wired $(AR) 'crv' settings by $(ARFLAGS)

Wolfgang Denk wd at denx.de
Sun Jul 6 00:37:59 CEST 2008


Signed-off-by: Wolfgang Denk <wd at denx.de>
---
 board/MigoR/Makefile              |    2 +-
 board/freescale/m5275evb/Makefile |    2 +-
 board/linkstation/Makefile        |    2 +-
 board/lpc2292sodimm/Makefile      |    2 +-
 board/m501sk/Makefile             |    2 +-
 board/mpr2/Makefile               |    2 +-
 board/ms7720se/Makefile           |    2 +-
 board/ms7722se/Makefile           |    2 +-
 board/ms7750se/Makefile           |    2 +-
 board/r2dplus/Makefile            |    2 +-
 board/r7780mp/Makefile            |    2 +-
 board/sh7763rdp/Makefile          |    2 +-
 board/siemens/SMN42/Makefile      |    2 +-
 cpu/sh3/Makefile                  |    2 +-
 cpu/sh4/Makefile                  |    2 +-
 15 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/board/MigoR/Makefile b/board/MigoR/Makefile
index 5a9d651..f1e2856 100644
--- a/board/MigoR/Makefile
+++ b/board/MigoR/Makefile
@@ -30,7 +30,7 @@ OBJS	:= migo_r.o
 SOBJS	:= lowlevel_init.o
 
 $(LIB):	$(OBJS) $(SOBJS)
-	$(AR) crv $@ $(OBJS) $(SOBJS)
+	$(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
 
 clean:
 	rm -f $(SOBJS) $(OBJS)
diff --git a/board/freescale/m5275evb/Makefile b/board/freescale/m5275evb/Makefile
index 9a0fa80..5d09afe 100644
--- a/board/freescale/m5275evb/Makefile
+++ b/board/freescale/m5275evb/Makefile
@@ -28,7 +28,7 @@ LIB	= lib$(BOARD).a
 OBJS	= $(BOARD).o mii.o
 
 $(LIB):	.depend $(OBJS)
-	$(AR) crv $@ $(OBJS)
+	$(AR) $(ARFLAGS) $@ $(OBJS)
 
 #########################################################################
 
diff --git a/board/linkstation/Makefile b/board/linkstation/Makefile
index 8d92d8a..8f4da0c 100644
--- a/board/linkstation/Makefile
+++ b/board/linkstation/Makefile
@@ -31,7 +31,7 @@ SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS	:= $(addprefix $(obj),$(OBJS))
 
 $(LIB):	$(obj).depend $(OBJS)
-	$(AR) crv $@ $(OBJS)
+	$(AR) $(ARFLAGS) $@ $(OBJS)
 
 #########################################################################
 
diff --git a/board/lpc2292sodimm/Makefile b/board/lpc2292sodimm/Makefile
index 18a95d7..4eeb032 100644
--- a/board/lpc2292sodimm/Makefile
+++ b/board/lpc2292sodimm/Makefile
@@ -33,7 +33,7 @@ OBJS	:= $(addprefix $(obj),$(COBJS))
 SOBJS	:= $(addprefix $(obj),$(SOBJTS))
 
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
-	$(AR) crv $@ $(OBJS) $(SOBJS)
+	$(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
 
 clean:
 	rm -f $(SOBJS) $(OBJS)
diff --git a/board/m501sk/Makefile b/board/m501sk/Makefile
index b403095..0fd7452 100644
--- a/board/m501sk/Makefile
+++ b/board/m501sk/Makefile
@@ -34,7 +34,7 @@ OBJS	:= $(addprefix $(obj),$(COBJS))
 SOBJS	:= $(addprefix $(obj),$(SOBJS))
 
 $(LIB):	$(OBJS) $(SOBJS)
-	$(AR) crv $@ $(OBJS) $(SOBJS)
+	$(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
 
 clean:
 	rm -f $(SOBJS) $(OBJS)
diff --git a/board/mpr2/Makefile b/board/mpr2/Makefile
index 17ca17e..a10ec77 100644
--- a/board/mpr2/Makefile
+++ b/board/mpr2/Makefile
@@ -36,7 +36,7 @@ OBJS	:= mpr2.o
 SOBJS	:= lowlevel_init.o
 
 $(LIB):	$(OBJS) $(SOBJS)
-	$(AR) crv $@ $(OBJS) $(SOBJS)
+	$(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
 
 clean:
 	rm -f $(SOBJS) $(OBJS)
diff --git a/board/ms7720se/Makefile b/board/ms7720se/Makefile
index d1af937..236959c 100644
--- a/board/ms7720se/Makefile
+++ b/board/ms7720se/Makefile
@@ -33,7 +33,7 @@ OBJS	:= ms7720se.o
 SOBJS	:= lowlevel_init.o
 
 $(LIB):	$(OBJS) $(SOBJS)
-	$(AR) crv $@ $(OBJS) $(SOBJS)
+	$(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
 
 clean:
 	rm -f $(SOBJS) $(OBJS)
diff --git a/board/ms7722se/Makefile b/board/ms7722se/Makefile
index 6dec013..b384687 100644
--- a/board/ms7722se/Makefile
+++ b/board/ms7722se/Makefile
@@ -30,7 +30,7 @@ OBJS	:= ms7722se.o
 SOBJS	:= lowlevel_init.o
 
 $(LIB):	$(OBJS) $(SOBJS)
-	$(AR) crv $@ $(OBJS) $(SOBJS)
+	$(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
 
 clean:
 	rm -f $(SOBJS) $(OBJS)
diff --git a/board/ms7750se/Makefile b/board/ms7750se/Makefile
index f81d56c..f02ad0a 100644
--- a/board/ms7750se/Makefile
+++ b/board/ms7750se/Makefile
@@ -25,7 +25,7 @@ OBJS	:= ms7750se.o
 SOBJS	:= lowlevel_init.o
 
 $(LIB):	$(OBJS) $(SOBJS)
-	$(AR) crv $@ $(OBJS) $(SOBJS)
+	$(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
 
 clean:
 	rm -f $(SOBJS) $(OBJS)
diff --git a/board/r2dplus/Makefile b/board/r2dplus/Makefile
index ed609ea..2909d46 100644
--- a/board/r2dplus/Makefile
+++ b/board/r2dplus/Makefile
@@ -25,7 +25,7 @@ OBJS	:= r2dplus.o
 SOBJS	:= lowlevel_init.o
 
 $(LIB):	$(OBJS) $(SOBJS)
-	$(AR) crv $@ $(OBJS) $(SOBJS)
+	$(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
 
 clean:
 	rm -f $(SOBJS) $(OBJS)
diff --git a/board/r7780mp/Makefile b/board/r7780mp/Makefile
index 554dca1..f0f1c97 100644
--- a/board/r7780mp/Makefile
+++ b/board/r7780mp/Makefile
@@ -26,7 +26,7 @@ OBJS	:= r7780mp.o
 SOBJS	:= lowlevel_init.o
 
 $(LIB):	$(OBJS) $(SOBJS)
-	$(AR) crv $@ $(OBJS) $(SOBJS)
+	$(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
 
 clean:
 	rm -f $(SOBJS) $(OBJS)
diff --git a/board/sh7763rdp/Makefile b/board/sh7763rdp/Makefile
index 9e63ea7..eef25d9 100644
--- a/board/sh7763rdp/Makefile
+++ b/board/sh7763rdp/Makefile
@@ -29,7 +29,7 @@ OBJS	:= sh7763rdp.o
 SOBJS	:= lowlevel_init.o
 
 $(LIB):	$(OBJS) $(SOBJS)
-	$(AR) crv $@ $(OBJS) $(SOBJS)
+	$(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
 
 clean:
 	rm -f $(SOBJS) $(OBJS)
diff --git a/board/siemens/SMN42/Makefile b/board/siemens/SMN42/Makefile
index 2c7b54b..4e75b6f 100644
--- a/board/siemens/SMN42/Makefile
+++ b/board/siemens/SMN42/Makefile
@@ -33,7 +33,7 @@ OBJS	:= $(addprefix $(obj),$(COBJS))
 SOBJS	:= $(addprefix $(obj),$(SOBJTS))
 
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
-	$(AR) crv $@ $(OBJS) $(SOBJS)
+	$(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
 
 clean:
 	rm -f $(SOBJS) $(OBJS)
diff --git a/cpu/sh3/Makefile b/cpu/sh3/Makefile
index 7679248..1fdeb3c 100644
--- a/cpu/sh3/Makefile
+++ b/cpu/sh3/Makefile
@@ -37,7 +37,7 @@ OBJS	= cpu.o interrupts.o watchdog.o time.o cache.o
 all:	.depend $(START) $(LIB)
 
 $(LIB):	$(OBJS)
-	$(AR) crv $@ $(OBJS)
+	$(AR) $(ARFLAGS) $@ $(OBJS)
 
 #########################################################################
 
diff --git a/cpu/sh4/Makefile b/cpu/sh4/Makefile
index 1bb8bd7..aaaaf1f 100644
--- a/cpu/sh4/Makefile
+++ b/cpu/sh4/Makefile
@@ -34,7 +34,7 @@ OBJS	= cpu.o interrupts.o watchdog.o time.o cache.o
 all:	.depend $(START) $(LIB)
 
 $(LIB):	$(OBJS)
-	$(AR) crv $@ $(OBJS)
+	$(AR) $(ARFLAGS) $@ $(OBJS)
 
 #########################################################################
 
-- 
1.5.5.1





More information about the U-Boot mailing list