[oe] libdrm_2.4.17 fails to build on arm

Dallas Foley dfoley at techsol.ca
Thu Jan 21 18:49:43 UTC 2010


Older version 2.4.11 builds Ok on arm, but not 2.4.17
I modified it to build on armv7a. However, I'm not sure if it's the correct way.


diff --git a/recipes/dri/libdrm_2.4.17.bb b/recipes/dri/libdrm_2.4.17.bb
index 4f2af1e..fd1ab3a 100644
--- a/recipes/dri/libdrm_2.4.17.bb
+++ b/recipes/dri/libdrm_2.4.17.bb
@@ -3,14 +3,16 @@ DEPENDS = "libpthread-stubs"
 LICENSE = "MIT"
 SRC_URI = "http://dri.freedesktop.org/libdrm/libdrm-${PV}.tar.bz2"
 PROVIDES = "drm"
-PR = "r1"
+PR = "r2"
 
 inherit autotools pkgconfig
 
+EXTRA_OECONF_append = " ${@base_contains('MACHINE_FEATURES', 'x86', '', '--disable-intel',d)}"
+
 do_stage() {
 	autotools_stage_all
 }
 
-PACKAGES =+ "${PN}-intel"
+PACKAGES =+ "${@base_contains('MACHINE_FEATURES', 'x86', '${PN}-intel', '',d)}"
 
 FILES_${PN}-intel = "${libdir}/libdrm_intel.so.*"





More information about the Openembedded-devel mailing list