meta-digi: complete variants support for device trees

Also change the default ccardimx28js variant to 'web1' (wireless, second
ethernet, bluetooth and 1-wire)

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2013-10-15 17:30:44 +02:00
parent ae5a6e060e
commit 8a93cf981c
2 changed files with 14 additions and 6 deletions

View File

@ -44,17 +44,25 @@ config_dts() {
do_update_dts() {
if [ -n "${HAVE_WIFI}" ]; then
config_dts enable '_ssp2_mmc_wifi'
config_dts enable '_ssp2_mmc_wifi.dtsi'
else
config_dts disable '_ssp2_mmc_wifi.dtsi'
fi
if [ -n "${HAVE_EXT_ETH}" ]; then
config_dts enable '_ethernet1[^_]'
config_dts enable '_ethernet1.dtsi'
else
config_dts disable '_ethernet1.dtsi'
fi
if [ -n "${HAVE_BT}" ]; then
config_dts enable '_auart0_bluetooth'
config_dts enable '_auart0_bluetooth.dtsi'
else
config_dts disable '_auart0_bluetooth.dtsi'
fi
if [ -n "${HAVE_1WIRE}" ]; then
config_dts enable '_onewire_i2c1'
config_dts disable '_auart2_4wires'
config_dts enable '_onewire_i2c1.dtsi'
config_dts disable '_auart2_4wires.dtsi'
else
config_dts disable '_onewire_i2c1.dtsi'
fi
if [ -n "${HAVE_GUI}" ]; then
# Enable LCD

View File

@ -51,7 +51,7 @@
#MACHINE ??= "qemux86"
MACHINE = "ccardimx28js"
MACHINE_VARIANT = "wb"
MACHINE_VARIANT = "web1"
#
# Use Digi's internal git repositories