Reducing yocto image size

Hello

I am now building YOcto image froum source for WP76xx

I would like to reduce image size

  1. any tips \ pointers
  2. I have no use pf Python and would like to totally remove it \ remove as many python packages as possible, how can I do that ?
1 Like

does this help?

this was my first attempt :slight_smile: , no not working

Have you modified ./meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image.inc?

yes, I added the following to

meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image.inc

IMAGE_INSTALL_remove = “python”
IMAGE_INSTALL_remove = “python3-native”
IMAGE_INSTALL_remove = “python-m2crypto-native”
IMAGE_INSTALL_remove = “pathon-native”
IMAGE_INSTALL_remove = “python-setuptools-native”

but image size remains the same

any ideas?

how about this?

is it the same?

yes it is the same. still python packages are not removed from image

  1. move the original “./meta-openembedded/meta-python/recipes-devtools/” , “”./meta-openembedded/meta-python/recipes-connectivity", “./meta-openembedded/meta-python/recipes-extended” folders to desktop
  2. copy only some folders and files “./meta-openembedded/meta-python/recipes-devtools/” folder as follows:
  3. make clean
  4. make

But still the yocto image size is the same…
I think python is needed for the image.

Any reason why you need to reduce the image size?