<div dir="ltr">Here is my recipe, it runs suceeds but does not delete the files<br><br>mypostprocesfunction() {<br>rm -r ${IMAGE_ROOTFS}/etc/init.d/psplash.sh<br>rm -r ${IMAGE_ROOTFS}/usr/bin/psplash*<br>}<br><br>ROOTFS_POSTPROCESS_COMMAND += "mypostprocessfunction; "<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 13, 2017 at 2:03 PM, Mike Looijmans <span dir="ltr"><<a href="mailto:mike.looijmans@topic.nl" target="_blank">mike.looijmans@topic.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">${D} won't work here, grep on ROOTFS_POSTPROCESS_COMMAND for recipes that get it right.<br>
<br>
And, much much much better would be to just not install psplash into your image!<span class=""><br>
<br>
On 13-12-17 09:10, Sherif Omran wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
here is my recipe, the aim was to remove some files from the init.d folder and tweek before creating the image<br>
<br>
#<br>
# This file was derived from the 'Hello World!' example recipe in the<br>
# Yocto Project Development Manual.<br>
#<br>
<br>
SUMMARY = "This recipe removes any missing files from the filesystem before finalinzing it"<br>
SECTION = "base"<br>
LICENSE = "MIT"<br>
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/<wbr>MIT;md5=0835ade698e0bcf8506ecd<wbr>a2f7b4f302"<br>
<br>
#SRC_URI = "file://*"<br>
<br>
S = "${WORKDIR}"<br>
BB_STRICT_CHECKSUM ="0"<br>
ALLOW_EMPTY_${PN}="1"<br>
<br>
<br>
#IMAGE_INSTALL = "packagegroup-core-boot packagegroup-base-extended ${CORE_IMAGE_EXTRA_INSTALL}"<br>
#IMAGE_INSTALL = "${CORE_IMAGE}"<br>
<br>
#inherit core-image<br>
<br>
my_postprocess_function() {<br>
  rm -r ${D}${bindir}/init.d/psplash.s<wbr>h<br>
}<br>
<br>
ROOTFS_POSTPROCESS_COMMAND += "my_postprocess_function; "<br>
<br></span><span class="">
On Wed, Dec 13, 2017 at 7:22 AM, Mike Looijmans <<a href="mailto:mike.looijmans@topic.nl" target="_blank">mike.looijmans@topic.nl</a> <mailto:<a href="mailto:mike.looijmans@topic.nl" target="_blank">mike.looijmans@topic.n<wbr>l</a>>> wrote:<br>
<br>
  Well, start by sharing yours first.<br>
<br>
  Be careful when naming your shell routine, sometimes OE considers parts<br>
  behind the underscore as overrides and then it cannot find it.<br>
<br>
<br>
  On 13-12-17 07:14, Sherif Omran wrote:<br>
<br>
    hi Mike,<br>
    i could not get it to work, if you have a recipe that works, please<br>
    share it. ROOTFS_POSTPROCESS_COMMAND seems to be buggy.<br>
<br>
    thank you<br>
<br>
<br>
<br>
    On Tue, Dec 12, 2017 at 1:58 PM, Mike Looijmans<br>
    <<a href="mailto:mike.looijmans@topic.nl" target="_blank">mike.looijmans@topic.nl</a> <mailto:<a href="mailto:mike.looijmans@topic.nl" target="_blank">mike.looijmans@topic.n<wbr>l</a>><br></span><span class="">
    <mailto:<a href="mailto:mike.looijmans@topic.nl" target="_blank">mike.looijmans@topic.n<wbr>l</a> <mailto:<a href="mailto:mike.looijmans@topic.nl" target="_blank">mike.looijmans@topic.n<wbr>l</a>>>> wrote:<br>
<br>
       On 11-12-17 15:18, Sherif Omran wrote:<br>
<br>
         i want to create a recipe to clean some files from the rootfile<br>
         system, but i don't know how to let this recipe run the last one<br>
         before building the rootfile system.<br>
<br>
<br>
       You can use ROOTFS_POSTPROCESS_COMMAND in your image recipe to do<br>
    some<br>
       last-minute filesystem cleanup.<br>
<br>
       However, in most cases it's much better to determine what recipe<br>
    puts the<br>
       files there and modify the recipe or remove the package. It would<br>
    help a<br>
       lot if you would reveal what files you want to remove and why.<br>
<br>
<br>
       Kind regards,<br>
<br>
       Mike Looijmans<br>
       System Expert<br>
<br>
       TOPIC Products<br>
       Materiaalweg 4, NL-5681 RJ Best<br>
       Postbus 440, NL-5680 AK Best<br>
       Telefoon: <a href="tel:%2B31%20%280%29%20499%2033%2069%2079" value="+31499336979" target="_blank">+31 (0) 499 33 69 79</a><br>
    <tel:%2B31%20%280%29%20499%203<wbr>3%2069%2079><br>
    <tel:%2B31%20%280%29%20499%203<wbr>3%2069%2079><br>
       E-mail: <a href="mailto:mike.looijmans@topicproducts.com" target="_blank">mike.looijmans@topicproducts.c<wbr>om</a><br>
    <mailto:<a href="mailto:mike.looijmans@topicproducts.com" target="_blank">mike.looijmans@topicpr<wbr>oducts.com</a>><br></span>
       <mailto:<a href="mailto:mike.looijmans@topicproducts.com" target="_blank">mike.looijmans@topicpr<wbr>oducts.com</a><div><div class="h5"><br>
    <mailto:<a href="mailto:mike.looijmans@topicproducts.com" target="_blank">mike.looijmans@topicpr<wbr>oducts.com</a>>><br>
       Website: <a href="http://www.topicproducts.com" rel="noreferrer" target="_blank">www.topicproducts.com</a> <<a href="http://www.topicproducts.com" rel="noreferrer" target="_blank">http://www.topicproducts.com</a>><br>
    <<a href="http://www.topicproducts.com" rel="noreferrer" target="_blank">http://www.topicproducts.com</a>><br>
<br>
       Please consider the environment before printing this e-mail<br>
<br>
<br>
<br>
       --<br>
<br>
<br>
  Kind regards,<br>
<br>
  Mike Looijmans<br>
  System Expert<br>
<br>
  TOPIC Products<br>
  Materiaalweg 4, NL-5681 RJ Best<br>
  Postbus 440, NL-5680 AK Best<br>
  Telefoon: <a href="tel:%2B31%20%280%29%20499%2033%2069%2079" value="+31499336979" target="_blank">+31 (0) 499 33 69 79</a> <tel:%2B31%20%280%29%20499%203<wbr>3%2069%2079><br>
  E-mail: <a href="mailto:mike.looijmans@topicproducts.com" target="_blank">mike.looijmans@topicproducts.c<wbr>om</a><br>
  <mailto:<a href="mailto:mike.looijmans@topicproducts.com" target="_blank">mike.looijmans@topicpr<wbr>oducts.com</a>><br>
  Website: <a href="http://www.topicproducts.com" rel="noreferrer" target="_blank">www.topicproducts.com</a> <<a href="http://www.topicproducts.com" rel="noreferrer" target="_blank">http://www.topicproducts.com</a>><br>
<br>
  Please consider the environment before printing this e-mail<br>
<br>
<br>
<br>
  <br>
</div></div></blockquote><div><div class="h5">
<br>
Kind regards,<br>
<br>
Mike Looijmans<br>
System Expert<br>
<br>
TOPIC Products<br>
Materiaalweg 4, NL-5681 RJ Best<br>
Postbus 440, NL-5680 AK Best<br>
Telefoon: <a href="tel:%2B31%20%280%29%20499%2033%2069%2079" value="+31499336979" target="_blank">+31 (0) 499 33 69 79</a><br>
E-mail: <a href="mailto:mike.looijmans@topicproducts.com" target="_blank">mike.looijmans@topicproducts.c<wbr>om</a><br>
Website: <a href="http://www.topicproducts.com" rel="noreferrer" target="_blank">www.topicproducts.com</a><br>
<br>
Please consider the environment before printing this e-mail<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<br>
       yocto mailing list<br>
    <a href="mailto:yocto@yoctoproject.org" target="_blank">yocto@yoctoproject.org</a> <mailto:<a href="mailto:yocto@yoctoproject.org" target="_blank">yocto@yoctoproject.org</a><wbr>><br></div></div>
    <mailto:<a href="mailto:yocto@yoctoproject.org" target="_blank">yocto@yoctoproject.org</a> <mailto:<a href="mailto:yocto@yoctoproject.org" target="_blank">yocto@yoctoproject.org</a><wbr>>><br>
    <a href="https://lists.yoctoproject.org/listinfo/yocto" rel="noreferrer" target="_blank">https://lists.yoctoproject.org<wbr>/listinfo/yocto</a><br>
    <<a href="https://lists.yoctoproject.org/listinfo/yocto" rel="noreferrer" target="_blank">https://lists.yoctoproject.or<wbr>g/listinfo/yocto</a>><br>
       <<a href="https://lists.yoctoproject.org/listinfo/yocto" rel="noreferrer" target="_blank">https://lists.yoctoproject.or<wbr>g/listinfo/yocto</a><br>
    <<a href="https://lists.yoctoproject.org/listinfo/yocto" rel="noreferrer" target="_blank">https://lists.yoctoproject.or<wbr>g/listinfo/yocto</a>>><br>
<br>
<br>
<br>
<br>
</blockquote>
<br>
</blockquote></div><br></div>