[bitbake-devel] [PATCH] enable override for suffix just include digit and dot

张忠山 zzs213 at 126.com
Sat Aug 27 07:32:57 UTC 2016


>>
>> Without this patch, if we write these in recipe test.bb <http://test.bb>:
>>
>>         NAME_1.1.7   = 'version is 1.1.7'
>>         NAME_develop = 'version is develop'
>>
>> Use 'bitbake test -e' to observe 'NAME':
>>         #
>>         # $NAME [2 operations]
>>         #   override[develop]:set .../test.bb:10 <http://test.bb:10>
>>         #     "version is develop"
>>         # pre-expansion value:
>>         #   "version is develop"
>>         NAME="version is develop"
>>
>> Obviously, override for '1.1.7' missing.
>
> Dot is not allowed in variable names intentionally since its file
> extension separator. I am not sure if its a good idea to allow it in
> variable names

Since we can use the path delimeter '/' in override like 
'virtual/kernel'. Why we can't use dot in override.

And bitbkae would add 'PV'(which default to '1.0' in OE) to 'OVERRIDES'. 
So using dot in override may not be an issue.

In bitbake manual, It said we can use BBVERSIONS and override to let 
sigle recipe support multiple package version

If we can't use dot in override, Howto use BBVERSIONS? Use embedded 
python code to set var according version? But it is ugly tahn using 
override!





More information about the bitbake-devel mailing list