The meta-mchp-common layer consolidates common Board Support Package (BSP) components and metadata for Microchip platforms, streamlining development across various Microchip devices for use with OpenEmbedded and/or Yocto Project.
The meta-mchp-common layer provides support for various Microchip platforms. For detailed information about supported machines, please refer to the documentation in the relevant sub-layers:
Before starting, please refer to the Required Packages for Build Host section in the Yocto Project Documentation to install required dependencies for the build environment:
Note: Make sure to install
git-lfs,libgl1andrepoin addition to the required packages for your Linux distribution.
For instance, on Ubuntu or debian, these packages need to be installed on your development host:
sudo apt-get install gawk wget git-core git-lfs diffstat unzip texinfo gcc-multilib \
build-essential chrpath socat cpio python3 python3-pip python3-pexpect \
xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev \
pylint3 xterm repoTo integrate this layer into your Yocto Project build environment:
-
Clone the necessary repositories:
Create an empty directory to hold the workspace:
mkdir yocto-dev cd yocto-devUse the repo tool to fetch all the required repositories
Make sure to install the repo utility first.
repo init -u https://github.com/linux4microchip/meta-mchp-manifest.git -b <branch> -m <target>/default.xml
Replace
<branch>and<target>with the Yocto release branch and the manifest required. For example:For the MPU layer:
repo init -u https://github.com/linux4microchip/meta-mchp-manifest.git -b refs/tags/linux4microchip-2025.10 -m mpu/default.xml
For the PolarFire SoC layer:
repo init -u https://github.com/linux4microchip/meta-mchp-manifest.git -b refs/tags/linux4microchip+fpga-2025.10 -m polarfire-soc/default.xml
For the PIC64GX Curiosity Kit layer:
repo init -u https://github.com/linux4microchip/meta-mchp-manifest.git -b refs/tags/linux4microchip+fpga-2025.10 -m pic64/pic64gx/default.xml
Fetch all the required repositories using the following repo command:
repo sync
-
Initialize the build environment:
The
meta-mchprepository provides sample configuration templates that help set up BitBake layers and key configuration files in the Yocto build directory.Set the
TEMPLATECONFenvironment variable to point to the appropriate configuration template before initializing the build environment:export TEMPLATECONF=${TEMPLATECONF:-../meta-mchp/<meta-layer>/conf/templates/default}
Replace
meta-layerabove with the desired layer based on your target platform. For example:For MPU boards:
export TEMPLATECONF=${TEMPLATECONF:-../meta-mchp/meta-mchp-mpu/meta-mchp-mpu-apps/conf/templates/default}
For PolarFire SoC boards:
export TEMPLATECONF=${TEMPLATECONF:-../meta-mchp/meta-mchp-polarfire-soc/meta-mchp-polarfire-soc-bsp/conf/templates/default}
For PIC64GX Curiosity Kit:
export TEMPLATECONF=${TEMPLATECONF:-../meta-mchp/meta-mchp-pic64/conf/templates/pic64gx}
Note: Setting
TEMPLATECONFis only needed the first time you will run the source command.Then initialize the Yocto build environment:
source openembedded-core/oe-init-build-env -
Set the target machine and build the image:
MACHINE=<machine> bitbake mchp-base-image
Each sub-layer provides several images that include demos and applications tailored for its respective platform.
For more information on the supported images, please refer to the corresponding README:
This layer depends on the following layers:
- openembedded-core
- URI: git://git.openembedded.org/openembedded-core
- Layers: meta
For information on the specific revisions used, refer to the meta-mchp manifest repository.
The contents of this layer are licensed under the MIT License. See COPYING.MIT for details.
If you want to contribute changes, you can send Github pull requests at https://github.com/linux4microchip/meta-mchp/pulls.
See CONTRIBUTING.md for additional information about contribution guidelines.
- Valentina Fernandez Alanis valentina.fernandezalanis@microchip.com
- Dharma Balasubiramani dharma.b@microchip.com