mirror of
https://git.yoctoproject.org/poky
synced 2026-09-24 22:36:21 +02: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
|
# 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",
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user