]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
xserver-xorg: rewrite ABI dependency generation
authorRoss Burton <ross.burton@arm.com>
Fri, 22 Nov 2024 14:21:58 +0000 (14:21 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 23 Nov 2024 14:28:29 +0000 (14:28 +0000)
commitf40b36fb089f6ccd4fb25373ed4cb57fae78a79f
tree60a3d436ae46d933457ec5edca7e5121179b38cb
parent68e52c215a2d41d320bcdea61801f03e76936b26
xserver-xorg: rewrite ABI dependency generation

This was motivated by remembering that both xserver-xorg and xorgxrdp
need to ignore the xorg-driver-abi test in do_package_qa because the
logic to generate the required dependencies is contained in
xorg-driver-common.inc, so can't be reused easily by the xserver (which
ships the modesetting driver) or xorgxrdp (which ships drivers and more).

Merge both the RPROVIDES (xserver) and RDEPENDS (driver) functions into a
single xserver-abi.inc to ensure that their logic remains in sync.

Generalise the names: instead of hardcoding 'input' and 'video' extract
the ABI names from the pkg-config file directly. This means 'input' is
now 'xinput' and 'video' is now 'videodrv', also 'ansic' and 'extension'
are new ABIs exposed.

Rewrite the RDEPENDS generation so that it is more flexible, and can be
used from inside the xserver-xorg recipe to generate RDEPENDS for the
modesetting driver. This means that recipe can remove the INSANE_SKIP.

There's an argument that this new .inc file could be a bbclass, I'm
undecided on this myself right now and this patch is essentially a
rationalisation of the existing code.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-graphics/xorg-driver/xorg-driver-common.inc
meta/recipes-graphics/xorg-driver/xorg-driver-input.inc
meta/recipes-graphics/xorg-driver/xorg-driver-video.inc
meta/recipes-graphics/xorg-xserver/xserver-abi.inc [new file with mode: 0644]
meta/recipes-graphics/xorg-xserver/xserver-xorg.inc