alistair23-linux/drivers/staging/greybus/Makefile
Viresh Kumar 98abb4146e greybus: Remove "gb-" prefix from .c files
Some files are still prefixed with "gb-" with the reasoning that the modules
would be named so, i.e.  gb-*.ko. But this can be done by playing a bit in
Makefile instead and keep uniform naming of .c files.

Lets try it.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
2015-01-22 11:27:20 +08:00

60 lines
1.1 KiB
Makefile

greybus-y := core.o \
debugfs.o \
ap.o \
manifest.o \
module.o \
interface.o \
bundle.o \
connection.o \
protocol.o \
operation.o
gb-phy-y := gpb.o \
sdio.o \
uart.o \
pwm.o \
gpio.o \
i2c.o \
usb.o
# Prefix all modules with gb-
gb-vibrator-y := vibrator.o
gb-battery-y := battery.o
gb-es1-y := es1.o
gb-es2-y := es2.o
obj-m += greybus.o
obj-m += gb-phy.o
obj-m += gb-vibrator.o
obj-m += gb-battery.o
obj-m += gb-es1.o
obj-m += gb-es2.o
KERNELVER ?= $(shell uname -r)
KERNELDIR ?= /lib/modules/$(KERNELVER)/build
PWD := $(shell pwd)
# add -Wall to try to catch everything we can.
ccFlags-y := -Wall
all: module
module:
$(MAKE) -C $(KERNELDIR) M=$(PWD)
check:
$(MAKE) -C $(KERNELDIR) M=$(PWD) C=2 CF="-D__CHECK_ENDIAN__"
clean:
rm -f *.o *~ core .depend .*.cmd *.ko *.mod.c
rm -f Module.markers Module.symvers modules.order
rm -rf .tmp_versions Modules.symvers
coccicheck:
$(MAKE) -C $(KERNELDIR) M=$(PWD) coccicheck
install: module
mkdir -p /lib/modules/$(KERNELVER)/kernel/drivers/greybus/
cp -f *.ko /lib/modules/$(KERNELVER)/kernel/drivers/greybus/
depmod -a $(KERNELVER)