From e6712d10dfda3abf3c26c4bc41bb1e0ba9548da0 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 11 Aug 2015 08:14:34 +0200 Subject: [PATCH] sysmocom-idu: Pick the right tune level Depending on the upstream version (dora or not) we need to use either core2 or core2-32. Use a python block expression to pick this depending on the distro version. --- conf/machine/sysmocom-idu.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/machine/sysmocom-idu.conf b/conf/machine/sysmocom-idu.conf index 67d4bf5..bfa2267 100644 --- a/conf/machine/sysmocom-idu.conf +++ b/conf/machine/sysmocom-idu.conf @@ -17,7 +17,9 @@ MACHINE_FEATURES += "kernel26 x86 usbhost pci acpi" KERNEL_IMAGETYPE = "bzImage" IMAGE_FSTYPES = "ext4" -DEFAULTTUNE="core2" + +# After dora core2 got renamed to core2-32 +DEFAULTTUNE="${@['core2-32','core2'][d.getVar('DISTRO_VERSION', True)[0:3] == '1.5']}" SERIAL_CONSOLE = "115200 ttyS0" MACHINE_CONSOLE = "console=ttyS0,115200n8"