meta-digi-dey: add 'cellular' distro feature

Use cellular distro feature to install or not cellular related packages
in our rootfs images.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Jose Diaz de Grenu de Pedro 2015-11-12 16:42:07 +01:00 committed by Javier Viguera
parent 3cb3c7c03b
commit 99f55af6d4
2 changed files with 7 additions and 2 deletions

View File

@ -12,7 +12,7 @@ TARGET_VENDOR = "-dey"
LOCALCONF_VERSION = "1"
# Override these in poky based distros
POKY_DEFAULT_DISTRO_FEATURES = "largefile opengl ptest multiarch wayland bluez5"
POKY_DEFAULT_DISTRO_FEATURES = "largefile opengl ptest multiarch wayland bluez5 cellular"
POKY_DEFAULT_EXTRA_RDEPENDS = "packagegroup-dey-core"
POKY_DEFAULT_EXTRA_RRECOMMENDS = ""

View File

@ -23,9 +23,14 @@ VIRTUAL-RUNTIME_snmp-manager ?= ""
VIRTUAL-RUNTIME_ntp-client ?= "busybox-ntpd"
CELLULAR_PKGS = "\
modemmanager \
ppp \
"
RDEPENDS_${PN} = "\
ppp \
iproute2 \
${@base_contains('DISTRO_FEATURES', 'cellular', '${CELLULAR_PKGS}', '', d)} \
${VIRTUAL-RUNTIME_ftp-server} \
${VIRTUAL-RUNTIME_http-server} \
${VIRTUAL-RUNTIME_network-utils} \