[oe] [meta-raspberrypi][PATCH] If SERIAL_CONSOLE is already define by another layer, this value may not be good.

Thomas PERROT thomas.perrot at tupi.fr
Fri May 22 12:49:38 UTC 2015


Hi Gary,

I know it is incorrect to define this variable in a no machine layer
but that can be possible.

For example, by using the meta-systemd layer, the recipe
systemd-serialgetty define SERIAL_CONSOLE, so when the raspberrypi
machine layer is applied, the SERIAL_CONSOLE isn't changed and the
value is invalid.

I know that it's incorrect for the meta-systemd layer to define this
variable, so I have submit a another patch to fix it.

But I think replace "?=" by "=" in raspberrypi machine layer is more robust.

I also send this patch on the rpi mailing list.

Best regards,
Thomas P.

On Fri, May 22, 2015 at 1:23 PM, Gary Thomas <gary at mlbassoc.com> wrote:
> On 2015-05-22 04:04, Thomas Perrot wrote:
>>
>> Signed-off-by: Thomas Perrot <thomas.perrot at tupi.fr>
>> ---
>>   conf/machine/include/rpi-base.inc |    2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/conf/machine/include/rpi-base.inc
>> b/conf/machine/include/rpi-base.inc
>> index a26803a..1dda207 100644
>> --- a/conf/machine/include/rpi-base.inc
>> +++ b/conf/machine/include/rpi-base.inc
>> @@ -7,7 +7,7 @@ include conf/machine/include/soc-family.inc
>>
>>   IMAGE_FSTYPES ?= "tar.bz2 ext3 rpi-sdimg"
>>
>> -SERIAL_CONSOLE ?= "115200 ttyAMA0"
>> +SERIAL_CONSOLE = "115200 ttyAMA0"
>>
>>   XSERVER = " \
>>       xserver-xorg \
>>
>
> Firstly, this should go to the RaspberryPi list (CC'd), not here.
>
> How can this value, which is only ever defined in this file
> when using MACHINE=raspberrypi* be affected by another layer?
> Is there is another layer which is defining this variable
> outside of the MACHINE .conf files, then that layer is incorrect,
> not this one.
>
> --
> ------------------------------------------------------------
> Gary Thomas                 |  Consulting for the
> MLB Associates              |    Embedded world
> ------------------------------------------------------------
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel



More information about the Openembedded-devel mailing list