summaryrefslogtreecommitdiff
path: root/drivers/staging/media/platform/bcm2835/Makefile
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2017-01-28 00:55:00 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-01-31 12:44:27 +0300
commit97b35807cc4d3d0cf1d2c61f5ed0727551416ad0 (patch)
tree7a5f189c150818a695c9ead39b6aff5790441013 /drivers/staging/media/platform/bcm2835/Makefile
parent411d68bef922862286bae2ad3476f7a57f17ec79 (diff)
downloadlinux-97b35807cc4d3d0cf1d2c61f5ed0727551416ad0.tar.xz
staging: bcm2835-v4l2: Add a build system for the module.
This is derived from the downstream tree's build system, but with just a single Kconfig option. For now the driver only builds on 32-bit arm -- the aarch64 build breaks due to the driver using arm-specific cache flushing functions. Signed-off-by: Eric Anholt <eric@anholt.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/media/platform/bcm2835/Makefile')
-rw-r--r--drivers/staging/media/platform/bcm2835/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/staging/media/platform/bcm2835/Makefile b/drivers/staging/media/platform/bcm2835/Makefile
new file mode 100644
index 000000000000..d7900a5951a8
--- /dev/null
+++ b/drivers/staging/media/platform/bcm2835/Makefile
@@ -0,0 +1,11 @@
+bcm2835-v4l2-$(CONFIG_VIDEO_BCM2835) := \
+ bcm2835-camera.o \
+ controls.o \
+ mmal-vchiq.o
+
+obj-$(CONFIG_VIDEO_BCM2835) += bcm2835-v4l2.o
+
+ccflags-y += \
+ -Idrivers/staging/vc04_services \
+ -Idrivers/staging/vc04_services/interface/vcos/linuxkernel \
+ -D__VCCOREVER__=0x04000000