summaryrefslogtreecommitdiff
path: root/config.mk
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-10-12 19:25:20 +0000
committerWolfgang Denk <wd@denx.de>2011-10-22 01:19:28 +0200
commit5968adc4146aac76e5597da3b52a51efb42d9179 (patch)
tree3ae1b18234be3f82ef5d32b8204f79a854bdb03c /config.mk
parent26ddff2d8db8a9f0315783bb008f02d2e93a0d9c (diff)
downloadu-boot-imx-5968adc4146aac76e5597da3b52a51efb42d9179.zip
u-boot-imx-5968adc4146aac76e5597da3b52a51efb42d9179.tar.gz
u-boot-imx-5968adc4146aac76e5597da3b52a51efb42d9179.tar.bz2
build: force migration away from $(AR)
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>
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk8
1 files changed, 3 insertions, 5 deletions
diff --git a/config.mk b/config.mk
index 3fa9eef..bad72b7 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