[RFCv2 8/9] xshm: Makefile and Kconfig for M7400 Shared Memory Drivers

From: Sjur BrÃndeland
Date: Tue Nov 29 2011 - 14:39:51 EST


Signed-off-by: Sjur BrÃndeland <sjur.brandeland@xxxxxxxxxxxxxx>
---

Changes from RFCv2. These are pointed out by Paul Bolle:
o Replaced comment with proper dependency to C2C_DRIVER driver
o Fixed unnecessary name-change for xshm_chr
o Introduced CONFIG_XSHM_CHR that automatically selects CONFIG_XSHM

drivers/Kconfig | 2 ++
drivers/Makefile | 1 +
drivers/xshm/Kconfig | 17 +++++++++++++++++
drivers/xshm/Makefile | 3 +++
4 files changed, 23 insertions(+), 0 deletions(-)
create mode 100644 drivers/xshm/Kconfig
create mode 100644 drivers/xshm/Makefile

diff --git a/drivers/Kconfig b/drivers/Kconfig
index 041426c..742f028 100644
--- a/drivers/Kconfig
+++ b/drivers/Kconfig
@@ -138,4 +138,6 @@ source "drivers/virt/Kconfig"

source "drivers/devfreq/Kconfig"

+source "drivers/xshm/Kconfig"
+
endmenu
diff --git a/drivers/Makefile b/drivers/Makefile
index 91077ac..30eae54 100644
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -121,6 +121,7 @@ obj-$(CONFIG_VLYNQ) += vlynq/
obj-$(CONFIG_STAGING) += staging/
obj-y += platform/
obj-y += ieee802154/
+obj-$(CONFIG_XSHM) += xshm/
#common clk code
obj-y += clk/

diff --git a/drivers/xshm/Kconfig b/drivers/xshm/Kconfig
new file mode 100644
index 0000000..bae0da2
--- /dev/null
+++ b/drivers/xshm/Kconfig
@@ -0,0 +1,17 @@
+# XSHM gets selected by whoever wants it.
+config XSHM
+ depends on CONFIG_C2C
+ tristate
+
+config XSHM_CHR
+ tristate "Character device for External Shared Memory (XSHM)"
+ select XSHM
+ default n
+ ---help---
+ Say "Y" if you want to character device for External Shared
+ Memory (XSHM) IPC mechanism. XSHM is an IPC protocol used to
+ talk to external device such as modem over a shared memory
+ (e.g. Chip to Chip).
+ Only say "M" here if you want to test XSHM and needs to load
+ and unload its module.
+ If unsure say N.
diff --git a/drivers/xshm/Makefile b/drivers/xshm/Makefile
new file mode 100644
index 0000000..954bd22
--- /dev/null
+++ b/drivers/xshm/Makefile
@@ -0,0 +1,3 @@
+obj-$(CONFIG_XSHM) += xshm.o
+xshm-objs := xshm_boot.o xshm_dev.o
+obj-$(CONFIG_XSHM_CHR) += xshm_chr.o
--
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/