mirror of
https://git.yoctoproject.org/poky
synced 2026-03-06 23:39:40 +01:00
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:
committed by
Richard Purdie
parent
2db009d944
commit
562cc69238
@@ -25,8 +25,8 @@ do_install_append() {
|
||||
}
|
||||
|
||||
# Function to add the relevant ABI dependency to drivers, which should be called
|
||||
# from a populate_packages append/prepend.
|
||||
def add_abi_depends(d, name):
|
||||
# from a PACKAGEFUNC.
|
||||
def _add_xorg_abi_depends(d, name):
|
||||
# Map of ABI names exposed in the dependencies to pkg-config variables
|
||||
abis = {
|
||||
"video": "abi_videodrv",
|
||||
|
||||
@@ -2,9 +2,10 @@ include xorg-driver-common.inc
|
||||
|
||||
DEPENDS += "inputproto kbproto "
|
||||
|
||||
python populate_packages_prepend() {
|
||||
add_abi_depends(d, "input")
|
||||
python add_xorg_abi_depends() {
|
||||
_add_xorg_abi_depends(d, "input")
|
||||
}
|
||||
PACKAGEFUNCS =+ "add_xorg_abi_depends"
|
||||
|
||||
FILES_${PN} += " ${libdir}/xorg/modules/input/*.so"
|
||||
FILES_${PN}-dbg += " ${libdir}/xorg/modules/input/.debug"
|
||||
|
||||
@@ -2,6 +2,7 @@ include xorg-driver-common.inc
|
||||
|
||||
DEPENDS =+ "renderproto videoproto xextproto fontsproto"
|
||||
|
||||
python populate_packages_prepend() {
|
||||
add_abi_depends(d, "video")
|
||||
python add_xorg_abi_depends() {
|
||||
_add_xorg_abi_depends(d, "video")
|
||||
}
|
||||
PACKAGEFUNCS =+ "add_xorg_abi_depends"
|
||||
|
||||
Reference in New Issue
Block a user