From c3a4bf30a1c9d6d5080caeef51b4ba1b4813e7a7 Mon Sep 17 00:00:00 2001 From: Alex Gonzalez Date: Tue, 9 Jul 2013 16:38:17 +0200 Subject: [PATCH] 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 --- meta-digi-arm/conf/machine/ccardimx28js.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta-digi-arm/conf/machine/ccardimx28js.conf b/meta-digi-arm/conf/machine/ccardimx28js.conf index d791bfdf2..cf30baf57 100644 --- a/meta-digi-arm/conf/machine/ccardimx28js.conf +++ b/meta-digi-arm/conf/machine/ccardimx28js.conf @@ -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}"