Adding Python and other tools (gcc dtc) to Linux Yocto
- Add the layer with Python to Yocto:
cd poky bitbake-layers add-layer ../meta-openembedded/meta-python
You should have the following layers (command bitbake show-layers):
layer path priority =========================================================== core poky/meta 5 yocto poky/meta-poky 5 yoctobsp poky/meta-yocto-bsp 5 openembedded-layer poky/meta-openembedded/meta-oe 5 meta-python poky/meta-openembedded/meta-python 5 arm-toolchain poky/meta-arm/meta-arm-toolchain 5 meta-arm poky/meta-arm/meta-arm 5 xilinx poky/meta-xilinx/meta-xilinx-core 5 xilinx-bsp poky/meta-xilinx/meta-xilinx-bsp 5 xilinx-standalone poky/meta-xilinx/meta-xilinx-standalone 7 xilinx-tools poky/meta-xilinx-tools 8 qt5-layer poky/meta-qt5 7 meta-custom-zybo-z7 poky/meta-custom-zybo-z7 6
- Add the tools to file poky/build/conf/local.conf:
IMAGE_INSTALL:append = " python3-core python3-modules python3-pip python3-setuptools python3-periphery python3-spidev" IMAGE_INSTALL:append = " spidev-test"
- Rebuild the image:
bitbake core-image-minimal-dev
Add more tools (gcc, dtc and kernel modules) to yocto image:
- Add to file poky/build/conf/local.conf:
IMAGE_INSTALL:append = " kernel-modules kmod" IMAGE_INSTALL:append = " dtc" IMAGE_INSTALL:append = " gcc g++ glibc-dev libstdc++-dev make binutils pkgconfig"
- Rebuild the image:
bitbake core-image-minimal-dev




