Skip to contentSkip to conversation

busybox: conditional inclusion of login utilities

PATCH In review David Vincent 2 participants 3 messages Jan 26, 2017 – Jan 27, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 busybox: conditional inclusion of login utilities

If busybox is not selected as login manager, do not include the fragment containing the corresponding utilities.

---
 meta/recipes-core/busybox/busybox_1.24.1.bb | 2 +-
 meta/recipes-core/busybox/busybox_git.bb    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-core/busybox/busybox_1.24.1.bb +1 -1
index afb69d13e6..7d994dc10d 100644
@@ -25,7 +25,7 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
            file://run-ptest \
            file://inetd.conf \
            file://inetd \
-           file://login-utilities.cfg \
+           ${@["", "file://login-utilities.cfg"][(d.getVar('VIRTUAL-RUNTIME_login_manager') == 'busybox')]} \
            file://recognize_connmand.patch \
            file://busybox-cross-menuconfig.patch \
            file://0001-Use-CC-when-linking-instead-of-LD-and-use-CFLAGS-and.patch \
meta/recipes-core/busybox/busybox_git.bb +1 -1
index c2ee3e6c4b..4213ef4b1e 100644
@@ -31,7 +31,7 @@ SRC_URI = "git://busybox.net/busybox.git \
            file://run-ptest \
            file://inetd.conf \
            file://inetd \
-           file://login-utilities.cfg \
+           ${@["", "file://login-utilities.cfg"][(d.getVar('VIRTUAL-RUNTIME_login_manager') == 'busybox')]} \
            file://recognize_connmand.patch \
            file://busybox-cross-menuconfig.patch \
            file://0001-Use-CC-when-linking-instead-of-LD-and-use-CFLAGS-and.patch \
Signature · 1 line
2.11.0
#1 lore raw
Quoted 6 lines · David Vincent
meta/recipes-core/busybox/busybox_git.bb +0 -0
index c2ee3e6c4b..4213ef4b1e 100644

meta/recipes-core/busybox/busybox_git.bb SRC_URI = "git://busybox.net/busybox.git \ · line 37

Quoted 8 lines
meta/recipes-core/busybox/busybox_git.bb +1 -1
@@ -31,7 +31,7 @@ SRC_URI = "git://busybox.net/busybox.git \
            file://run-ptest \
            file://inetd.conf \
            file://inetd \
-           file://login-utilities.cfg \
+           ${@["", "file://login-utilities.cfg"][
 (d.getVar('VIRTUAL-RUNTIME_login_manager') == 'busybox')]} \
            file://recognize
 

Question, why not use ${PN} here?

Signature · 4 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Senior Software Engineer, Mentor Graphics
#2 lore raw
Quoted 1 line · On jeudi 26 janvier 2017 09:55:17 CET Christopher Larson wrote:

Question, why not use ${PN} here?

It was done the same way in the recipe for other fragments so I made it look like the existing declarations.

David