1
0
Fork 0
alistair23-linux/drivers/staging/greybus/Makefile

45 lines
799 B
Makefile
Raw Normal View History

2014-08-31 17:17:04 -06:00
greybus-y := core.o \
debugfs.o \
ap.o \
manifest.o \
interface_block.o \
bundle.o \
connection.o \
protocol.o \
greybus: introduce an operation abstraction This patch defines a new "operation" abstraction. An operation is a request from by one end of a connection to the function (or AP) on the other, coupled with a matching response returned to the requestor. The request indicates some action to be performed by the target of the request (such as "read some data"). Once the action has completed the target sends back an operation response message. Additional data can be supplied by the sender with its request, and/or by the target with its resposne message. Each request message has a unique id, generated by the sender. The sender recognizes the matching response by the presence of this id value. Each end of a connection is responsible for creating unique ids for the requests it sends. An operation also has a type, whose interpretation is dependent on the function type on the end of the connection opposite the sender. It is up to the creator of an operation to fill in the data (if any) to be sent with the request. Note that not all requests are initiated by the AP. Incoming data on a module function can result in a request message being sent from that function to the AP to notify of the data's arrival. Once the AP has processed this, it sends a response to the sender. Every operation response contains a status byte. If it's value is 0, the operation was successful. Any other value indicates an error. Add a defintion of U16_MAX to "kernel_ver.h". Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
2014-10-01 20:54:15 -06:00
operation.o \
2014-08-31 17:17:04 -06:00
i2c-gb.o \
gpio-gb.o \
pwm-gb.o \
2014-08-31 17:17:04 -06:00
sdio-gb.o \
2014-09-07 16:39:34 -06:00
uart-gb.o \
battery-gb.o \
vibrator-gb.o \
usb-gb.o
obj-m += greybus.o
obj-m += es1-ap-usb.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