Search code examples
pythonyoctobitbake

Yocto/Bitbake How to specify case sensitive variable replacement


I have a problem in yocto where I declare a variable in my build/bblayers.conf

VAR="strINg"

then when I use it in meta-example/recipes-kernel/linux/linuxexamplekernel.bb in the Source Uri variable

SRC_URI="http://${VAR}.example.com/"

the value of ${VAR} gets case corrected from 'strINg' to string when I need the case to stay the same. The capitals in the middle of the string have to stay the same.

Does anyone know how to make bitbake replace the variable as is with no case correction?


Solution

  • There is no "case correction". You are seeing some other failure -- bitbake -e <recipe> | grep SRC_URI and the same for VAR might be useful. Also:

    ${VAR}="strINg"
    

    this should be

    VAR = "strINg"
    

    I assume you know that bblayers.conf is a fairly surprising place to define a variable like this...