On Fri, Dec 19, 2014 at 6:47 AM, <[email protected]> wrote: > From: Chunrong Guo <[email protected]> > > This package is used to merge specified files into rootfs > > Signed-off-by: Chunrong Guo <[email protected]> > --- > .../merge-files/merge-files/merge/README | 7 ++++++ > recipes-extended/merge-files/merge-files_1.0.bb | 25 > ++++++++++++++++++++++ > 2 files changed, 32 insertions(+) > create mode 100644 recipes-extended/merge-files/merge-files/merge/README > create mode 100644 recipes-extended/merge-files/merge-files_1.0.bb > > diff --git a/recipes-extended/merge-files/merge-files/merge/README > b/recipes-extended/merge-files/merge-files/merge/README > new file mode 100644 > index 0000000..8f0d85a > --- /dev/null > +++ b/recipes-extended/merge-files/merge-files/merge/README > @@ -0,0 +1,7 @@ > +This package is used to merge specified files into rootfs. > + > +Steps: > +1> copy files to recipes-*/merge-files/merge-files/merge/ > +2> add 'IMAGE_INSTALL += "merge-files"' into rootfs recipe > +3> bitbake <rootfs_image_type> > + > diff --git a/recipes-extended/merge-files/merge-files_1.0.bb > b/recipes-extended/merge-files/merge-files_1.0.bb > new file mode 100644 > index 0000000..f64b909 > --- /dev/null > +++ b/recipes-extended/merge-files/merge-files_1.0.bb ... > +MERGED_DST ?= "${ROOT_HOME}" > +do_install () { > + install -d ${D}/${MERGED_DST} > + find ${WORKDIR}/merge/ -maxdepth 1 -mindepth 1 -not -name README \ > + -exec cp -fr '{}' ${D}/${MERGED_DST}/ \; > + find ${WORKDIR}/merge/ -maxdepth 1 -mindepth 1 -exec rm -fr '{}' \; > +} > +do_unpack[nostamp] = "1" > +do_install[nostamp] = "1" > +do_configure[noexec] = "1" > +do_compile[noexec] = "1" > + > +FILES_${PN} = "/*" > +ALLOW_EMPTY_${PN} = "1" > +INSANE_SKIP_${PN} = "debug-files dev-so" > +
This seems like a hack. We shouldn't include directories and binary files without proper versioning in a image as this will be hard to track and reproduce in future. People wishing to do it can use the extra commands in the image itself but a recipe to make it 'neat' is not going to solve the hackness of it. -- Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750 -- _______________________________________________ meta-freescale mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-freescale
