Hi Khem, Here is a patch.
- add RDEPENDS python - updated FILES to your comment - made change to the master tip of git://git.openembedded.org/meta-openembedded - testing: bitbake psmem - testing: bitbake fsl-image-full (using freescale yocto) Thank you. Insop >From 2a4e527465b0ec80e41d2b0df0e2c0b2ef30c608 Mon Sep 17 00:00:00 2001 From: Insop Song <insop.s...@gmail.com> Date: Wed, 10 Dec 2014 17:16:27 -0800 Subject: [yocto][PATCH] Add ps_mem to to accurately report the in core memory usage for a program - https://github.com/pixelb/ps_mem --- meta-oe/recipes-extended/ps_mem/psmem.bb | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 meta-oe/recipes-extended/ps_mem/psmem.bb diff --git a/meta-oe/recipes-extended/ps_mem/psmem.bb b/meta-oe/recipes-extended/ps_mem/psmem.bb new file mode 100644 index 0000000..b6b22a7 --- /dev/null +++ b/meta-oe/recipes-extended/ps_mem/psmem.bb @@ -0,0 +1,26 @@ +# +# ps_mem +# + +SUMMARY = "A utility to accurately report the in core memory usage for a program" +HOMEPAGE = "https://github.com/pixelb/ps_mem" +LICENSE = "LGPLv2" +LIC_FILES_CHKSUM = "file://LICENSE;md5=c05fdef0c0d05f619748e9bb0fb41b21" + +RDEPENDS_${PN} = " python " + +SRC_URI = "git://github.com/pixelb/ps_mem.git;branch=master;protocol=git" +SRCREV = "702b461d16062f14a9f4191bc731adcf48b51489" + +S = "${WORKDIR}/git" + +do_compile () { + echo "No compile needed" +} + +do_install () { + install -d ${D}${bindir} + install -m 0755 ${S}/ps_mem.py ${D}${bindir}/ps_mem +} + +FILES_${PN}-dbg += "/var/www/pages/.debug" -- 1.7.9.5 On Wed, Dec 10, 2014 at 2:39 PM, Khem Raj <raj.k...@gmail.com> wrote: > >> On Dec 10, 2014, at 1:33 PM, Insop Song <insop.s...@gmail.com> wrote: >> >> Hi Khem, >> >> I've been using this memory check utility (ps_mem) and wrote a bb file >> to include it in our yocto image. >> >> I thought it'd nice to include this in yocto upstream as well. >> >> - It's called ps_mem, "A utility to accurately report the in core >> memory usage for a program" >> - https://github.com/pixelb >> >> Could you consider to include ps_mem in upstream? and let me know what >> and where to put if is okay? I can follow up. > > sure, please post it for meta-openembedded/meta-oe > >> >> >> Thank you, >> >> Insop >> >> >> - this is my bb file as an example >> >> diff --git a/recipes-gs/ps_mem/psmem.bb b/recipes-gs/ps_mem/psmem.bb >> new file mode 100644 >> index 0000000..d408298 >> --- /dev/null >> +++ b/recipes-gs/ps_mem/psmem.bb >> @@ -0,0 +1,26 @@ >> +# >> +# ps_mem >> +# >> +SUMMARY = "A utility to accurately report the in core memory usage >> for a program" >> +HOMEPAGE = "https://github.com/pixelb/ps_mem" >> +LICENSE = "LGPLv2" >> +LIC_FILES_CHKSUM = "file://LICENSE;md5=c05fdef0c0d05f619748e9bb0fb41b21" >> + >> +PR = “r0" > > remove this > >> + >> +SRC_URI = "git://github.com/pixelb/ps_mem.git;branch=master;protocol=git" >> +SRCREV = "702b461d16062f14a9f4191bc731adcf48b51489" >> + >> +S = "${WORKDIR}/git" >> + >> +do_compile () { >> + echo "No compile needed" >> +} >> + >> +do_install () { >> + install -d ${D}${bindir} >> + install -m 0755 ${S}/ps_mem.py ${D}${bindir}/ps_mem > > you need a dependency on python atlas > >> +} >> + >> +FILES_${PN} += "/*” > > why is this needed may be you want www to go under /var > >> +FILES_${PN}-dbg += "/www/pages/.debug” > > this could go into /var/www > >> -- >> 1.7.9.5 >
From 2a4e527465b0ec80e41d2b0df0e2c0b2ef30c608 Mon Sep 17 00:00:00 2001 From: Insop Song <insop.s...@gmail.com> Date: Wed, 10 Dec 2014 17:16:27 -0800 Subject: [PATCH] Add ps_mem to to accurately report the in core memory usage for a program - https://github.com/pixelb/ps_mem --- meta-oe/recipes-extended/ps_mem/psmem.bb | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 meta-oe/recipes-extended/ps_mem/psmem.bb diff --git a/meta-oe/recipes-extended/ps_mem/psmem.bb b/meta-oe/recipes-extended/ps_mem/psmem.bb new file mode 100644 index 0000000..b6b22a7 --- /dev/null +++ b/meta-oe/recipes-extended/ps_mem/psmem.bb @@ -0,0 +1,26 @@ +# +# ps_mem +# + +SUMMARY = "A utility to accurately report the in core memory usage for a program" +HOMEPAGE = "https://github.com/pixelb/ps_mem" +LICENSE = "LGPLv2" +LIC_FILES_CHKSUM = "file://LICENSE;md5=c05fdef0c0d05f619748e9bb0fb41b21" + +RDEPENDS_${PN} = " python " + +SRC_URI = "git://github.com/pixelb/ps_mem.git;branch=master;protocol=git" +SRCREV = "702b461d16062f14a9f4191bc731adcf48b51489" + +S = "${WORKDIR}/git" + +do_compile () { + echo "No compile needed" +} + +do_install () { + install -d ${D}${bindir} + install -m 0755 ${S}/ps_mem.py ${D}${bindir}/ps_mem +} + +FILES_${PN}-dbg += "/var/www/pages/.debug" -- 1.7.9.5
-- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto