Skip to contentSkip to conversation

ti-cmem: New recipes for ti-cmem

PATCH In review Sam Nelson 5 participants 13 messages Oct 30, 2013 – Nov 6, 2013

lore
Share & tools
lore

Sam Nelson

author
#0 lore raw

PATCH 1/1 ti-cmem: New recipes for ti-cmem

- Recipes for ti-cmem which provides user space api for contigous memory allocaion
- ti-cmem_mod provides the kernel module
- ti-mem provides the user space library

---
 .../recipes-bsp/ti-cmem/ti-cmem-mod.bb             |   40 ++++++++++++++++++++
 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb   |   20 ++++++++++
 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc  |   10 +++++
 3 files changed, 70 insertions(+)
 create mode 100755 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb
 create mode 100644 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb
 create mode 100644 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +40 -0
new file mode 100755
index 0000000..0839c20
@@ -0,0 +1,40 @@
+DESCRIPTION="The cmem component module for contiguous memory allocation from userspace "
+
+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"
+
+LICENSE = "GPLv2"
+
+include ti-cmem.inc
+
+RDEPENDS_${PN} += "kernel (=${KERNEL_VERSION})"
+
+DEPENDS += "virtual/kernel"
+
+NAME="cmem"
+MODULE_BUILD_DIR ="src/cmem/module"
+
+# 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}"
+
+KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}"
+
+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}"
+}
+
+PACKAGE_STRIP = "no"
+
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +20 -0
new file mode 100644
index 0000000..a106aa0
@@ -0,0 +1,20 @@
+DESCRIPTION="The cmem component supports contiguous memory allocation from userspace "
+
+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"
+
+LICENSE = "GPLv2"
+
+include ti-cmem.inc
+
+DEPENDS = "ti-cmem-mod" 
+
+S = "${WORKDIR}/git"
+
+PR = "r1"
+
+PACKAGES =+ "${PN}-test"
+
+FILES_${PN}-test = "${bindir}/*"
+
+inherit autotools
+
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +10 -0
new file mode 100644
index 0000000..9308b2d
@@ -0,0 +1,10 @@
+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"
+
+LIC_FILES_CHKSUM = "file://products.mak;beginline=2;endline=30;md5=195feadf798bb4165bcb1a23ffd50dbb"
+
+COMPATIBLE_MACHINE = "keystone-evm"
+
+BRANCH ?= "master"
+SRCREV = "4.00.00.06"
+
+SRC_URI = "git://git.ti.com/ipc/ludev.git;protocol=git;branch=${BRANCH}"
Signature · 1 line
1.7.9.5
#1 lore raw

Sam,

First, thanks for the submission!

Second, please drop "ti-" prefix from the recipes - it's redundant. Plus, everywhere else it is called just "cmem":

Quoted 3 lines

"The cmem component module for contiguous memory allocation from userspace " "The cmem component supports contiguous memory allocation from userspace " "http://processors.wiki.ti.com/index.php/Category:CMEM"

For the rest of the comments, please see inline. But mostly everything looks fine, just a few minor questions/concerns.

Quoted 20 lines · Sam Nelson

- Recipes for ti-cmem which provides user space api for contigous memory allocaion
- ti-cmem_mod provides the kernel module
- ti-mem provides the user space library

---
 .../recipes-bsp/ti-cmem/ti-cmem-mod.bb             |   40 ++++++++++++++++++++
 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb   |   20 ++++++++++
 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc  |   10 +++++
 3 files changed, 70 insertions(+)
 create mode 100755 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb
 create mode 100644 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb
 create mode 100644 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +0 -0
new file mode 100755
index 0000000..0839c20

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 3

Quoted 3 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +3 -0
@@ -0,0 +1,40 @@
+DESCRIPTION="The cmem component module for contiguous memory allocation from userspace "
+
+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"

You duplicate HOMEPAGE in all recipes and .inc file...

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 4

Quoted 1 line
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +1 -0
+LICENSE = "GPLv2"

Can you move LICENSE field in the .inc file, since you already have LIC_FILES_CHKSUM there...

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 9

Quoted 3 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +3 -0
+include ti-cmem.inc
+
+RDEPENDS_${PN} += "kernel (=${KERNEL_VERSION})"

Is it really tied to a specific kernel version? What if it's slightly different, i.e. with a minor update? Would using ">=" be better here?

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 11

Quoted 1 line
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +1 -0
+DEPENDS += "virtual/kernel"

module.bbclass already does it for you.

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 22

Quoted 10 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +10 -0
+NAME="cmem"
+MODULE_BUILD_DIR ="src/cmem/module"
+
+# 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}"
+
+KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}"

This one is also defined by module.bbclass

Quoted 6 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +6 -0
+S = "${WORKDIR}/git"
+
+inherit module
+
+do_compile () {
+    cd ${S}

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 39

Quoted 10 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +10 -0
+    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}"
+}
+
+PACKAGE_STRIP = "no"

Why this?

Quoted 6 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +0 -0
new file mode 100644
index 0000000..a106aa0

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb line 9

Quoted 9 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +9 -0
@@ -0,0 +1,20 @@
+DESCRIPTION="The cmem component supports contiguous memory allocation from userspace "
+
+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"
+
+LICENSE = "GPLv2"
+
+include ti-cmem.inc
+
+DEPENDS = "ti-cmem-mod" 

Do you mean RDEPENDS here? I don't think you have a build-time dependency here...

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb line 17

Quoted 7 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +7 -0
+S = "${WORKDIR}/git"
+
+PR = "r1"
+
+PACKAGES =+ "${PN}-test"
+
+FILES_${PN}-test = "${bindir}/*"

So, all the binaries will go into cmem-test, what would remain in the main cmem package?

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc line 3

Quoted 11 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +2 -0
+inherit autotools
+
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +3 -0
new file mode 100644
index 0000000..9308b2d
@@ -0,0 +1,10 @@
+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"
+
+LIC_FILES_CHKSUM = "file://products.mak;beginline=2;endline=30;md5=195feadf798bb4165bcb1a23ffd50dbb"

I haven't checked yet, but is the Makefile the only and proper place to define licenses for the component?

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc line 8

Quoted 4 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +4 -0
+COMPATIBLE_MACHINE = "keystone-evm"
+
+BRANCH ?= "master"
+SRCREV = "4.00.00.06"

Any chance you can use a commit ID here?

Quoted 8 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +1 -0
+SRC_URI = "git://git.ti.com/ipc/ludev.git;protocol=git;branch=${BRANCH}"
Signature · 6 lines
1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
#5 lore raw
In reply to Sam Nelson
Quoted 15 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Nelson, Sam
Sent: Wednesday, October 30, 2013 2:08 PM
To: [email protected]; Nelson, Sam
Subject: [meta-arago] [PATCH 1/1] ti-cmem: New recipes for ti-cmem

- Recipes for ti-cmem which provides user space api for contigous memory allocaion
- ti-cmem_mod provides the kernel module
- ti-mem provides the user space library

Quoted 9 lines
---
 .../recipes-bsp/ti-cmem/ti-cmem-mod.bb             |   40
++++++++++++++++++++
 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb   |   20 ++++++++++
 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc  |   10 +++++
 3 files changed, 70 insertions(+)
 create mode 100755 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb
 create mode 100644 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb
 create mode 100644 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc

[Franklin] Your recipes are missing the software/library version number.
Ex ti-cmem-mod_1.0.bb or ti-cmem-mod_git.bb (you would still have to set the PV for a specific version)

Quoted 10 lines
meta- renamed from meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb +0 -0

arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file mode 100755
index 0000000..0839c20

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +1 -0
@@ -0,0 +1,40 @@
+DESCRIPTION="The cmem component module for contiguous memory

allocation from userspace "

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 5

Quoted 4 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +4 -0
+
+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"
+
+LICENSE = "GPLv2"

[Franklin] ^ I would leave it up to you but you probably could put the HOMEPAGE and LICENSE in the include file and don't bother having to set it again in the two recipes.

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 9

Quoted 4 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +4 -0
+
+include ti-cmem.inc
+
+RDEPENDS_${PN} += "kernel (=${KERNEL_VERSION})"

[Franklin] I'm not sure if this is possible. I vaguely remember trying to do something like this before and found out it was impossible to try to RDEPENDS on a specific version of a recipe. You probably would just need to make sure PREFERRED_VERSION is set.

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb

Quoted 2 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +2 -0
+
+DEPENDS += "virtual/kernel"

[Franklin] inherit module already sets this for you. No need to set it again

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 14

Quoted 3 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +3 -0
+
+NAME="cmem"
+MODULE_BUILD_DIR ="src/cmem/module"

[Franklin] I might be missing something but what are the above variables being used for? I don't see it being referenced.

Quoted 41 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +8 -0
+
+# 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}"
+
+KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-

abiversion')}"

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +14 -0
+
+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}"

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +4 -0
+}
+
+PACKAGE_STRIP = "no"
+
meta-arago- renamed from meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb +0 -0

extras/recipes-bsp/ti-cmem/ti-cmem.bb
new file mode 100644
index 0000000..a106aa0

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +1 -0
@@ -0,0 +1,20 @@
+DESCRIPTION="The cmem component supports contiguous memory allocation

from userspace "

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +2 -0
+
+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb line 13

Quoted 10 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +10 -0
+
+LICENSE = "GPLv2"
+
+include ti-cmem.inc
+
+DEPENDS = "ti-cmem-mod"
+
+S = "${WORKDIR}/git"
+
+PR = "r1"

[Franklin] New recipes should start are 0

Quoted 33 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +7 -0
+
+PACKAGES =+ "${PN}-test"
+
+FILES_${PN}-test = "${bindir}/*"
+
+inherit autotools
+
meta-arago- renamed from meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc +0 -0

extras/recipes-bsp/ti-cmem/ti-cmem.inc
new file mode 100644
index 0000000..9308b2d

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +3 -0
@@ -0,0 +1,10 @@
+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"
+
+LIC_FILES_CHKSUM =

"file://products.mak;beginline=2;endline=30;md5=195feadf798bb4165bcb1a2 3ffd50dbb"

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +7 -1
+
+COMPATIBLE_MACHINE = "keystone-evm"
+
+BRANCH ?= "master"
+SRCREV = "4.00.00.06"
+
+SRC_URI = "git://git.ti.com/ipc/ludev.git;protocol=git;branch=${BRANCH}"
--

1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#2 lore raw
In reply to Denys Dmytriyenko

Thanks Denys for the detailed feedback. See comments inline.

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, October 30, 2013 3:24 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH 1/1] ti-cmem: New recipes for ti-cmem

Sam,

First, thanks for the submission!

Second, please drop "ti-" prefix from the recipes - it's redundant. Plus, everywhere else it is called just "cmem":
[Sam] Ok. I will fix this.

Quoted 3 lines

"The cmem component module for contiguous memory allocation from userspace " "The cmem component supports contiguous memory allocation from userspace " "http://processors.wiki.ti.com/index.php/Category:CMEM"

For the rest of the comments, please see inline. But mostly everything looks fine, just a few minor questions/concerns.

Quoted 20 lines · Sam Nelson

- Recipes for ti-cmem which provides user space api for contigous memory allocaion
- ti-cmem_mod provides the kernel module
- ti-mem provides the user space library

---
 .../recipes-bsp/ti-cmem/ti-cmem-mod.bb             |   40 ++++++++++++++++++++
 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb   |   20 ++++++++++
 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc  |   10 +++++
 3 files changed, 70 insertions(+)
 create mode 100755 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb
 create mode 100644 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb
 create mode 100644 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +0 -0
new file mode 100755
index 0000000..0839c20

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 3

Quoted 3 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +3 -0
@@ -0,0 +1,40 @@
+DESCRIPTION="The cmem component module for contiguous memory allocation from userspace "
+
+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"

You duplicate HOMEPAGE in all recipes and .inc file...

[Sam] I will fix this.

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 4

Quoted 1 line
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +1 -0
+LICENSE = "GPLv2"

Can you move LICENSE field in the .inc file, since you already have LIC_FILES_CHKSUM there...
[Sam] Ok. I will fix this.

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 9

Quoted 3 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +3 -0
+include ti-cmem.inc
+
+RDEPENDS_${PN} += "kernel (=${KERNEL_VERSION})"

Is it really tied to a specific kernel version? What if it's slightly
different, i.e. with a minor update? Would using ">=" be better here?
[Sam] I am not clear on this. I thought the kernel module is compiled for the particular version of kernel and may not work with a different version of kernel. Appreciate any explanation on this.

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 11

Quoted 1 line
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +1 -0
+DEPENDS += "virtual/kernel"

module.bbclass already does it for you.
[Sam] I guess I will remove this?

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 22

Quoted 10 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +10 -0
+NAME="cmem"
+MODULE_BUILD_DIR ="src/cmem/module"
+
+# 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}"
+
+KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}"

This one is also defined by module.bbclass
[Sam] I will remove this as well.

Quoted 6 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +6 -0
+S = "${WORKDIR}/git"
+
+inherit module
+
+do_compile () {
+    cd ${S}

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 39

Quoted 10 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +10 -0
+    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}"
+}
+
+PACKAGE_STRIP = "no"

Why this?

[Sam] Not sure may be there was some issue earlier. Looks like I can remove this.

Quoted 6 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +0 -0
new file mode 100644
index 0000000..a106aa0

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb line 9

Quoted 9 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +9 -0
@@ -0,0 +1,20 @@
+DESCRIPTION="The cmem component supports contiguous memory allocation from userspace "
+
+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"
+
+LICENSE = "GPLv2"
+
+include ti-cmem.inc
+
+DEPENDS = "ti-cmem-mod" 

Do you mean RDEPENDS here? I don't think you have a build-time dependency here...
[Sam] RDEPENDS makes sense. I will fix this.

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb line 17

Quoted 7 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +7 -0
+S = "${WORKDIR}/git"
+
+PR = "r1"
+
+PACKAGES =+ "${PN}-test"
+
+FILES_${PN}-test = "${bindir}/*"

So, all the binaries will go into cmem-test, what would remain in the main cmem package?
[Sam] Actually nothing remains in the cmem package itself. Is this an issue?

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc line 3

Quoted 11 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +2 -0
+inherit autotools
+
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +3 -0
new file mode 100644
index 0000000..9308b2d
@@ -0,0 +1,10 @@
+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"
+
+LIC_FILES_CHKSUM = "file://products.mak;beginline=2;endline=30;md5=195feadf798bb4165bcb1a23ffd50dbb"

I haven't checked yet, but is the Makefile the only and proper place to define
licenses for the component?
[Sam] It was used as the file was in the root directory. Do you prefer using the API header file instead?

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc line 8

Quoted 4 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +4 -0
+COMPATIBLE_MACHINE = "keystone-evm"
+
+BRANCH ?= "master"
+SRCREV = "4.00.00.06"

Any chance you can use a commit ID here?
[Sam] I can switch to commit ID.

Quoted 8 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +1 -0
+SRC_URI = "git://git.ti.com/ipc/ludev.git;protocol=git;branch=${BRANCH}"
Signature · 6 lines
1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
#3 lore raw
Quoted 8 lines · Sam

Thanks Denys for the detailed feedback. See comments inline.

First, thanks for the submission!

Second, please drop "ti-" prefix from the recipes - it's redundant. Plus, everywhere else it is called just "cmem":

[Sam] Ok. I will fix this.

Thanks! And if you need any support or backing for this change, please let me know - I had a past agreement on this topic with Bill and Jack...

Quoted 45 lines

For the rest of the comments, please see inline. But mostly everything looks fine, just a few minor questions/concerns.

Quoted 20 lines · Sam Nelson

- Recipes for ti-cmem which provides user space api for contigous memory allocaion
- ti-cmem_mod provides the kernel module
- ti-mem provides the user space library

---
 .../recipes-bsp/ti-cmem/ti-cmem-mod.bb             |   40 ++++++++++++++++++++
 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb   |   20 ++++++++++
 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc  |   10 +++++
 3 files changed, 70 insertions(+)
 create mode 100755 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb
 create mode 100644 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb
 create mode 100644 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +0 -0
new file mode 100755
index 0000000..0839c20

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 3

Quoted 3 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +3 -0
@@ -0,0 +1,40 @@
+DESCRIPTION="The cmem component module for contiguous memory allocation from userspace "
+
+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"

You duplicate HOMEPAGE in all recipes and .inc file...

[Sam] I will fix this.

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 4

Quoted 1 line
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +1 -0
+LICENSE = "GPLv2"

Can you move LICENSE field in the .inc file, since you already have LIC_FILES_CHKSUM there...
[Sam] Ok. I will fix this.

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 9

Quoted 3 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +3 -0
+include ti-cmem.inc
+
+RDEPENDS_${PN} += "kernel (=${KERNEL_VERSION})"

Is it really tied to a specific kernel version? What if it's slightly different, i.e. with a minor update? Would using ">=" be better here?

Quoted 3 lines

[Sam] I am not clear on this. I thought the kernel module is compiled for the particular version of kernel and may not work with a different version of kernel. Appreciate any explanation on this.

Ah, if that's the only reason, then you don't need to do anything - module.bbclass will do it for you.

Quoted 4 lines

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 11

Quoted 1 line
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +1 -0
+DEPENDS += "virtual/kernel"

module.bbclass already does it for you.
[Sam] I guess I will remove this?

Yes, please.

Quoted 57 lines

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 22

Quoted 10 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +10 -0
+NAME="cmem"
+MODULE_BUILD_DIR ="src/cmem/module"
+
+# 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}"
+
+KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}"

This one is also defined by module.bbclass
[Sam] I will remove this as well.

Quoted 6 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +6 -0
+S = "${WORKDIR}/git"
+
+inherit module
+
+do_compile () {
+    cd ${S}

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 39

Quoted 10 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +10 -0
+    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}"
+}
+
+PACKAGE_STRIP = "no"

Why this?

[Sam] Not sure may be there was some issue earlier. Looks like I can remove this.

Quoted 6 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +0 -0
new file mode 100644
index 0000000..a106aa0

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb line 9

Quoted 9 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +9 -0
@@ -0,0 +1,20 @@
+DESCRIPTION="The cmem component supports contiguous memory allocation from userspace "
+
+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"
+
+LICENSE = "GPLv2"
+
+include ti-cmem.inc
+
+DEPENDS = "ti-cmem-mod" 

Do you mean RDEPENDS here? I don't think you have a build-time dependency here...
[Sam] RDEPENDS makes sense. I will fix this.

Quoted 11 lines

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb line 17

Quoted 7 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +7 -0
+S = "${WORKDIR}/git"
+
+PR = "r1"
+
+PACKAGES =+ "${PN}-test"
+
+FILES_${PN}-test = "${bindir}/*"

So, all the binaries will go into cmem-test, what would remain in the main cmem package?
[Sam] Actually nothing remains in the cmem package itself. Is this an issue?

Not an issue, but then why not call the recipe cmem-test if that's its only purpose?

Quoted 8 lines
Quoted 8 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +2 -0
+inherit autotools
+
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +0 -0
new file mode 100644
index 0000000..9308b2d
@@ -0,0 +1,10 @@
Quoted 8 lines

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc line 3

Quoted 3 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +3 -0
+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"
+
+LIC_FILES_CHKSUM = "file://products.mak;beginline=2;endline=30;md5=195feadf798bb4165bcb1a23ffd50dbb"

I haven't checked yet, but is the Makefile the only and proper place to define licenses for the component?
[Sam] It was used as the file was in the root directory. Do you prefer using the API header file instead?

It doesn't need to be in the root directory, but it does need to specify the license that is being used.

Quoted 7 lines

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc line 8

Quoted 4 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +4 -0
+COMPATIBLE_MACHINE = "keystone-evm"
+
+BRANCH ?= "master"
+SRCREV = "4.00.00.06"

Any chance you can use a commit ID here?
[Sam] I can switch to commit ID.

Thanks. The reason for this request is to reduce the number of network connections required during parsing.

Quoted 8 lines
Quoted 8 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +1 -0
+SRC_URI = "git://git.ti.com/ipc/ludev.git;protocol=git;branch=${BRANCH}"
Signature · 6 lines
1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
#4 lore raw

See comments inline.

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, October 30, 2013 7:38 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH 1/1] ti-cmem: New recipes for ti-cmem

Quoted 8 lines · Sam

Thanks Denys for the detailed feedback. See comments inline.

First, thanks for the submission!

Second, please drop "ti-" prefix from the recipes - it's redundant. Plus, everywhere else it is called just "cmem":

[Sam] Ok. I will fix this.

Thanks! And if you need any support or backing for this change, please let me know - I had a past agreement on this topic with Bill and Jack...

Quoted 45 lines

For the rest of the comments, please see inline. But mostly everything looks fine, just a few minor questions/concerns.

Quoted 20 lines · Sam Nelson

- Recipes for ti-cmem which provides user space api for contigous memory allocaion
- ti-cmem_mod provides the kernel module
- ti-mem provides the user space library

---
 .../recipes-bsp/ti-cmem/ti-cmem-mod.bb             |   40 ++++++++++++++++++++
 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb   |   20 ++++++++++
 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc  |   10 +++++
 3 files changed, 70 insertions(+)
 create mode 100755 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb
 create mode 100644 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb
 create mode 100644 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +0 -0
new file mode 100755
index 0000000..0839c20

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 3

Quoted 3 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +3 -0
@@ -0,0 +1,40 @@
+DESCRIPTION="The cmem component module for contiguous memory allocation from userspace "
+
+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"

You duplicate HOMEPAGE in all recipes and .inc file...

[Sam] I will fix this.

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 4

Quoted 1 line
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +1 -0
+LICENSE = "GPLv2"

Can you move LICENSE field in the .inc file, since you already have LIC_FILES_CHKSUM there...
[Sam] Ok. I will fix this.

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 9

Quoted 3 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +3 -0
+include ti-cmem.inc
+
+RDEPENDS_${PN} += "kernel (=${KERNEL_VERSION})"

Is it really tied to a specific kernel version? What if it's slightly different, i.e. with a minor update? Would using ">=" be better here?

Quoted 3 lines

[Sam] I am not clear on this. I thought the kernel module is compiled for the particular version of kernel and may not work with a different version of kernel. Appreciate any explanation on this.

Ah, if that's the only reason, then you don't need to do anything - module.bbclass will do it for you.
[Sam] Ok. I will remove this as well.

Quoted 4 lines

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 11

Quoted 1 line
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +1 -0
+DEPENDS += "virtual/kernel"

module.bbclass already does it for you.
[Sam] I guess I will remove this?

Yes, please.

Quoted 57 lines

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 22

Quoted 10 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +10 -0
+NAME="cmem"
+MODULE_BUILD_DIR ="src/cmem/module"
+
+# 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}"
+
+KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}"

This one is also defined by module.bbclass
[Sam] I will remove this as well.

Quoted 6 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +6 -0
+S = "${WORKDIR}/git"
+
+inherit module
+
+do_compile () {
+    cd ${S}

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 39

Quoted 10 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +10 -0
+    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}"
+}
+
+PACKAGE_STRIP = "no"

Why this?

[Sam] Not sure may be there was some issue earlier. Looks like I can remove this.

Quoted 6 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +0 -0
new file mode 100644
index 0000000..a106aa0

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb line 9

Quoted 9 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +9 -0
@@ -0,0 +1,20 @@
+DESCRIPTION="The cmem component supports contiguous memory allocation from userspace "
+
+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"
+
+LICENSE = "GPLv2"
+
+include ti-cmem.inc
+
+DEPENDS = "ti-cmem-mod" 

Do you mean RDEPENDS here? I don't think you have a build-time dependency here...
[Sam] RDEPENDS makes sense. I will fix this.

Quoted 11 lines

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb line 17

Quoted 7 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +7 -0
+S = "${WORKDIR}/git"
+
+PR = "r1"
+
+PACKAGES =+ "${PN}-test"
+
+FILES_${PN}-test = "${bindir}/*"

So, all the binaries will go into cmem-test, what would remain in the main cmem package?
[Sam] Actually nothing remains in the cmem package itself. Is this an issue?

Not an issue, but then why not call the recipe cmem-test if that's its only purpose?
[Sam] The main contents are in cmem-dev, cmem-staticdev.

Quoted 8 lines
Quoted 8 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +2 -0
+inherit autotools
+
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +0 -0
new file mode 100644
index 0000000..9308b2d
@@ -0,0 +1,10 @@
Quoted 8 lines

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc line 3

Quoted 3 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +3 -0
+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"
+
+LIC_FILES_CHKSUM = "file://products.mak;beginline=2;endline=30;md5=195feadf798bb4165bcb1a23ffd50dbb"

I haven't checked yet, but is the Makefile the only and proper place to define licenses for the component?
[Sam] It was used as the file was in the root directory. Do you prefer using the API header file instead?

It doesn't need to be in the root directory, but it does need to specify the license that is being used.

[Sam] products.mak does have the license used. I will try to switch to a API header file .

Quoted 7 lines

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc line 8

Quoted 4 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +4 -0
+COMPATIBLE_MACHINE = "keystone-evm"
+
+BRANCH ?= "master"
+SRCREV = "4.00.00.06"

Any chance you can use a commit ID here?
[Sam] I can switch to commit ID.

Thanks. The reason for this request is to reduce the number of network connections required during parsing.

Quoted 8 lines
Quoted 8 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +1 -0
+SRC_URI = "git://git.ti.com/ipc/ludev.git;protocol=git;branch=${BRANCH}"
Signature · 6 lines
1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
#6 lore raw
In reply to Cooper Jr., Franklin

Thanks Franklin for your feedback as well.
See my comments inline on what is not already covered by Denys.

-----Original Message-----
From: Cooper Jr., Franklin
Sent: Wednesday, October 30, 2013 3:25 PM
To: Nelson, Sam; [email protected]
Subject: RE: [meta-arago] [PATCH 1/1] ti-cmem: New recipes for ti-cmem

Quoted 13 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Nelson, Sam
Sent: Wednesday, October 30, 2013 2:08 PM
To: [email protected]; Nelson, Sam
Subject: [meta-arago] [PATCH 1/1] ti-cmem: New recipes for ti-cmem

- Recipes for ti-cmem which provides user space api for contigous memory allocaion
- ti-cmem_mod provides the kernel module
- ti-mem provides the user space library

Quoted 10 lines
---
 .../recipes-bsp/ti-cmem/ti-cmem-mod.bb             |   40
++++++++++++++++++++
 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb   |   20 ++++++++++
 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc  |   10 +++++
 3 files changed, 70 insertions(+)
 create mode 100755 
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb
 create mode 100644 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb
 create mode 100644 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc

[Franklin] Your recipes are missing the software/library version number.
Ex ti-cmem-mod_1.0.bb or ti-cmem-mod_git.bb (you would still have to set the PV for a specific version) [Sam] I will add the cmem-mod_git.bb and cmem_git.bb.

Quoted 10 lines
(quoted diff) +0 -0

b/meta- arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file mode 100755
index 0000000..0839c20

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +1 -0
@@ -0,0 +1,40 @@
+DESCRIPTION="The cmem component module for contiguous memory

allocation from userspace "

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 5

Quoted 4 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +4 -0
+
+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"
+
+LICENSE = "GPLv2"

[Franklin] ^ I would leave it up to you but you probably could put the HOMEPAGE and LICENSE in the include file and don't bother having to set it again in the two recipes.

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 9

Quoted 4 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +4 -0
+
+include ti-cmem.inc
+
+RDEPENDS_${PN} += "kernel (=${KERNEL_VERSION})"

[Franklin] I'm not sure if this is possible. I vaguely remember trying to do something like this before and found out it was impossible to try to RDEPENDS on a specific version of a recipe. You probably would just need to make sure PREFERRED_VERSION is set.

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb

Quoted 2 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +2 -0
+
+DEPENDS += "virtual/kernel"

[Franklin] inherit module already sets this for you. No need to set it again

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 14

Quoted 3 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +3 -0
+
+NAME="cmem"
+MODULE_BUILD_DIR ="src/cmem/module"

[Franklin] I might be missing something but what are the above variables being used for? I don't see it being referenced. [Sam] I will remove this.

Quoted 41 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +8 -0
+
+# 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}"
+
+KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-

abiversion')}"

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +14 -0
+
+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}"

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +4 -0
+}
+
+PACKAGE_STRIP = "no"
+
(quoted diff) +0 -0

b/meta-arago- extras/recipes-bsp/ti-cmem/ti-cmem.bb new file mode 100644
index 0000000..a106aa0

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +1 -0
@@ -0,0 +1,20 @@
+DESCRIPTION="The cmem component supports contiguous memory allocation

from userspace "

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +2 -0
+
+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb line 13

Quoted 10 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +10 -0
+
+LICENSE = "GPLv2"
+
+include ti-cmem.inc
+
+DEPENDS = "ti-cmem-mod"
+
+S = "${WORKDIR}/git"
+
+PR = "r1"

[Franklin] New recipes should start are 0

Quoted 34 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +7 -0
+
+PACKAGES =+ "${PN}-test"
+
+FILES_${PN}-test = "${bindir}/*"
+
+inherit autotools
+
(quoted diff) +0 -0

b/meta-arago- extras/recipes-bsp/ti-cmem/ti-cmem.inc new file mode 100644
index 0000000..9308b2d

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +3 -0
@@ -0,0 +1,10 @@
+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"
+
+LIC_FILES_CHKSUM =

"file://products.mak;beginline=2;endline=30;md5=195feadf798bb4165bcb1a 2
3ffd50dbb"

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +7 -1
+
+COMPATIBLE_MACHINE = "keystone-evm"
+
+BRANCH ?= "master"
+SRCREV = "4.00.00.06"
+
+SRC_URI = "git://git.ti.com/ipc/ludev.git;protocol=git;branch=${BRANCH}"
--

1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#7 lore raw
In reply to Sam Nelson
Quoted 3 lines · Sam Nelson

- Recipes for ti-cmem which provides user space api for contigous memory allocaion
- ti-cmem_mod provides the kernel module
- ti-mem provides the user space library

Why do we need to create a new recipe? The ti-linuxutils in meta-ti should be the provider for cmem. Shouldn't that be updated for newer versions? Also, I would suggest that we make it machine compatible with omap-a15.

Quoted 99 lines
---
  .../recipes-bsp/ti-cmem/ti-cmem-mod.bb             |   40 ++++++++++++++++++++
  meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb   |   20 ++++++++++
  meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc  |   10 +++++
  3 files changed, 70 insertions(+)

create mode 100755 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb create mode 100644 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb create mode 100644 meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +40 -0
new file mode 100755
index 0000000..0839c20
@@ -0,0 +1,40 @@
+DESCRIPTION="The cmem component module for contiguous memory allocation from userspace "
+
+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"
+
+LICENSE = "GPLv2"
+
+include ti-cmem.inc
+
+RDEPENDS_${PN} += "kernel (=${KERNEL_VERSION})"
+
+DEPENDS += "virtual/kernel"
+
+NAME="cmem"
+MODULE_BUILD_DIR ="src/cmem/module"
+
+# 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}"
+
+KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}"
+
+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}"
+}
+
+PACKAGE_STRIP = "no"
+
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +20 -0
new file mode 100644
index 0000000..a106aa0
@@ -0,0 +1,20 @@
+DESCRIPTION="The cmem component supports contiguous memory allocation from userspace "
+
+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"
+
+LICENSE = "GPLv2"
+
+include ti-cmem.inc
+
+DEPENDS = "ti-cmem-mod"
+
+S = "${WORKDIR}/git"
+
+PR = "r1"
+
+PACKAGES =+ "${PN}-test"
+
+FILES_${PN}-test = "${bindir}/*"
+
+inherit autotools
+
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +10 -0
new file mode 100644
index 0000000..9308b2d
@@ -0,0 +1,10 @@
+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"
+
+LIC_FILES_CHKSUM = "file://products.mak;beginline=2;endline=30;md5=195feadf798bb4165bcb1a23ffd50dbb"
+
+COMPATIBLE_MACHINE = "keystone-evm"
+
+BRANCH ?= "master"
+SRCREV = "4.00.00.06"
+
+SRC_URI = "git://git.ti.com/ipc/ludev.git;protocol=git;branch=${BRANCH}"
#8 lore raw
Quoted 14 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Heroor, Siddharth
Sent: Wednesday, October 30, 2013 11:19 PM
To: [email protected]
Subject: Re: [meta-arago] [PATCH 1/1] ti-cmem: New recipes for ti- cmem

Quoted 1 line · Sam Nelson

- Recipes for ti-cmem which provides user space api for

contigous memory allocaion

Quoted 2 lines

- ti-cmem_mod provides the kernel module
- ti-mem provides the user space library

Quoted 7 lines

Why do we need to create a new recipe? The ti-linuxutils in meta- ti
should be the provider for cmem. Shouldn't that be updated for newer
versions?
Also, I would suggest that we make it machine compatible with omap-a15.

I don't know that linuxutils is really the right solution. I think it mainly comes down to where/how is cmem being released. So really the question is whether the SRC_URI used below is the official cmem release point or is the SRC_URI from linuxutils right? We do not need multiple versions of cmem where everyone has their own fork of the cmem code.

Another point is shouldn't this be in meta-ti for at least the cmem module?

Quoted 129 lines
Quoted 5 lines
---
  .../recipes-bsp/ti-cmem/ti-cmem-mod.bb             |   40

++++++++++++++++++++

Quoted 1 line
  meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb   |   20

++++++++++

Quoted 1 line
  meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc  |   10

+++++

Quoted 2 lines
  3 files changed, 70 insertions(+)

create mode 100755 meta-arago-extras/recipes-bsp/ti-cmem/ti-

cmem-mod.bb

Quoted 1 line

create mode 100644 meta-arago-extras/recipes-bsp/ti-cmem/ti-

cmem.bb

Quoted 1 line

create mode 100644 meta-arago-extras/recipes-bsp/ti-cmem/ti-

cmem.inc

Review

Quoted 2 lines
(quoted diff) +0 -0

mod.bb b/meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 1

Quoted 6 lines

new file mode 100755
index 0000000..0839c20

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +1 -0
@@ -0,0 +1,40 @@
+DESCRIPTION="The cmem component module for contiguous memory

allocation from userspace "

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 2

Quoted 2 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +1 -0
+

+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb

Quoted 13 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +13 -0
+
+LICENSE = "GPLv2"
+
+include ti-cmem.inc
+
+RDEPENDS_${PN} += "kernel (=${KERNEL_VERSION})"
+
+DEPENDS += "virtual/kernel"
+
+NAME="cmem"
+MODULE_BUILD_DIR ="src/cmem/module"
+
+# This package builds a kernel module, use kernel PR as base

and append a local

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb

Quoted 6 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +6 -0
+PR = "${MACHINE_KERNEL_PR}"
+PR_append = "a"
+
+PKG_${PN} = "kernel-module-${PN}"
+
+KERNEL_VERSION =

"${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}"

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb

Quoted 9 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +9 -0
+
+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}

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb

Quoted 5 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +5 -0
+}
+
+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}"

Review

Quoted 5 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +4 -0
+}
+
+PACKAGE_STRIP = "no"
+
(quoted diff) +0 -0

b/meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb line 1

Quoted 6 lines

new file mode 100644
index 0000000..a106aa0

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +1 -0
@@ -0,0 +1,20 @@
+DESCRIPTION="The cmem component supports contiguous memory

allocation from userspace "

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb line 2

Quoted 2 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +1 -0
+

+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"

Review

Quoted 18 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +17 -0
+
+LICENSE = "GPLv2"
+
+include ti-cmem.inc
+
+DEPENDS = "ti-cmem-mod"
+
+S = "${WORKDIR}/git"
+
+PR = "r1"
+
+PACKAGES =+ "${PN}-test"
+
+FILES_${PN}-test = "${bindir}/*"
+
+inherit autotools
+
(quoted diff) +0 -0

b/meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc

Quoted 6 lines

new file mode 100644
index 0000000..9308b2d

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +0 -0
@@ -0,0 +1,10 @@

+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc line 2

Quoted 2 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +2 -0
+
+LIC_FILES_CHKSUM =

"file://products.mak;beginline=2;endline=30;md5=195feadf798bb4165b cb1a23ffd50dbb"

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc

Quoted 7 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +7 -0
+
+COMPATIBLE_MACHINE = "keystone-evm"
+
+BRANCH ?= "master"
+SRCREV = "4.00.00.06"
+
+SRC_URI =

"git://git.ti.com/ipc/ludev.git;protocol=git;branch=${BRANCH}"

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#9 lore raw
Quoted 20 lines · Chase
Quoted 13 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Heroor, Siddharth
Sent: Wednesday, October 30, 2013 11:19 PM
To: [email protected]
Subject: Re: [meta-arago] [PATCH 1/1] ti-cmem: New recipes for ti- cmem

Quoted 1 line · Sam Nelson

- Recipes for ti-cmem which provides user space api for

contigous memory allocaion

Quoted 2 lines

- ti-cmem_mod provides the kernel module
- ti-mem provides the user space library

Quoted 7 lines

Why do we need to create a new recipe? The ti-linuxutils in meta- ti
should be the provider for cmem. Shouldn't that be updated for newer
versions?
Also, I would suggest that we make it machine compatible with omap-a15.

Quoted 3 lines

I don't know that linuxutils is really the right solution. I think it mainly comes down to where/how is cmem being released. So really the question is whether the SRC_URI used below is the official cmem release point or is the SRC_URI from linuxutils right? We do not need multiple versions of cmem where everyone has their own fork of the cmem code.

Another point is shouldn't this be in meta-ti for at least the cmem module?

ludev in the SRC_URI stands for linuxutils dev. The SRC_URI in the linuxutils is a tarball release. One option is for us to drop the tarball release from SRC_URI and use the git tree going forward. I'm in favour of this primarily because that's where the development happens and the tree is tagged.

On meta-arago vs. meta-ti - I agree that the recipe should be in meta-ti. This patch should update linuxutils accordingly.

Quoted 127 lines
Quoted 127 lines
Quoted 4 lines
---
   .../recipes-bsp/ti-cmem/ti-cmem-mod.bb             |   40

++++++++++++++++++++

Quoted 1 line
   meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb   |   20

++++++++++

Quoted 1 line
   meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc  |   10

+++++

Quoted 2 lines
   3 files changed, 70 insertions(+)

create mode 100755 meta-arago-extras/recipes-bsp/ti-cmem/ti-

cmem-mod.bb

Quoted 1 line

create mode 100644 meta-arago-extras/recipes-bsp/ti-cmem/ti-

cmem.bb

Quoted 1 line

create mode 100644 meta-arago-extras/recipes-bsp/ti-cmem/ti-

cmem.inc

Review

Quoted 1 line
(quoted diff) +0 -0

mod.bb b/meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 1

Quoted 6 lines

new file mode 100755
index 0000000..0839c20

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +1 -0
@@ -0,0 +1,40 @@
+DESCRIPTION="The cmem component module for contiguous memory

allocation from userspace "

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 2

Quoted 2 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +1 -0
+

+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb

Quoted 13 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +13 -0
+
+LICENSE = "GPLv2"
+
+include ti-cmem.inc
+
+RDEPENDS_${PN} += "kernel (=${KERNEL_VERSION})"
+
+DEPENDS += "virtual/kernel"
+
+NAME="cmem"
+MODULE_BUILD_DIR ="src/cmem/module"
+
+# This package builds a kernel module, use kernel PR as base

and append a local

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb

Quoted 6 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +6 -0
+PR = "${MACHINE_KERNEL_PR}"
+PR_append = "a"
+
+PKG_${PN} = "kernel-module-${PN}"
+
+KERNEL_VERSION =

"${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}"

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb

Quoted 9 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +9 -0
+
+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}

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb

Quoted 5 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +5 -0
+}
+
+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}"

Review

Quoted 5 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +4 -0
+}
+
+PACKAGE_STRIP = "no"
+
(quoted diff) +0 -0

b/meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb line 1

Quoted 6 lines

new file mode 100644
index 0000000..a106aa0

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +1 -0
@@ -0,0 +1,20 @@
+DESCRIPTION="The cmem component supports contiguous memory

allocation from userspace "

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb line 2

Quoted 2 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +1 -0
+

+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"

Review

Quoted 18 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +17 -0
+
+LICENSE = "GPLv2"
+
+include ti-cmem.inc
+
+DEPENDS = "ti-cmem-mod"
+
+S = "${WORKDIR}/git"
+
+PR = "r1"
+
+PACKAGES =+ "${PN}-test"
+
+FILES_${PN}-test = "${bindir}/*"
+
+inherit autotools
+
(quoted diff) +0 -0

b/meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc

Quoted 6 lines

new file mode 100644
index 0000000..9308b2d

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +0 -0
@@ -0,0 +1,10 @@

+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc line 2

Quoted 2 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +2 -0
+
+LIC_FILES_CHKSUM =

"file://products.mak;beginline=2;endline=30;md5=195feadf798bb4165b cb1a23ffd50dbb"

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc

Quoted 7 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +7 -0
+
+COMPATIBLE_MACHINE = "keystone-evm"
+
+BRANCH ?= "master"
+SRCREV = "4.00.00.06"
+
+SRC_URI =

"git://git.ti.com/ipc/ludev.git;protocol=git;branch=${BRANCH}"

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#10 lore raw
Quoted 30 lines · Siddharth Heroor
Quoted 21 lines · Chase
Quoted 13 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Heroor, Siddharth
Sent: Wednesday, October 30, 2013 11:19 PM
To: [email protected]
Subject: Re: [meta-arago] [PATCH 1/1] ti-cmem: New recipes for ti- cmem

Quoted 1 line · Sam Nelson

- Recipes for ti-cmem which provides user space api for

contigous memory allocaion

Quoted 2 lines

- ti-cmem_mod provides the kernel module
- ti-mem provides the user space library

Quoted 7 lines

Why do we need to create a new recipe? The ti-linuxutils in meta- ti
should be the provider for cmem. Shouldn't that be updated for newer
versions?
Also, I would suggest that we make it machine compatible with omap-a15.

Quoted 7 lines

I don't know that linuxutils is really the right solution. I think it mainly comes down to where/how is cmem being released. So really the question is whether the SRC_URI used below is the official cmem release point or is the SRC_URI from linuxutils right? We do not need multiple versions of cmem where everyone has their own fork of the cmem code.

Another point is shouldn't this be in meta-ti for at least the cmem module?

Quoted 8 lines

ludev in the SRC_URI stands for linuxutils dev. The SRC_URI in the linuxutils is a tarball release. One option is for us to drop the tarball release from SRC_URI and use the git tree going forward. I'm in favour of this primarily because that's where the development happens and the tree is tagged.

On meta-arago vs. meta-ti - I agree that the recipe should be in meta-ti. This patch should update linuxutils accordingly.

Sid,

I agree with your suggestions as long as this component is common and being reused by both MCSDK and GLSDK teams, as well as others.

What I don't want to happen is to unify on a single recipe and later find out that there are so many different requirements and nuances, that none of the teams can use the recipe directly and need to override and customize most of it to their needs...

So, essentially, what I'm looking for is a confirmation from teams (at least Sam and Sid/Mrinmayee, maybe others) that ipc/ludev.git is _the_ repository with the latest code for the cmem/linuxutils component that is being used from a common (master?) branch. Thank you.

Signature · 1 line
Denys
Quoted 131 lines
Quoted 122 lines
Quoted 122 lines
Quoted 3 lines
---
  .../recipes-bsp/ti-cmem/ti-cmem-mod.bb             |   40

++++++++++++++++++++

Quoted 1 line
  meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb   |   20

++++++++++

Quoted 1 line
  meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc  |   10

+++++

Quoted 2 lines
  3 files changed, 70 insertions(+)

create mode 100755 meta-arago-extras/recipes-bsp/ti-cmem/ti-

cmem-mod.bb

Quoted 1 line

create mode 100644 meta-arago-extras/recipes-bsp/ti-cmem/ti-

cmem.bb

Quoted 1 line

create mode 100644 meta-arago-extras/recipes-bsp/ti-cmem/ti-

cmem.inc

Review

Quoted 1 line
(quoted diff) +0 -0

mod.bb b/meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 1

Quoted 6 lines

new file mode 100755
index 0000000..0839c20

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +1 -0
@@ -0,0 +1,40 @@
+DESCRIPTION="The cmem component module for contiguous memory

allocation from userspace "

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 2

Quoted 2 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +1 -0
+

+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb

Quoted 13 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +13 -0
+
+LICENSE = "GPLv2"
+
+include ti-cmem.inc
+
+RDEPENDS_${PN} += "kernel (=${KERNEL_VERSION})"
+
+DEPENDS += "virtual/kernel"
+
+NAME="cmem"
+MODULE_BUILD_DIR ="src/cmem/module"
+
+# This package builds a kernel module, use kernel PR as base

and append a local

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb

Quoted 6 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +6 -0
+PR = "${MACHINE_KERNEL_PR}"
+PR_append = "a"
+
+PKG_${PN} = "kernel-module-${PN}"
+
+KERNEL_VERSION =

"${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}"

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb

Quoted 9 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +9 -0
+
+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}

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb

Quoted 5 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +5 -0
+}
+
+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}"

Review

Quoted 5 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +4 -0
+}
+
+PACKAGE_STRIP = "no"
+
(quoted diff) +0 -0

b/meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb line 1

Quoted 6 lines

new file mode 100644
index 0000000..a106aa0

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +1 -0
@@ -0,0 +1,20 @@
+DESCRIPTION="The cmem component supports contiguous memory

allocation from userspace "

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb line 2

Quoted 2 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +1 -0
+

+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"

Review

Quoted 18 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +17 -0
+
+LICENSE = "GPLv2"
+
+include ti-cmem.inc
+
+DEPENDS = "ti-cmem-mod"
+
+S = "${WORKDIR}/git"
+
+PR = "r1"
+
+PACKAGES =+ "${PN}-test"
+
+FILES_${PN}-test = "${bindir}/*"
+
+inherit autotools
+
(quoted diff) +0 -0

b/meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc

Quoted 6 lines

new file mode 100644
index 0000000..9308b2d

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +0 -0
@@ -0,0 +1,10 @@

+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc line 2

Quoted 2 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +2 -0
+
+LIC_FILES_CHKSUM =

"file://products.mak;beginline=2;endline=30;md5=195feadf798bb4165b cb1a23ffd50dbb"

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc

Quoted 7 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +7 -0
+
+COMPATIBLE_MACHINE = "keystone-evm"
+
+BRANCH ?= "master"
+SRCREV = "4.00.00.06"
+
+SRC_URI =

"git://git.ti.com/ipc/ludev.git;protocol=git;branch=${BRANCH}"

Quoted 4 lines
Quoted 4 lines

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#11 lore raw
Quoted 57 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Dmytriyenko, Denys
Sent: Monday, November 04, 2013 12:06 PM
To: Heroor, Siddharth
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH 1/1] ti-cmem: New recipes for ti-cmem

Quoted 22 lines · Siddharth Heroor
Quoted 20 lines · Chase
Quoted 20 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Heroor, Siddharth
Sent: Wednesday, October 30, 2013 11:19 PM
To: [email protected]
Subject: Re: [meta-arago] [PATCH 1/1] ti-cmem: New recipes for ti- cmem

Quoted 1 line · Sam Nelson

- Recipes for ti-cmem which provides user space api for

contigous memory allocaion

Quoted 2 lines

- ti-cmem_mod provides the kernel module
- ti-mem provides the user space library

Why do we need to create a new recipe? The ti-linuxutils in meta- ti
should be the provider for cmem. Shouldn't that be updated for newer
versions?
Also, I would suggest that we make it machine compatible with omap-a15.

Quoted 7 lines
Quoted 7 lines

I don't know that linuxutils is really the right solution. I think it mainly comes down to where/how is cmem being released. So really the question is whether the SRC_URI used below is the official cmem release point or is the SRC_URI from linuxutils right? We do not need multiple versions of cmem where everyone has their own fork of the cmem code.

Another point is shouldn't this be in meta-ti for at least the cmem

module?

Quoted 9 lines

ludev in the SRC_URI stands for linuxutils dev. The SRC_URI in the linuxutils is a tarball release. One option is for us to drop the tarball release from SRC_URI and use the git tree going forward. I'm in favour of this primarily because that's where the development happens and the tree is tagged.

On meta-arago vs. meta-ti - I agree that the recipe should be in meta-ti. This patch should update linuxutils accordingly.

Sid,

I agree with your suggestions as long as this component is common and being
reused by both MCSDK and GLSDK teams, as well as others.

Quoted 5 lines

What I don't want to happen is to unify on a single recipe and later find out that there are so many different requirements and nuances, that none of the teams can use the recipe directly and need to override and customize most of
it to their needs...

[Sam] I have discussed with the TISB team who owns the linuxutils. Moving forward it makes sense to use the cmem recipes to be used. (Although it is a component of linuxutils). Does it still makes sense to move to meta-ti?

Quoted 6 lines

So, essentially, what I'm looking for is a confirmation from teams (at least Sam and Sid/Mrinmayee, maybe others) that ipc/ludev.git is _the_ repository with the latest code for the cmem/linuxutils component that is being used from
a common (master?) branch. Thank you.

[Sam] Yes. ludev.git will be the place all future releases of cmem will be delivered.

Quoted 143 lines

--
Denys

Quoted 130 lines
Quoted 104 lines
Quoted 17 lines
Quoted 3 lines
---
  .../recipes-bsp/ti-cmem/ti-cmem-mod.bb             |   40

++++++++++++++++++++

Quoted 1 line
  meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb   |   20

++++++++++

Quoted 1 line
  meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc  |   10

+++++

Quoted 2 lines
  3 files changed, 70 insertions(+)

create mode 100755 meta-arago-extras/recipes-bsp/ti-cmem/ti-

cmem-mod.bb

Quoted 1 line

create mode 100644 meta-arago-extras/recipes-bsp/ti-cmem/ti-

cmem.bb

Quoted 1 line

create mode 100644 meta-arago-extras/recipes-bsp/ti-cmem/ti-

cmem.inc

Review

Quoted 1 line
(quoted diff) +0 -0

mod.bb b/meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb

Quoted 9 lines

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 1

Quoted 6 lines

new file mode 100755
index 0000000..0839c20

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +1 -0
@@ -0,0 +1,40 @@
+DESCRIPTION="The cmem component module for contiguous memory

allocation from userspace "

Quoted 2 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +1 -0
+

+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"

Quoted 46 lines

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb

Quoted 13 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +13 -0
+
+LICENSE = "GPLv2"
+
+include ti-cmem.inc
+
+RDEPENDS_${PN} += "kernel (=${KERNEL_VERSION})"
+
+DEPENDS += "virtual/kernel"
+
+NAME="cmem"
+MODULE_BUILD_DIR ="src/cmem/module"
+
+# This package builds a kernel module, use kernel PR as base

and append a local

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb

Quoted 6 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +6 -0
+PR = "${MACHINE_KERNEL_PR}"
+PR_append = "a"
+
+PKG_${PN} = "kernel-module-${PN}"
+
+KERNEL_VERSION =

"${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}"

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb

Quoted 9 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +9 -0
+
+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}

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb

Quoted 5 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +5 -0
+}
+
+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}"

Review

Quoted 5 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +4 -0
+}
+
+PACKAGE_STRIP = "no"
+
(quoted diff) +0 -0

b/meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb

Quoted 9 lines

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb line 1

Quoted 6 lines

new file mode 100644
index 0000000..a106aa0

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +1 -0
@@ -0,0 +1,20 @@
+DESCRIPTION="The cmem component supports contiguous memory

allocation from userspace "

Quoted 2 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +1 -0
+

+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"

Quoted 19 lines

Review

Quoted 18 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +17 -0
+
+LICENSE = "GPLv2"
+
+include ti-cmem.inc
+
+DEPENDS = "ti-cmem-mod"
+
+S = "${WORKDIR}/git"
+
+PR = "r1"
+
+PACKAGES =+ "${PN}-test"
+
+FILES_${PN}-test = "${bindir}/*"
+
+inherit autotools
+
(quoted diff) +0 -0

b/meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc

Quoted 25 lines
Quoted 6 lines

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc

Quoted 6 lines

new file mode 100644
index 0000000..9308b2d

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +0 -0
@@ -0,0 +1,10 @@

+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"

Quoted 17 lines

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc line 2

Quoted 2 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +2 -0
+
+LIC_FILES_CHKSUM =

"file://products.mak;beginline=2;endline=30;md5=195feadf798bb4165b cb1a23ffd50dbb"

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc

Quoted 7 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +7 -0
+
+COMPATIBLE_MACHINE = "keystone-evm"
+
+BRANCH ?= "master"
+SRCREV = "4.00.00.06"
+
+SRC_URI =

"git://git.ti.com/ipc/ludev.git;protocol=git;branch=${BRANCH}"

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Quoted 4 lines

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#12 lore raw
Quoted 63 lines · Sam
Quoted 57 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Dmytriyenko, Denys
Sent: Monday, November 04, 2013 12:06 PM
To: Heroor, Siddharth
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH 1/1] ti-cmem: New recipes for ti-cmem

Quoted 22 lines · Siddharth Heroor
Quoted 20 lines · Chase
Quoted 20 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Heroor, Siddharth
Sent: Wednesday, October 30, 2013 11:19 PM
To: [email protected]
Subject: Re: [meta-arago] [PATCH 1/1] ti-cmem: New recipes for ti- cmem

Quoted 1 line · Sam Nelson

- Recipes for ti-cmem which provides user space api for

contigous memory allocaion

Quoted 2 lines

- ti-cmem_mod provides the kernel module
- ti-mem provides the user space library

Why do we need to create a new recipe? The ti-linuxutils in meta- ti
should be the provider for cmem. Shouldn't that be updated for newer
versions?
Also, I would suggest that we make it machine compatible with omap-a15.

Quoted 7 lines
Quoted 7 lines

I don't know that linuxutils is really the right solution. I think it mainly comes down to where/how is cmem being released. So really the question is whether the SRC_URI used below is the official cmem release point or is the SRC_URI from linuxutils right? We do not need multiple versions of cmem where everyone has their own fork of the cmem code.

Another point is shouldn't this be in meta-ti for at least the cmem

module?

Quoted 9 lines

ludev in the SRC_URI stands for linuxutils dev. The SRC_URI in the linuxutils is a tarball release. One option is for us to drop the tarball release from SRC_URI and use the git tree going forward. I'm in favour of this primarily because that's where the development happens and the tree is tagged.

On meta-arago vs. meta-ti - I agree that the recipe should be in meta-ti. This patch should update linuxutils accordingly.

Sid,

I agree with your suggestions as long as this component is common and being
reused by both MCSDK and GLSDK teams, as well as others.

Quoted 5 lines

What I don't want to happen is to unify on a single recipe and later find out that there are so many different requirements and nuances, that none of the teams can use the recipe directly and need to override and customize most of
it to their needs...

Quoted 3 lines

[Sam] I have discussed with the TISB team who owns the linuxutils. Moving forward it makes sense to use the cmem recipes to be used. (Although it is a component of linuxutils). Does it still makes sense to move to meta-ti?

So, to rephrase - cmem is one of the sub-components of linuxutils, and linuxutils is used to be distributed and built as a single entity, even though it was a collection of smaller sub-components or utils. And moving forward, the component owner is now fine with splitting it up and having individual recipes for each sub-component. In that case it still makes sense to move it to meta-ti.

I may need to start looking into restructuring recipes-ti/ directory (where linuxutils now lives) and figure out better places for things in there, as recipes-bsp is probably a better fit at least for cmem...

Quoted 8 lines
Quoted 5 lines

So, essentially, what I'm looking for is a confirmation from teams (at least Sam and Sid/Mrinmayee, maybe others) that ipc/ludev.git is _the_ repository with the latest code for the cmem/linuxutils component that is being used from
a common (master?) branch. Thank you.

[Sam] Yes. ludev.git will be the place all future releases of cmem will be delivered.

As long as it is shared between teams, it's fine with me - we don't want several different implementations of cmem.

Denys

Quoted 138 lines
Quoted 138 lines
Quoted 130 lines
Quoted 104 lines
Quoted 17 lines
Quoted 3 lines
---
  .../recipes-bsp/ti-cmem/ti-cmem-mod.bb             |   40

++++++++++++++++++++

Quoted 1 line
  meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb   |   20

++++++++++

Quoted 1 line
  meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc  |   10

+++++

Quoted 2 lines
  3 files changed, 70 insertions(+)

create mode 100755 meta-arago-extras/recipes-bsp/ti-cmem/ti-

cmem-mod.bb

Quoted 1 line

create mode 100644 meta-arago-extras/recipes-bsp/ti-cmem/ti-

cmem.bb

Quoted 1 line

create mode 100644 meta-arago-extras/recipes-bsp/ti-cmem/ti-

cmem.inc

Review

Quoted 1 line
(quoted diff) +0 -0

mod.bb b/meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb

Quoted 9 lines

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb line 1

Quoted 6 lines

new file mode 100755
index 0000000..0839c20

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +1 -0
@@ -0,0 +1,40 @@
+DESCRIPTION="The cmem component module for contiguous memory

allocation from userspace "

Quoted 2 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +1 -0
+

+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"

Quoted 46 lines

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb

Quoted 13 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +13 -0
+
+LICENSE = "GPLv2"
+
+include ti-cmem.inc
+
+RDEPENDS_${PN} += "kernel (=${KERNEL_VERSION})"
+
+DEPENDS += "virtual/kernel"
+
+NAME="cmem"
+MODULE_BUILD_DIR ="src/cmem/module"
+
+# This package builds a kernel module, use kernel PR as base

and append a local

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb

Quoted 6 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +6 -0
+PR = "${MACHINE_KERNEL_PR}"
+PR_append = "a"
+
+PKG_${PN} = "kernel-module-${PN}"
+
+KERNEL_VERSION =

"${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}"

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb

Quoted 9 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +9 -0
+
+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}

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb

Quoted 5 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +5 -0
+}
+
+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}"

Review

Quoted 5 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb new file +4 -0
+}
+
+PACKAGE_STRIP = "no"
+
(quoted diff) +0 -0

b/meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb

Quoted 9 lines

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb line 1

Quoted 6 lines

new file mode 100644
index 0000000..a106aa0

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +1 -0
@@ -0,0 +1,20 @@
+DESCRIPTION="The cmem component supports contiguous memory

allocation from userspace "

Quoted 2 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +1 -0
+

+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"

Quoted 19 lines

Review

Quoted 18 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb new file +17 -0
+
+LICENSE = "GPLv2"
+
+include ti-cmem.inc
+
+DEPENDS = "ti-cmem-mod"
+
+S = "${WORKDIR}/git"
+
+PR = "r1"
+
+PACKAGES =+ "${PN}-test"
+
+FILES_${PN}-test = "${bindir}/*"
+
+inherit autotools
+
(quoted diff) +0 -0

b/meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc

Quoted 25 lines
Quoted 6 lines

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc

Quoted 6 lines

new file mode 100644
index 0000000..9308b2d

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +0 -0
@@ -0,0 +1,10 @@

+HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:CMEM"

Quoted 17 lines

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc line 2

Quoted 2 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +2 -0
+
+LIC_FILES_CHKSUM =

"file://products.mak;beginline=2;endline=30;md5=195feadf798bb4165b cb1a23ffd50dbb"

meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc

Quoted 7 lines
meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc new file +7 -0
+
+COMPATIBLE_MACHINE = "keystone-evm"
+
+BRANCH ?= "master"
+SRCREV = "4.00.00.06"
+
+SRC_URI =

"git://git.ti.com/ipc/ludev.git;protocol=git;branch=${BRANCH}"

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Quoted 4 lines

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago