From 5d02a1e32df0a8941d3921ba8533b35c70f7ca3b Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Fri, 24 Oct 2014 17:35:04 +0200 Subject: colibri_vf: detect module type on dt kernels Detect the module type using the compatible property of the device tree to symlink the module specific background image. --- recipes-lxde/lxde-common/lxde-common_0.5.5.bbappend | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/recipes-lxde/lxde-common/lxde-common_0.5.5.bbappend b/recipes-lxde/lxde-common/lxde-common_0.5.5.bbappend index d22ad2f..7305cff 100644 --- a/recipes-lxde/lxde-common/lxde-common_0.5.5.bbappend +++ b/recipes-lxde/lxde-common/lxde-common_0.5.5.bbappend @@ -46,9 +46,12 @@ pkg_postinst_${PN}_vf () { exit 1 fi IS_VF50=`grep -c VF50 /proc/cpuinfo` - if [ $IS_VF50 -gt 0 ]; then + IS_VF50_DTB=`grep -c toradex,vf500-colibri_vf50 /proc/device-tree/compatible` + IS_VF61=`grep -c VF61 /proc/cpuinfo` + IS_VF61_DTB=`grep -c toradex,vf610-colibri_vf61 /proc/device-tree/compatible` + if [ $IS_VF50 -gt 0 ] || [ $IS_VF50_DTB -gt 0 ]; then ln -sf Wallpaper_ColibriVF50.png ${datadir}/lxde/wallpapers/toradex.png - else + elif [ $IS_VF61 -gt 0 ] || [ $IS_VF61_DTB -gt 0 ]; then ln -sf Wallpaper_ColibriVF61.png ${datadir}/lxde/wallpapers/toradex.png fi } -- cgit v1.2.3