Skip to contentSkip to conversation

If SERIAL_CONSOLE is already define by another layer, this value may not be good.

PATCH In review Thomas Perrot 2 participants 4 messages May 22, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 If SERIAL_CONSOLE is already define by another layer, this value may not be good.

---
 conf/machine/include/rpi-base.inc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
conf/machine/include/rpi-base.inc +1 -1
index a26803a..1dda207 100644
@@ -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 \
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 11 lines · Thomas Perrot
---
  conf/machine/include/rpi-base.inc |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
conf/machine/include/rpi-base.inc +0 -0
index a26803a..1dda207 100644

conf/machine/include/rpi-base.inc include conf/machine/include/soc-family.inc · line 13

Quoted 8 lines
conf/machine/include/rpi-base.inc +1 -1
@@ -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.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#2 lore raw

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.

Quoted 41 lines · Gary Thomas
Quoted 13 lines · Thomas Perrot
---
  conf/machine/include/rpi-base.inc |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
conf/machine/include/rpi-base.inc +0 -0
index a26803a..1dda207 100644

conf/machine/include/rpi-base.inc include conf/machine/include/soc-family.inc · line 13

Quoted 8 lines
conf/machine/include/rpi-base.inc +1 -1
@@ -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
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#3 lore raw
Quoted 10 lines · Thomas PERROT

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.

Quoted 6 lines

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.

IMO, the best solution would be to replace it totally since SERIAL_CONSOLE is deprecated by SERIAL_CONSOLES. It should probably be:
SERIAL_CONSOLES ?= "115200;ttyAMA0"

Quoted 42 lines · Gary Thomas
Quoted 41 lines · Thomas Perrot
Quoted 13 lines
---
   conf/machine/include/rpi-base.inc |    2 +-
   1 file changed, 1 insertion(+), 1 deletion(-)
conf/machine/include/rpi-base.inc +0 -0
index a26803a..1dda207 100644

conf/machine/include/rpi-base.inc include conf/machine/include/soc-family.inc · line 13

Quoted 8 lines
conf/machine/include/rpi-base.inc +1 -1
@@ -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
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------