[meta-ti] [PATCH] component-meta: Adding component meta information
Radhakrishnan, Mahesh
m-radhakrishnan2 at ti.com
Wed Sep 20 13:03:18 PDT 2017
Hi Denys,
Sorry, I thought I had not pushed the patch earlier, and missed the thread (attached)
I will resolve the name, description & push this to meta-processor-sdk .
Justin,
Can you share the description to the class?
The name is going to be 'comp-install-meta' then?
Regards
Machu.
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, September 20, 2017 3:55 PM
To: Radhakrishnan, Mahesh
Cc: meta-ti at yoctoproject.org
Subject: Re: [meta-ti] [PATCH] component-meta: Adding component meta information
NAK, this has been discussed in the past...
On Wed, Sep 20, 2017 at 11:37:30AM -0400, Mahesh Radhakrishnan wrote:
> Class for adding component meta information
>
> Signed-off-by: Mahesh Radhakrishnan <m-radhakrishnan2 at ti.com>
> ---
> classes/component_meta.bbclass | 29 +++++++++++++++++++++++++++++
> 1 file changed, 29 insertions(+)
> create mode 100644 classes/component_meta.bbclass
>
> diff --git a/classes/component_meta.bbclass
> b/classes/component_meta.bbclass new file mode 100644 index
> 0000000..f2dc754
> --- /dev/null
> +++ b/classes/component_meta.bbclass
> @@ -0,0 +1,29 @@
> +CM_NAME ?= ""
> +CM_VERSION ?= ""
> +CM_ROOT_DIR ?= ""
> +CM_BINARY ?= ""
> +CM_DESCRIPTION ?= ""
> +
> +do_component_meta() {
> + if [ ! -d "${DEPLOY_DIR_IMAGE}" ]
> + then
> + mkdir -p ${DEPLOY_DIR_IMAGE}
> + fi
> +
> + if [ ! -e "${DEPLOY_DIR_IMAGE}/.components_meta" ]
> + then
> + touch ${DEPLOY_DIR_IMAGE}/.components_meta
> + fi
> +
> + # Check if component is already documented in .components_meta
> + if ! grep -q "${CM_ROOT_DIR}" ${DEPLOY_DIR_IMAGE}/.components_meta
> + then
> + # Add component meta information
> + echo "${CM_NAME}|${CM_VERSION}|${CM_ROOT_DIR}|${CM_BINARY}|${CM_DESCRIPTION}" >> \
> + ${DEPLOY_DIR_IMAGE}/.components_meta
> + fi
> +}
> +
> +do_component_meta[lockfiles] = "${DEPLOY_DIR_IMAGE}/component_meta.lock"
> +
> +addtask do_component_meta after do_install before do_package
> --
> 1.9.1
>
> --
> _______________________________________________
> meta-ti mailing list
> meta-ti at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-ti
-------------- next part --------------
An embedded message was scrubbed...
From: "Sobota, Justin" <jsobota at ti.com>
Subject: RE: [yocto-support] Re: [meta-ti] [PATCH] component_meta: Adding component_meta bbclass
Date: Tue, 18 Jul 2017 14:53:45 +0000
Size: 5275
URL: <http://lists.yoctoproject.org/pipermail/meta-ti/attachments/20170920/f9bafacb/attachment.mht>
More information about the meta-ti
mailing list