summaryrefslogtreecommitdiffstats
path: root/driver/Makefile
diff options
context:
space:
mode:
authorChristian Gromm <christian.gromm@microchip.com>2017-06-08 17:02:23 +0200
committerChristian Gromm <christian.gromm@microchip.com>2017-06-08 17:02:23 +0200
commitf56dc2a0c638781bbdeda8cf28edbd27a51147a4 (patch)
tree9189e2e3d07abfc7fda0e636aef5f9a46563611c /driver/Makefile
parentf19c18408b515c5e33f96893cbe213d9ab30b904 (diff)
This patch adds a new Makefile to the source tree that builds the MOST driver modules at once. This is needed to avoid dependency problems of the modules when inserted in the running kernel. Change-Id: Ic076b17111bde1056bd06b03deb2bc5461d97ee6 Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Diffstat (limited to 'driver/Makefile')
-rw-r--r--driver/Makefile46
1 files changed, 46 insertions, 0 deletions
diff --git a/driver/Makefile b/driver/Makefile
new file mode 100644
index 0000000..e77a4b6
--- /dev/null
+++ b/driver/Makefile
@@ -0,0 +1,46 @@
+# Makefile
+#
+SRC := $(shell pwd)
+
+obj-m := mostcore.o
+mostcore-y := mostcore/core.o
+CFLAGS_core.o := -I$(src)/include/
+
+obj-m += aim_cdev.o
+aim_cdev-y := aim-cdev/cdev.o
+CFLAGS_cdev.o := -I$(src)/include/
+
+obj-m += aim_network.o
+aim_network-y := aim-network/networking.o
+CFLAGS_networking.o := -I$(src)/include/
+
+obj-m += aim_sound.o
+aim_sound-y := aim-sound/sound.o
+CFLAGS_sound.o := -I$(src)/include/
+
+obj-m += aim_v4l2.o
+aim_v4l2-y := aim-v4l2/video.o
+CFLAGS_video.o := -Idrivers/media/video -I$(src)/include/
+
+obj-m += hdm_i2c.o
+hdm_i2c-y := hdm-i2c/hdm_i2c.o
+CFLAGS_hdm_i2c.o := -I$(src)/include/
+
+obj-m += hdm_dim2.o
+hdm_dim2-y := hdm-dim2/dim2_hdm.o hdm-dim2/dim2_hal.o hdm-dim2/dim2_sysfs.o
+CFLAGS_dim2_hdm.o := -I$(src)/include/
+
+obj-m += hdm_usb.o
+hdm_usb-y := hdm-usb/hdm_usb.o
+CFLAGS_hdm_usb.o := -I$(src)/include/
+
+
+all:
+ $(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules
+
+modules_install:
+ $(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules_install
+
+clean:
+ $(MAKE) -C $(KERNEL_SRC) M=$(SRC) clean
+