opkg-utils: Add basic PACKAGECONFIG for python dependencies

In small configurations its useful not to have python dependencies. This
patch adds code to disable those using PACKAGECONFIG. This allows us to
fix poky-tiny after the recent move of update-alternatives to opkg-utils.

(From OE-Core rev: 0c0039048fd97cdd3cf28f9e1c829a716dfd68ea)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2014-01-17 11:39:40 +00:00
parent 6e15d32e83
commit e612e83012
1 changed files with 6 additions and 3 deletions

View File

@ -16,6 +16,12 @@ S = "${WORKDIR}/git"
TARGET_CC_ARCH += "${LDFLAGS}"
PYTHONRDEPS = "python python-shell python-io python-math python-crypt python-logging python-fcntl python-subprocess python-pickle python-compression python-textutils python-stringold"
PYTHONRDEPS_class-native = ""
PACKAGECONFIG = "python"
PACKAGECONFIG[python] = ",,,${PYTHONRDEPS}"
do_install() {
oe_runmake PREFIX=${prefix} DESTDIR=${D} install
}
@ -25,9 +31,6 @@ PACKAGES_class-native = ""
PACKAGES =+ "update-alternatives-opkg"
FILES_update-alternatives-opkg = "${bindir}/update-alternatives"
RDEPENDS_${PN} = "python python-shell python-io python-math python-crypt python-logging python-fcntl python-subprocess python-pickle python-compression python-textutils python-stringold"
RDEPENDS_${PN}_class-native = ""
RPROVIDES_update-alternatives-opkg = "update-alternatives"
BBCLASSEXTEND = "native nativesdk"