All of lore.kernel.org
 help / color / mirror / Atom feed
From: Siddharth Heroor <heroor@ti.com>
To: <meta-arago@arago-project.org>
Subject: Re: [PATCH 1/1] ti-cmem: New recipes for ti-cmem
Date: Thu, 31 Oct 2013 09:48:52 +0530	[thread overview]
Message-ID: <5271DA2C.8070401@ti.com> (raw)
In-Reply-To: <1383160055-32615-1-git-send-email-sam.nelson@ti.com>

On 10/31/2013 12:37 AM, Sam Nelson wrote:
> - 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.

>
> Signed-off-by: Sam Nelson <sam.nelson@ti.com>
> ---
>   .../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
>
> diff --git a/meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb b/meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb
> new file mode 100755
> index 0000000..0839c20
> --- /dev/null
> +++ b/meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem-mod.bb
> @@ -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"
> +
> diff --git a/meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb b/meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb
> new file mode 100644
> index 0000000..a106aa0
> --- /dev/null
> +++ b/meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.bb
> @@ -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
> +
> diff --git a/meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc b/meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc
> new file mode 100644
> index 0000000..9308b2d
> --- /dev/null
> +++ b/meta-arago-extras/recipes-bsp/ti-cmem/ti-cmem.inc
> @@ -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}"



  parent reply	other threads:[~2013-10-31  4:18 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-30 19:07 [PATCH 1/1] ti-cmem: New recipes for ti-cmem Sam Nelson
2013-10-30 19:23 ` Denys Dmytriyenko
2013-10-30 22:22   ` Nelson, Sam
2013-10-30 23:37     ` Denys Dmytriyenko
2013-10-31  2:59       ` Nelson, Sam
2013-10-30 19:24 ` Cooper Jr., Franklin
2013-10-31  3:02   ` Nelson, Sam
2013-10-31  4:18 ` Siddharth Heroor [this message]
2013-10-31 13:41   ` Maupin, Chase
2013-11-02  7:05     ` Siddharth Heroor
2013-11-04 17:06       ` Denys Dmytriyenko
2013-11-06 15:53         ` Nelson, Sam
2013-11-06 21:13           ` Denys Dmytriyenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5271DA2C.8070401@ti.com \
    --to=heroor@ti.com \
    --cc=meta-arago@arago-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.