Skip to content

Commit

Permalink
Makefile: abolish COBJS, SOBJS, etc.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
masahir0y authored and trini committed Nov 17, 2013
1 parent 620110a commit 3fdf5c8
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions scripts/Makefile.build
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ SRCS :=

include Makefile

# Backward compatible: obj-y is preferable
COBJS := $(sort $(COBJS) $(COBJS-y))
SOBJS := $(sort $(SOBJS) $(SOBJS-y))

# Going forward use the following
obj-y := $(sort $(obj-y))
extra-y := $(sort $(extra-y))
Expand All @@ -24,11 +20,11 @@ obj-y := $(patsubst %/, %/built-in.o, $(obj-y))
subdir-obj-y := $(filter %/built-in.o, $(obj-y))
subdir-obj-y := $(addprefix $(obj),$(subdir-obj-y))

SRCS += $(COBJS:.o=.c) $(SOBJS:.o=.S) \
$(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))
OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS) $(obj-y))
SRCS += $(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))
OBJS := $(addprefix $(obj),$(obj-y))

LGOBJS := $(addprefix $(obj),$(sort $(GLSOBJS) $(GLCOBJS)) $(lib-y))
LGOBJS := $(addprefix $(obj),$(sort $(lib-y)))

all: $(LIB) $(addprefix $(obj),$(extra-y))

Expand Down

0 comments on commit 3fdf5c8

Please sign in to comment.