[PATCH][GDP] renesas: Generalise IMAGE_INSTALL append to work for all R-Car Gen 2 boards

Tom Pollard tom.pollard at codethink.co.uk
Thu Jan 14 07:13:25 EST 2016


Hi Steve

<snip>

> Example for Porter:
> bb show MACHINEOVERRIDES
> # MACHINEOVERRIDES=${@bb.utils.contains("TUNE_FEATURES", "armv4", "armv4:", "" ,d)}${@bb.utils.contains("TUNE_FEATURES", "armv5", "armv5:", "" ,d)}${@bb.utils.contains("TUNE_FEATURES", "armv6", "armv6:", "" ,d)}${@bb.utils.contains("TUNE_FEATURES", "armv7a", "armv7a:", "" ,d)}${@['', '${SOC_FAMILY}:']['${SOC_FAMILY}' != '']}${MACHINE}
> MACHINEOVERRIDES="armv7a:rcar-gen2:r8a7791:porter"
> 
> As the code applies to all Gen 2 boards I skipped the machine and soc names in favour of using the family name 'rcar-gen2'.
> 
> Where your writing code that is general to the whole family, or SoC then I strongly recommend using the appropriate override rather than the MACHINE name. It's more portable between boards. So if I needed to do something specific to the M2 SoC I would use the 'r8a7791' override.
> 
> If anyone reading this is wondering about the bb util you can find it here [1]. Cool tool. Of course you can also 'bitbake -e' a target and grep the result but its slower.
> 
> [1] https://github.com/kergoth/bb

Thanks for linking the tool, I will definitely be giving it a go! Thanks
for providing the example also, I've now merged to the patch to
meta-genivi-demo & updated the submodule in all branches of
genivi-demo-platform.

Thanks,

Tom

> 
> Regards
> 
> Steve
> 
>>
>> Cheers,
>>
>> Tom
>>> Signed-off-by: Stephen Lawrence <stephen.lawrence at renesas.com>
>>> ---
>>>  recipes-demo-platform/images/genivi-demo-platform.bb | 9 +--------
>>>  1 file changed, 1 insertion(+), 8 deletions(-)
>>>
>>> diff --git a/recipes-demo-platform/images/genivi-demo-platform.bb
>> b/recipes-demo-platform/images/genivi-demo-platform.bb
>>> index 9a2740e..2c7e728 100644
>>> --- a/recipes-demo-platform/images/genivi-demo-platform.bb
>>> +++ b/recipes-demo-platform/images/genivi-demo-platform.bb
>>> @@ -29,14 +29,7 @@ IMAGE_INSTALL_append = " \
>>>      boost \
>>>      "
>>>
>>> -IMAGE_INSTALL_append_koelsch = " \
>>> -    gles-kernel-module \
>>> -    libegl \
>>> -    libegl-dev \
>>> -    libgbm-dev \
>>> -    "
>>> -
>>> -IMAGE_INSTALL_append_porter = " \
>>> +IMAGE_INSTALL_append_rcar-gen2 = " \
>>>      gles-kernel-module \
>>>      libegl \
>>>      libegl-dev \
>>>



More information about the genivi-projects mailing list