meta-digi-arm: For the ccardimx28js, chose serial name depending on kernel.

The 2.6.35.14 kernel calls the serial device ttyAM0 while the 3.10 which
uses a different driver calls it ttyAMA0.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
This commit is contained in:
Alex Gonzalez 2013-07-09 16:38:17 +02:00
parent aa1f21aae2
commit c3a4bf30a1
1 changed files with 2 additions and 1 deletions

View File

@ -4,5 +4,6 @@
include conf/machine/include/ccardimx28.inc
SERIAL_CONSOLE = "115200 ttyAM0"
SERIAL_CONSOLE_DEVICE = '${@base_version_less_or_equal("PREFERRED_VERSION_linux-dey", "2.6.35.14", "ttyAM0", "ttyAMA0", d)}'
SERIAL_CONSOLE = "115200 ${SERIAL_CONSOLE_DEVICE}"