#!/bin/bash set -e YOCTO_VERSION="4.19" while getopts y: parameter_Option do case "${parameter_Option}" in y) YOCTO_VERSION=${OPTARG};; esac done LOCAL_CFG="/fsl-arm-yocto-bsp/buildxwayland/conf/local.conf" if [ -f $LOCAL_CFG ]; then rm -rf $LOCAL_CFG fi cd /fsl-arm-yocto-bsp EULA=1 MACHINE=imx8qmmek DISTRO=fsl-imx-xwayland BUILD_DIR=buildxwayland source ./fsl-setup-release.sh if [ $YOCTO_VERSION = "4.14" ]; then echo "BBLAYERS += \" \${BSPDIR}/sources/meta-freescale-3rdparty \"" >> conf/bblayers.conf fi if [ $YOCTO_VERSION = "4.14" ]; then cat >> $LOCAL_CFG <> $LOCAL_CFG <