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