All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] cmem: Adding New recipe for cmem
@ 2013-11-07  5:03 Sam Nelson
  2013-11-07  7:35 ` Maupin, Chase
  2013-11-20 13:11 ` Maupin, Chase
  0 siblings, 2 replies; 17+ messages in thread
From: Sam Nelson @ 2013-11-07  5:03 UTC (permalink / raw)
  To: meta-arago, sam.nelson

- Cmem module is used for user space contiguous memory alloation

Signed-off-by: Sam Nelson <sam.nelson@ti.com>
---
 recipes-bsp/cmem/cmem-mod_git.bb |   26 ++++++++++++++++++++++++++
 recipes-bsp/cmem/cmem.inc        |   12 ++++++++++++
 recipes-bsp/cmem/cmem_git.bb     |   16 ++++++++++++++++
 3 files changed, 54 insertions(+)
 create mode 100644 recipes-bsp/cmem/cmem-mod_git.bb
 create mode 100644 recipes-bsp/cmem/cmem.inc
 create mode 100644 recipes-bsp/cmem/cmem_git.bb

diff --git a/recipes-bsp/cmem/cmem-mod_git.bb b/recipes-bsp/cmem/cmem-mod_git.bb
new file mode 100644
index 0000000..c402b72
--- /dev/null
+++ b/recipes-bsp/cmem/cmem-mod_git.bb
@@ -0,0 +1,26 @@
+DESCRIPTION="Contiguous memory allocation kernel module for contiguous memory allocation from userspace "
+
+include cmem.inc
+
+NAME="cmem"
+
+# This package builds a kernel module, use kernel PR as base and append a local
+PR = "${MACHINE_KERNEL_PR}"
+PR_append = "a"
+
+PKG_${PN} = "kernel-module-${PN}"
+
+S = "${WORKDIR}/git"
+
+inherit module
+
+do_compile () {
+    cd ${S}
+    make -f lu.mak module_clean
+    make -f lu.mak module KERNEL_INSTALL_DIR=${STAGING_KERNEL_DIR} TOOLCHAIN_PREFIX=${CROSS_COMPILE} 
+}
+
+do_install () {
+    cd ${S}
+    make -f lu.mak module_install KERNEL_INSTALL_DIR="${STAGING_KERNEL_DIR}" EXEC_DIR="${D}/lib/modules/${KERNEL_VERSION}/extra" INSTALL_MOD_PATH="${D}"
+}
diff --git a/recipes-bsp/cmem/cmem.inc b/recipes-bsp/cmem/cmem.inc
new file mode 100644
index 0000000..5d17d8e
--- /dev/null
+++ b/recipes-bsp/cmem/cmem.inc
@@ -0,0 +1,12 @@
+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://include/ti/cmem.h;beginline=1;endline=30;md5=b86138d4028fb8310b3b983024edc620"
+
+COMPATIBLE_MACHINE = "keystone-evm"
+
+BRANCH ?= "master"
+#SRCREV = "4.00.00.06"
+SRCREV = "c2cf2406702bcb889c10d0e6e7d298ba7b84ae7d"
+
+SRC_URI = "git://git.ti.com/ipc/ludev.git;protocol=git;branch=${BRANCH}"
diff --git a/recipes-bsp/cmem/cmem_git.bb b/recipes-bsp/cmem/cmem_git.bb
new file mode 100644
index 0000000..f415630
--- /dev/null
+++ b/recipes-bsp/cmem/cmem_git.bb
@@ -0,0 +1,16 @@
+DESCRIPTION="The cmem component supports contiguous memory allocation from userspace "
+
+include cmem.inc
+
+RDEPENDS_${PN} = "cmem-mod" 
+
+S = "${WORKDIR}/git"
+
+PR = "r0"
+
+PACKAGES =+ "${PN}-test"
+
+FILES_${PN}-test = "${bindir}/*"
+
+inherit autotools
+
-- 
1.7.9.5



^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2013-11-28  8:20 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-07  5:03 [PATCH v2] cmem: Adding New recipe for cmem Sam Nelson
2013-11-07  7:35 ` Maupin, Chase
2013-11-07 11:49   ` Nelson, Sam
2013-11-08  0:33     ` Tivy, Robert
2013-11-08  2:02       ` Denys Dmytriyenko
2013-11-08  1:53     ` Denys Dmytriyenko
2013-11-08  2:00       ` Tivy, Robert
2013-11-08  2:03         ` Denys Dmytriyenko
2013-11-08  2:04           ` Nelson, Sam
2013-11-08  2:06       ` Nelson, Sam
2013-11-12 21:01       ` Nelson, Sam
2013-11-12 21:20         ` Denys Dmytriyenko
2013-11-20 13:11 ` Maupin, Chase
2013-11-20 15:24   ` Denys Dmytriyenko
2013-11-26 12:56     ` Enrico
2013-11-27 16:55       ` Denys Dmytriyenko
2013-11-28  8:20         ` Enrico

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.