Skip to contentSkip to conversation

remove /usr/share/terminfo

DISCUSSION Hans Beckerus 1 participant 1 message Mar 24, 2013 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 37 lines · Jochen Trumpf

Hi Hans,

I am not subscribed to [yocto], just browsing it occasionally, so please excuse the private email.

For this sort of thing I am using the following in my image recipe (stolen from some gumstix image recipe in meta-gumstix-extras, danny branch):

-- cut --

# this section removes remnants of legacy sysvinit support
# for packages installed above
IMAGE_FILE_BLACKLIST += " \
                         /etc/init.d/crond \
                         /etc/init.d/dbus-1 \
                         /etc/init.d/sshd \
  "
remove_blacklist_files() {
         for i in ${IMAGE_FILE_BLACKLIST}; do
                 rm -rf ${IMAGE_ROOTFS}$i
         done

}

ROOTFS_POSTPROCESS_COMMAND =+ "remove_blacklist_files ; " -- cut --

You can add arbitrary commands to ROOTFS_POSTPROCESS_COMMAND, e.g. your link to the network share. As you can see, you can use wildcards in the blacklist entries, or anything that rm -rf will understand.

In case you want to use a similar mechanism to ADD files that are not already present on your build machine, that is not (easily) possible since image.bbclass does not support do_fetch, so SRC_URI does not work within an image recipe. The philosophy seems to be that you need a separate recipe to add things.

Quoted 7 lines

Hope this helps.

Cheers,
Jochen

P.S.: Feel free to forward this to the list if you think it might be interesting for other people.

Hi Jochen. Thanks for the information. As you might have seen already, I solved it by using a .bbappend for ncurses, but I must admit that your solution is a lot more elegant. I will try your approach instead and keep it in mind when needing something similar in the future.

Hans