Skip to content

Commit

Permalink
Net: caif: Makefile: Remove deprecated items
Browse files Browse the repository at this point in the history
Changed Makefile to use <modules>-y instead of <modules>-objs
because -objs is deprecated and not mentioned in
Documentation/kbuild/makefiles.txt.

Also, use the ccflags-$ flag instead of EXTRA_CFLAGS because EXTRA_CFLAGS is
deprecated and should now be switched.

Last but not least, took out if-conditionals.

Signed-off-by: Tracey Dent <tdent48227@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Tracey Dent authored and David S. Miller committed Nov 22, 2010
1 parent 8721750 commit a3106d0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions net/caif/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
ifeq ($(CONFIG_CAIF_DEBUG),y)
EXTRA_CFLAGS += -DDEBUG
endif
ccflags-$(CONFIG_CAIF_DEBUG) := -DDEBUG

caif-objs := caif_dev.o \
caif-y := caif_dev.o \
cfcnfg.o cfmuxl.o cfctrl.o \
cffrml.o cfveil.o cfdbgl.o\
cfserl.o cfdgml.o \
Expand All @@ -13,4 +11,4 @@ obj-$(CONFIG_CAIF) += caif.o
obj-$(CONFIG_CAIF_NETDEV) += chnl_net.o
obj-$(CONFIG_CAIF) += caif_socket.o

export-objs := caif.o
export-y := caif.o

0 comments on commit a3106d0

Please sign in to comment.