xorg-driver: use PACKAGEFUNCS instead of populate_packages_prepend

The dependency adding function has nothing to do with package splitting, so move
it to a PACKAGEFUNC.

(From OE-Core rev: b8766acd26676f619e28e90417f09848c2da43fa)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton
2014-07-15 17:40:33 +01:00
committed by Richard Purdie
parent 2db009d944
commit 562cc69238
3 changed files with 8 additions and 6 deletions

View File

@@ -25,8 +25,8 @@ do_install_append() {
} }
# Function to add the relevant ABI dependency to drivers, which should be called # Function to add the relevant ABI dependency to drivers, which should be called
# from a populate_packages append/prepend. # from a PACKAGEFUNC.
def add_abi_depends(d, name): def _add_xorg_abi_depends(d, name):
# Map of ABI names exposed in the dependencies to pkg-config variables # Map of ABI names exposed in the dependencies to pkg-config variables
abis = { abis = {
"video": "abi_videodrv", "video": "abi_videodrv",

View File

@@ -2,9 +2,10 @@ include xorg-driver-common.inc
DEPENDS += "inputproto kbproto " DEPENDS += "inputproto kbproto "
python populate_packages_prepend() { python add_xorg_abi_depends() {
add_abi_depends(d, "input") _add_xorg_abi_depends(d, "input")
} }
PACKAGEFUNCS =+ "add_xorg_abi_depends"
FILES_${PN} += " ${libdir}/xorg/modules/input/*.so" FILES_${PN} += " ${libdir}/xorg/modules/input/*.so"
FILES_${PN}-dbg += " ${libdir}/xorg/modules/input/.debug" FILES_${PN}-dbg += " ${libdir}/xorg/modules/input/.debug"

View File

@@ -2,6 +2,7 @@ include xorg-driver-common.inc
DEPENDS =+ "renderproto videoproto xextproto fontsproto" DEPENDS =+ "renderproto videoproto xextproto fontsproto"
python populate_packages_prepend() { python add_xorg_abi_depends() {
add_abi_depends(d, "video") _add_xorg_abi_depends(d, "video")
} }
PACKAGEFUNCS =+ "add_xorg_abi_depends"