meta-digi-dey: restrict SPIDEV warning for MXS platforms

https://jira.digi.com/browse/DEL-1022

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2014-03-28 18:48:33 +01:00
parent 6044f0bac2
commit daba0679b2
1 changed files with 5 additions and 1 deletions

View File

@ -11,8 +11,12 @@ SRC_URI = "file://spidev_test"
S = "${WORKDIR}/spidev_test" S = "${WORKDIR}/spidev_test"
# Warn the user in case we cannot enable spidev in the device tree
python do_warning_spidev() { python do_warning_spidev() {
pass
}
# Warn the user in case we cannot enable spidev in the device tree
python do_warning_spidev_mxs() {
if d.getVar('HAVE_GUI', True) and not d.getVar('IS_KERNEL_2X', True): if d.getVar('HAVE_GUI', True) and not d.getVar('IS_KERNEL_2X', True):
bb.warn("SPIDEV conflicts with touchscreen so it was not enabled in the device tree") bb.warn("SPIDEV conflicts with touchscreen so it was not enabled in the device tree")
} }