AnsweredAssumed Answered

Is it possible to acces single bb file for two machine configurations ?in yocto setup?

Question asked by veeranjaneyulu g on Jun 9, 2016
Latest reply on Jun 21, 2016 by veeranjaneyulu g

Hi all,

 

we are using yocto setup.But we one doubt is it possible to access two machine configurations from single u-boot source bb file ?

machine1 and machine2 configure in sources/meta-fsl-bsp-release/imx/meta-fsl-arm/conf/machine/machine1.conf

like that i gave two machine configurations but i added both machine related patches in u-boot source bb file.

But with out commenting both patch files how can I access one machine patch file in bb file .in bb file

$ vi sources/meta-fsl-bsp-release/imx/meta-fsl-arm/recipes-bsp/u-boot/u-boot-imx_2014.04.bb

From above bb file is it possible to access two different machine configurations by setting machine name

 

we added the below two lines in above u-boot bb file .

do_patch_prepend(){

if [ "$MACHINE" = "imx6_zcam" ]; then

        SRC_URI +="file://0001-imx6_zcam_uboot_customization.patch"

elif [ "$MACHINE" = "imx6_zcam_custom" ]; then

        SRC_URI +="file://0002-imx6_zcam_custom_uboot_customization.patch"

else

        echo""

fi

}

 

 

Then export build directory

$source setenvironment -b build

$vi conf/local.conf

In the above file we gave MACHINE ??=machine1   selected

===========================

Then extract u-boot source

$bitbake u-boot -c unapck -f

====================

Then apply patch

$bitbake u-boot -c patch -f

========================

But patch was not applied .so any body have any idea of that .

 

$bitbake u-boot -c compile/build -f

i gave its not compiling giving patch was not extract .

 

Thanks & Regards

veeranjaneyulu

Outcomes