[RFC 6/6] remoteproc: Make REMOTEPROC_ELF a sparate Kconfig

From: sjur . brandeland
Date: Tue May 22 2012 - 09:27:37 EST


From: Sjur BrÃndeland <sjur.brandeland@xxxxxxxxxxxxxx>

Make REMOTEPROC_ELF a separate Kconfig entry.

Signed-off-by: Sjur BrÃndeland <sjur.brandeland@xxxxxxxxxxxxxx>
---
drivers/remoteproc/Kconfig | 6 ++++++
drivers/remoteproc/Makefile | 2 +-
drivers/remoteproc/remoteproc_core.c | 1 +
drivers/remoteproc/remoteproc_elf_loader.c | 2 ++
4 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/drivers/remoteproc/Kconfig b/drivers/remoteproc/Kconfig
index 24d880e..316a726 100644
--- a/drivers/remoteproc/Kconfig
+++ b/drivers/remoteproc/Kconfig
@@ -5,11 +5,17 @@ config REMOTEPROC
tristate
depends on EXPERIMENTAL

+config REMOTEPROC_ELF
+ tristate
+ depends on REMOTEPROC && EXPERIMENTAL
+ default m
+
config OMAP_REMOTEPROC
tristate "OMAP remoteproc support"
depends on ARCH_OMAP4
depends on OMAP_IOMMU
select REMOTEPROC
+ select REMOTEPROC_ELF
select OMAP_MBOX_FWK
select RPMSG
help
diff --git a/drivers/remoteproc/Makefile b/drivers/remoteproc/Makefile
index 934ce6e..047d286 100644
--- a/drivers/remoteproc/Makefile
+++ b/drivers/remoteproc/Makefile
@@ -6,5 +6,5 @@ obj-$(CONFIG_REMOTEPROC) += remoteproc.o
remoteproc-y := remoteproc_core.o
remoteproc-y += remoteproc_debugfs.o
remoteproc-y += remoteproc_virtio.o
-remoteproc-y += remoteproc_elf_loader.o
+obj-$(CONFIG_REMOTEPROC_ELF) += remoteproc_elf_loader.o
obj-$(CONFIG_OMAP_REMOTEPROC) += omap_remoteproc.o
diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c
index 75984ad..7aca0d7 100644
--- a/drivers/remoteproc/remoteproc_core.c
+++ b/drivers/remoteproc/remoteproc_core.c
@@ -187,6 +187,7 @@ void *rproc_da_to_va(struct rproc *rproc, u64 da, int len)

return ptr;
}
+EXPORT_SYMBOL(rproc_da_to_va);

static int
__rproc_handle_vring(struct rproc_vdev *rvdev, struct fw_rsc_vdev *rsc, int i)
diff --git a/drivers/remoteproc/remoteproc_elf_loader.c b/drivers/remoteproc/remoteproc_elf_loader.c
index b90aeff..b726bfe 100644
--- a/drivers/remoteproc/remoteproc_elf_loader.c
+++ b/drivers/remoteproc/remoteproc_elf_loader.c
@@ -278,3 +278,5 @@ struct rproc_fw_ops rproc_elf_fw_ops = {
.owner = THIS_MODULE
};
EXPORT_SYMBOL(rproc_elf_fw_ops);
+MODULE_LICENSE("GPL v2");
+MODULE_DESCRIPTION("Generic Remote Processor ELF Firmware handling");
--
1.7.9.5

--
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/