busybox: conditional inclusion of login utilities
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.
Signed-off-by David Vincent <[email protected]>
--- 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
@@ -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
@@ -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
Quoted 6 lines · David Vincent
meta/recipes-core/busybox/busybox_git.bb +0
-0
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
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