mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-29 15:43:44 +08:00
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>
This commit is contained in:
parent
26ddff2d8d
commit
5968adc414
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user