python: make DISTRO_FEATURE safe

The python bbappend should have only been active when virtualization is
in DISTRO_FEATURES, so we change it to work like the rest of the
bbappends.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
Bruce Ashfield 2020-01-22 16:01:49 +00:00
parent 1d47e25958
commit d10d310cbe
2 changed files with 9 additions and 8 deletions

View File

@ -1,8 +1 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
DEPENDS += " ncurses"
do_compile_prepend() {
export LIBRARY_PATH=${STAGING_DIR_TARGET}/lib
}
require ${@bb.utils.contains('DISTRO_FEATURES', 'virtualization', '${BPN}_virtualization.inc', '', d)}

View File

@ -0,0 +1,8 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
DEPENDS += " ncurses"
do_compile_prepend() {
export LIBRARY_PATH=${STAGING_DIR_TARGET}/lib
}