[yocto] customising root file system by removing the unwanted commands and libraries

Paul Eggleton paul.eggleton at linux.intel.com
Fri Mar 20 04:06:01 PDT 2015


Hi Dilip,

On Wednesday 18 March 2015 03:00:37 Dilip Basavaraju wrote:
>                 I want to build an RFS, which I need to customize it by
> removing the unwanted packages and particular commands which is not used by
> me.
> 
>                 Please suggest me how to customize, or refer me for
> documents where I can read and understand completely all the details about
> customization.
> 
>                 For example:
> 
>                 /bin will have cat, ls, cd, lsmod, wc .....
> 
>                 I want to remove wc and lsmod and minimize my RFS as much as
> possible.

We have a general guide that might be useful here:

http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#building-a-tiny-system

(Whether you actually need to use poky-tiny itself is a separate question,
but it does explain some of the techniques used to generate it.)

Ultimately, removing things comes down to figuring out how they got there in
the first place. The Toaster Web UI, or the graphs produced by buildhistory for
the image and bitbake -g may be useful in that process - but note that not
everything can be removed easily.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



More information about the yocto mailing list