From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Thu, 13 Oct 2011 01:25:20 -0400 Subject: [U-Boot] [PATCH 2/2] build: force migration away from $(AR) In-Reply-To: <1318483520-2035-1-git-send-email-vapier@gentoo.org> References: <1318483520-2035-1-git-send-email-vapier@gentoo.org> Message-ID: <1318483520-2035-2-git-send-email-vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de People keep adding new code that still uses $(AR) instead of $(cmd_link_o_target), so turn it into a build time error. We still use $(AR) locally, but we don't use $(ARFLAGS). Signed-off-by: Mike Frysinger --- config.mk | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/config.mk b/config.mk index e2b440d..be9271e 100644 --- a/config.mk +++ b/config.mk @@ -157,11 +157,9 @@ endif ######################################################################### -ifneq (,$(findstring s,$(MAKEFLAGS))) -ARFLAGS = cr -else -ARFLAGS = crv -endif +# We don't actually use $(ARFLAGS) anywhere anymore, so catch people +# who are porting old code to latest mainline but not updating $(AR). +ARFLAGS = $(error update your Makefile to use cmd_link_o_target and not AR) RELFLAGS= $(PLATFORM_RELFLAGS) DBGFLAGS= -g # -DDEBUG OPTFLAGS= -Os #-fomit-frame-pointer -- 1.7.6.1