Commit 3fdf5c8e94e7a2a62f98ea8f0ad1a84d18eccfbf

Authored by Masahiro Yamada
Committed by Tom Rini
1 parent 620110afe5

Makefile: abolish COBJS, SOBJS, etc.

The support for COBJS, COBJS-y, SOBJS, SOBJS-y, GLCOBJS, GLSOBJS
from scripts/Makefile.build.
Going forward we need to use Kbuild style consistently.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>

Showing 1 changed file with 4 additions and 8 deletions Side-by-side Diff

scripts/Makefile.build
... ... @@ -10,10 +10,6 @@
10 10  
11 11 include Makefile
12 12  
13   -# Backward compatible: obj-y is preferable
14   -COBJS := $(sort $(COBJS) $(COBJS-y))
15   -SOBJS := $(sort $(SOBJS) $(SOBJS-y))
16   -
17 13 # Going forward use the following
18 14 obj-y := $(sort $(obj-y))
19 15 extra-y := $(sort $(extra-y))
20 16  
... ... @@ -24,11 +20,11 @@
24 20 subdir-obj-y := $(filter %/built-in.o, $(obj-y))
25 21 subdir-obj-y := $(addprefix $(obj),$(subdir-obj-y))
26 22  
27   -SRCS += $(COBJS:.o=.c) $(SOBJS:.o=.S) \
28   - $(wildcard $(obj-y:.o=.c) $(obj-y:.o=.S) $(lib-y:.o=.c) $(lib-y:.o=.S) $(extra-y:.o=.c) $(extra-y:.o=.S))
29   -OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS) $(obj-y))
  23 +SRCS += $(wildcard $(obj-y:.o=.c) $(obj-y:.o=.S) $(lib-y:.o=.c) \
  24 + $(lib-y:.o=.S) $(extra-y:.o=.c) $(extra-y:.o=.S))
  25 +OBJS := $(addprefix $(obj),$(obj-y))
30 26  
31   -LGOBJS := $(addprefix $(obj),$(sort $(GLSOBJS) $(GLCOBJS)) $(lib-y))
  27 +LGOBJS := $(addprefix $(obj),$(sort $(lib-y)))
32 28  
33 29 all: $(LIB) $(addprefix $(obj),$(extra-y))
34 30