libdrm: remove git recipe, merge inc
PATCH 1/1 libdrm: remove git recipe, merge inc
The git recipe hasn't been touched since 2012 and is out of date, so simplify the recipe by removing the git form and merging the remaining bb and inc file.
--- meta/recipes-graphics/drm/libdrm.inc | 41 ------------------------------ meta/recipes-graphics/drm/libdrm_2.4.59.bb | 41 +++++++++++++++++++++++++++--- meta/recipes-graphics/drm/libdrm_git.bb | 12 --------- 3 files changed, 38 insertions(+), 56 deletions(-) delete mode 100644 meta/recipes-graphics/drm/libdrm.inc delete mode 100644 meta/recipes-graphics/drm/libdrm_git.bb
meta/recipes-graphics/drm/libdrm.inc deleted +0 -41
@@ -1,41 +0,0 @@ -SUMMARY = "Userspace interface to the kernel DRM services" -DESCRIPTION = "The runtime library for accessing the kernel DRM services. DRM \ -stands for \"Direct Rendering Manager\", which is the kernel portion of the \ -\"Direct Rendering Infrastructure\" (DRI). DRI is required for many hardware \ -accelerated OpenGL drivers." -HOMEPAGE = "http://dri.freedesktop.org" -SECTION = "x11/base" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://xf86drm.c;beginline=9;endline=32;md5=c8a3b961af7667c530816761e949dc71" -SRC_URI = "http://dri.freedesktop.org/libdrm/libdrm-${PV}.tar.bz2" -PROVIDES = "drm" -DEPENDS = "libpthread-stubs udev" - -# be aware that libdrm_2.4.44.bb ignores this -INC_PR = "r4" - -#libpciaccess is required starting from libdrm 2.4.26 -DEPENDS += " libpciaccess" - -inherit autotools pkgconfig - -EXTRA_OECONF += "--disable-cairo-tests \ - --enable-omap-experimental-api \ - --enable-install-test-programs \ - --disable-manpages \ - " -ALLOW_EMPTY_${PN}-drivers = "1" -PACKAGES =+ "${PN}-tests ${PN}-drivers ${PN}-radeon ${PN}-nouveau ${PN}-omap \ - ${PN}-intel ${PN}-exynos ${PN}-kms ${PN}-freedreno" - -RRECOMMENDS_${PN}-drivers = "${PN}-radeon ${PN}-nouveau ${PN}-omap ${PN}-intel \ - ${PN}-exynos ${PN}-freedreno" - -FILES_${PN}-tests = "${bindir}/dr* ${bindir}/mode* ${bindir}/*test" -FILES_${PN}-radeon = "${libdir}/libdrm_radeon.so.*" -FILES_${PN}-nouveau = "${libdir}/libdrm_nouveau.so.*" -FILES_${PN}-omap = "${libdir}/libdrm_omap.so.*" -FILES_${PN}-intel = "${libdir}/libdrm_intel.so.*" -FILES_${PN}-exynos = "${libdir}/libdrm_exynos.so.*" -FILES_${PN}-kms = "${libdir}/libkms*.so.*" -FILES_${PN}-freedreno = "${libdir}/libdrm_freedreno.so.*"
meta/recipes-graphics/drm/libdrm_2.4.59.bb +38 -3
44 lines not on this page · raw message
meta/recipes-graphics/drm/libdrm_git.bb deleted +0 -12
@@ -1,12 +0,0 @@ -require libdrm.inc - -SRC_URI = "git://anongit.freedesktop.org/git/mesa/drm" - -S = "${WORKDIR}/git" - -DEFAULT_PREFERENCE = "-1" - -SRCREV = "e01d68f9f3acfc35fe164283904b5d058c2ab378" -PV = "2.4.40+git${SRCPV}" -PR = "${INC_PR}.0" -
Signature · 1 line
2.1.4
Quoted 5 lines · Ross Burton
The git recipe hasn't been touched since 2012 and is out of date, so simplify the recipe by removing the git form and merging the remaining bb and inc file.
There might be recipes in other layers which might be using .inc file, drm is sometimes specific to some SOCs. layer index shows that atleast meta-ti assumes .inc to be available and there might be more unlisted or closed layers which do so.
Quoted 132 lines
Signed-off-by Ross Burton <[email protected]>---
meta/recipes-graphics/drm/libdrm.inc | 41 ------------------------------ meta/recipes-graphics/drm/libdrm_2.4.59.bb | 41 +++++++++++++++++++++++++++--- meta/recipes-graphics/drm/libdrm_git.bb | 12 --------- 3 files changed, 38 insertions(+), 56 deletions(-)delete mode 100644 meta/recipes-graphics/drm/libdrm.inc delete mode 100644 meta/recipes-graphics/drm/libdrm_git.bb
meta/recipes-graphics/drm/libdrm.inc deleted +0
-41@@ -1,41 +0,0 @@ -SUMMARY = "Userspace interface to the kernel DRM services" -DESCRIPTION = "The runtime library for accessing the kernel DRM services. DRM \ -stands for \"Direct Rendering Manager\", which is the kernel portion of the \ -\"Direct Rendering Infrastructure\" (DRI). DRI is required for many hardware \ -accelerated OpenGL drivers." -HOMEPAGE = "http://dri.freedesktop.org" -SECTION = "x11/base" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://xf86drm.c;beginline=9;endline=32;md5=c8a3b961af7667c530816761e949dc71" -SRC_URI = "http://dri.freedesktop.org/libdrm/libdrm-${PV}.tar.bz2" -PROVIDES = "drm" -DEPENDS = "libpthread-stubs udev" - -# be aware that libdrm_2.4.44.bb ignores this -INC_PR = "r4" - -#libpciaccess is required starting from libdrm 2.4.26 -DEPENDS += " libpciaccess" - -inherit autotools pkgconfig - -EXTRA_OECONF += "--disable-cairo-tests \ - --enable-omap-experimental-api \ - --enable-install-test-programs \ - --disable-manpages \ - " -ALLOW_EMPTY_${PN}-drivers = "1" -PACKAGES =+ "${PN}-tests ${PN}-drivers ${PN}-radeon ${PN}-nouveau ${PN}-omap \ - ${PN}-intel ${PN}-exynos ${PN}-kms ${PN}-freedreno" - -RRECOMMENDS_${PN}-drivers = "${PN}-radeon ${PN}-nouveau ${PN}-omap ${PN}-intel \ - ${PN}-exynos ${PN}-freedreno" - -FILES_${PN}-tests = "${bindir}/dr* ${bindir}/mode* ${bindir}/*test" -FILES_${PN}-radeon = "${libdir}/libdrm_radeon.so.*" -FILES_${PN}-nouveau = "${libdir}/libdrm_nouveau.so.*" -FILES_${PN}-omap = "${libdir}/libdrm_omap.so.*" -FILES_${PN}-intel = "${libdir}/libdrm_intel.so.*" -FILES_${PN}-exynos = "${libdir}/libdrm_exynos.so.*" -FILES_${PN}-kms = "${libdir}/libkms*.so.*" -FILES_${PN}-freedreno = "${libdir}/libdrm_freedreno.so.*"meta/recipes-graphics/drm/libdrm_2.4.59.bb +13
-3@@ -1,6 +1,41 @@ -require libdrm.inc - -SRC_URI += "file://installtests.patch " +SUMMARY = "Userspace interface to the kernel DRM services" +DESCRIPTION = "The runtime library for accessing the kernel DRM services. DRM \ +stands for \"Direct Rendering Manager\", which is the kernel portion of the \ +\"Direct Rendering Infrastructure\" (DRI). DRI is required for many hardware \ +accelerated OpenGL drivers." +HOMEPAGE = "http://dri.freedesktop.org" +SECTION = "x11/base" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://xf86drm.c;beginline=9;endline=32;md5=c8a3b961af7667c530816761e949dc71" +PROVIDES = "drm" +DEPENDS = "libpthread-stubs udev libpciaccess" +SRC_URI = "http://dri.freedesktop.org/libdrm/${BP}.tar.bz2 \ + file://installtests.patch "SRC_URI[md5sum] = "
d32a1d37c2546ee11fc5924abeedb23e"
SRC_URI[sha256sum] = "68d26e1fd85582f4243d66864f9b43ca4ee93662825de32b5506fc8e181ea41b"meta/recipes-graphics/drm/libdrm_2.4.59.bb +25
-0+ +inherit autotools pkgconfig + +EXTRA_OECONF += "--disable-cairo-tests \ + --enable-omap-experimental-api \ + --enable-install-test-programs \ + --disable-manpages \ + " + +ALLOW_EMPTY_${PN}-drivers = "1" +PACKAGES =+ "${PN}-tests ${PN}-drivers ${PN}-radeon ${PN}-nouveau ${PN}-omap \ + ${PN}-intel ${PN}-exynos ${PN}-kms ${PN}-freedreno" + +RRECOMMENDS_${PN}-drivers = "${PN}-radeon ${PN}-nouveau ${PN}-omap ${PN}-intel \ + ${PN}-exynos ${PN}-freedreno" + +FILES_${PN}-tests = "${bindir}/dr* ${bindir}/mode* ${bindir}/*test" +FILES_${PN}-radeon = "${libdir}/libdrm_radeon.so.*" +FILES_${PN}-nouveau = "${libdir}/libdrm_nouveau.so.*" +FILES_${PN}-omap = "${libdir}/libdrm_omap.so.*" +FILES_${PN}-intel = "${libdir}/libdrm_intel.so.*" +FILES_${PN}-exynos = "${libdir}/libdrm_exynos.so.*" +FILES_${PN}-kms = "${libdir}/libkms*.so.*" +FILES_${PN}-freedreno = "${libdir}/libdrm_freedreno.so.*" +meta/recipes-graphics/drm/libdrm_git.bb deleted +0
-13@@ -1,12 +0,0 @@ -require libdrm.inc - -SRC_URI = "git://anongit.freedesktop.org/git/mesa/drm" - -S = "${WORKDIR}/git" - -DEFAULT_PREFERENCE = "-1" - -SRCREV = "e01d68f9f3acfc35fe164283904b5d058c2ab378" -PV = "2.4.40+git${SRCPV}" -PR = "${INC_PR}.0" - --2.1.4
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Hi Khem,
Quoted 6 lines · Khem Raj
There might be recipes in other layers which might be using .inc file, drm is sometimes
specific to some SOCs. layer index shows that atleast meta-ti assumes .inc to be available
and there might be more unlisted or closed layers which do so.
Looking at the meta-ti recipe, it rewrites so much of the include file that practically the only bits it is using are the summary and inherits. If that were my layer I'd copy the pieces from oe-core that it needed and consider it a proper fork (or upstream the drivers and drop the recipe).
<insert standard moan about include files for cross-layer use without a defined "api" for their behaviour and expectations>
Ross