All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] build: force migration away from $(AR)
Date: Thu, 13 Oct 2011 01:25:20 -0400	[thread overview]
Message-ID: <1318483520-2035-2-git-send-email-vapier@gentoo.org> (raw)
In-Reply-To: <1318483520-2035-1-git-send-email-vapier@gentoo.org>

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 <vapier@gentoo.org>
---
 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

  reply	other threads:[~2011-10-13  5:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-13  5:25 [U-Boot] [PATCH 1/2] build: add missing $(AR)->$(cmd_link_o_target) update Mike Frysinger
2011-10-13  5:25 ` Mike Frysinger [this message]
2011-10-21 23:19   ` [U-Boot] [PATCH 2/2] build: force migration away from $(AR) Wolfgang Denk
2011-10-18 15:30 ` [U-Boot] [PATCH 1/2 v2] build: add missing $(AR)->$(cmd_link_o_target) update Mike Frysinger
2011-10-18 20:49   ` Simon Glass
2011-10-21 23:18   ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1318483520-2035-2-git-send-email-vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.