meta-digi: rename external ethernet references to second ethernet
The name "ext-eth" seems to indicate "External Ethernet". Rename that variable and related ones to a more proper name like second ethernet. Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
This commit is contained in:
parent
6b0fbddf3b
commit
412f1b1e55
|
|
@ -40,8 +40,8 @@ MACHINE_EXTRA_RRECOMMENDS += "${MACHINE_FIRMWARE} ${WIRELESS_MODULE}"
|
|||
# web1 Y Y Y Y
|
||||
|
||||
# Per-variant machine features
|
||||
MACHINE_FEATURES_append_e = " ext-eth"
|
||||
MACHINE_FEATURES_append_e = " second-eth"
|
||||
MACHINE_FEATURES_append_w = " wifi"
|
||||
MACHINE_FEATURES_append_wb = " wifi bluetooth"
|
||||
MACHINE_FEATURES_append_web = " wifi ext-eth bluetooth"
|
||||
MACHINE_FEATURES_append_web1 = " wifi ext-eth bluetooth 1-wire"
|
||||
MACHINE_FEATURES_append_web = " wifi second-eth bluetooth"
|
||||
MACHINE_FEATURES_append_web1 = " wifi second-eth bluetooth 1-wire"
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
|
|||
|
||||
# Help variables used in recipes
|
||||
HAVE_WIFI = "${@bb.utils.contains('MACHINE_FEATURES', 'wifi', '1', '', d)}"
|
||||
HAVE_EXT_ETH = "${@bb.utils.contains('MACHINE_FEATURES', 'ext-eth', '1', '', d)}"
|
||||
HAVE_SECOND_ETH = "${@bb.utils.contains('MACHINE_FEATURES', 'second-eth', '1', '', d)}"
|
||||
HAVE_BT = "${@bb.utils.contains('MACHINE_FEATURES', 'bluetooth', '1', '', d)}"
|
||||
HAVE_1WIRE = "${@bb.utils.contains('MACHINE_FEATURES', '1-wire', '1', '', d)}"
|
||||
HAVE_GUI = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '1', '', d)}"
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ do_update_dts() {
|
|||
else
|
||||
config_dts disable '_ssp2_mmc_wifi.dtsi'
|
||||
fi
|
||||
if [ -n "${HAVE_EXT_ETH}" ]; then
|
||||
if [ -n "${HAVE_SECOND_ETH}" ]; then
|
||||
config_dts enable '_ethernet1.dtsi'
|
||||
else
|
||||
config_dts disable '_ethernet1.dtsi'
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ do_install_append() {
|
|||
|
||||
# Create 'interfaces' file dynamically
|
||||
cat ${WORKDIR}/interfaces.eth0.${ETH0_MODE} >> ${D}${sysconfdir}/network/interfaces
|
||||
[ -n "${HAVE_EXT_ETH}" ] && cat ${WORKDIR}/interfaces.eth1.${ETH1_MODE} >> ${D}${sysconfdir}/network/interfaces
|
||||
[ -n "${HAVE_SECOND_ETH}" ] && cat ${WORKDIR}/interfaces.eth1.${ETH1_MODE} >> ${D}${sysconfdir}/network/interfaces
|
||||
[ -n "${HAVE_WIFI}" ] && cat ${WORKDIR}/interfaces.wlan0.${WLAN0_MODE} >> ${D}${sysconfdir}/network/interfaces
|
||||
cat ${WORKDIR}/interfaces.br0.example >> ${D}${sysconfdir}/network/interfaces
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue