BuildΒΆ
Create a directory for storing all files required for building a yocto image:
mkdir yocto
cd yocto
YOCTO_DIR=$(pwd)
Clone required repositories:
cd $YOCTO_DIR
repo init -u https://github.com/pika-spark/lmp-manifest.git -m arduino.xml -b pika-spark
repo sync
Build manufacturing tools (once):
cd $YOCTO_DIR
DISTRO=lmp-mfgtool MACHINE=portenta-x8 . setup-environment
echo "ACCEPT_FSL_EULA = \"1\"" >> conf/local.conf
echo "MFGTOOL_FLASH_IMAGE = \"lmp-devel-arduino-image\"" >> conf/local.conf
bitbake mfgtool-files
cd $YOCTO_DIR
DISTRO=lmp-base-xwayland MACHINE=portenta-x8 . setup-environment
echo "ACCEPT_FSL_EULA = \"1\"" >> conf/local.conf
bitbake lmp-devel-arduino-image
Note: Edit conf/local.conf
to prevent Yocto from hogging all of your cores
+BB_NUMBER_THREADS = "4"
+PARALLEL_MAKE = "-j 4"