diff options
author | Robert Bragg <robert@linux.intel.com> | 2008-10-29 17:35:45 +0000 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2008-10-30 18:25:06 +0000 |
commit | 5924520f14e1afa35447ebe2d3f7a991c38bd457 (patch) | |
tree | cfa19e8e468c944b9e2d237a9d833e6b4c32cbfc | |
parent | c50e0101937249349de5f90dcf8707245557edf5 (diff) | |
download | poky-5924520f14e1afa35447ebe2d3f7a991c38bd457.tar.gz |
[mesa dri] Adds splitting of dri drivers into seperate packages
This removes the earlier use of the MACHINE_DRI_MODULES variable to configure
which drivers were built
-rw-r--r-- | meta/packages/mesa/mesa-dri_7.2.bb | 14 | ||||
-rw-r--r-- | meta/packages/mesa/mesa-dri_git.bb | 24 |
2 files changed, 30 insertions, 8 deletions
diff --git a/meta/packages/mesa/mesa-dri_7.2.bb b/meta/packages/mesa/mesa-dri_7.2.bb index 77b68c4558..43e4cb5527 100644 --- a/meta/packages/mesa/mesa-dri_7.2.bb +++ b/meta/packages/mesa/mesa-dri_7.2.bb | |||
@@ -5,7 +5,7 @@ LIB_DEPS = "libdrm virtual/libx11 libxext libxxf86vm libxdamage libxfixes expat" | |||
5 | 5 | ||
6 | DEPENDS = "${PROTO_DEPS} ${LIB_DEPS}" | 6 | DEPENDS = "${PROTO_DEPS} ${LIB_DEPS}" |
7 | 7 | ||
8 | PR = "r5" | 8 | PR = "r6" |
9 | 9 | ||
10 | # most of our targets do not have DRI so will use mesa-xlib | 10 | # most of our targets do not have DRI so will use mesa-xlib |
11 | DEFAULT_PREFERENCE = "-1" | 11 | DEFAULT_PREFERENCE = "-1" |
@@ -14,16 +14,24 @@ DEFAULT_PREFERENCE = "-1" | |||
14 | DEFAULT_PREFERENCE_netbook = "1" | 14 | DEFAULT_PREFERENCE_netbook = "1" |
15 | 15 | ||
16 | PACKAGES =+ "${PN}-xprogs" | 16 | PACKAGES =+ "${PN}-xprogs" |
17 | PACKAGES_DYNAMIC = "mesa-dri-driver-*" | ||
17 | 18 | ||
18 | FILES_${PN} += "${libdir}/dri/*.so" | ||
19 | FILES_${PN}-dbg += "${libdir}/dri/.debug/*" | 19 | FILES_${PN}-dbg += "${libdir}/dri/.debug/*" |
20 | FILES_${PN}-xprogs = "${bindir}/glxdemo ${bindir}/glxgears ${bindir}/glxheads ${bindir}/glxinfo" | 20 | FILES_${PN}-xprogs = "${bindir}/glxdemo ${bindir}/glxgears ${bindir}/glxheads ${bindir}/glxinfo" |
21 | 21 | ||
22 | EXTRA_OECONF += "--with-driver=dri --with-dri-drivers=${MACHINE_DRI_MODULES}" | 22 | EXTRA_OECONF += "--with-driver=dri" |
23 | 23 | ||
24 | do_install_append () { | 24 | do_install_append () { |
25 | install -d ${D}/usr/bin | 25 | install -d ${D}/usr/bin |
26 | install -m 0755 ${S}/progs/xdemos/{glxdemo,glxgears,glxheads,glxinfo} ${D}/usr/bin/ | 26 | install -m 0755 ${S}/progs/xdemos/{glxdemo,glxgears,glxheads,glxinfo} ${D}/usr/bin/ |
27 | } | 27 | } |
28 | 28 | ||
29 | python populate_packages_prepend() { | ||
30 | import os.path | ||
31 | |||
32 | dri_drivers_root = os.path.join(bb.data.getVar('libdir', d, 1), "dri") | ||
33 | |||
34 | do_split_packages(d, dri_drivers_root, '^(.*)_dri\.so$', 'mesa-dri-driver-%s', 'Mesa %s DRI driver', extra_depends='') | ||
35 | } | ||
36 | |||
29 | COMPATIBLE_HOST = '(i.86.*-linux)' | 37 | COMPATIBLE_HOST = '(i.86.*-linux)' |
diff --git a/meta/packages/mesa/mesa-dri_git.bb b/meta/packages/mesa/mesa-dri_git.bb index 25eaa5a766..e565ac5367 100644 --- a/meta/packages/mesa/mesa-dri_git.bb +++ b/meta/packages/mesa/mesa-dri_git.bb | |||
@@ -6,22 +6,36 @@ LIB_DEPS = "libdrm virtual/libx11 libxext libxxf86vm libxdamage libxfixes expat" | |||
6 | DEPENDS = "${PROTO_DEPS} ${LIB_DEPS}" | 6 | DEPENDS = "${PROTO_DEPS} ${LIB_DEPS}" |
7 | 7 | ||
8 | PV = "7.3.0+git${SRCREV}" | 8 | PV = "7.3.0+git${SRCREV}" |
9 | PR = "r1" | 9 | PR = "r3" |
10 | 10 | ||
11 | # most of our targets do not have DRI so will use mesa-xlib | 11 | # most of our targets do not have DRI so will use mesa-xlib |
12 | DEFAULT_PREFERENCE = "-1" | 12 | DEFAULT_PREFERENCE = "-1" |
13 | 13 | ||
14 | # Netbooks have has DRI support so use mesa-dri by default | 14 | # Netbooks have DRI support so use mesa-dri by default |
15 | DEFAULT_PREFERENCE_netbook = "1" | 15 | DEFAULT_PREFERENCE_netbook = "1" |
16 | 16 | ||
17 | SRC_URI = "git://anongit.freedesktop.org/git/mesa/mesa;protocol=git" | 17 | SRC_URI = "git://anongit.freedesktop.org/git/mesa/mesa;protocol=git;branch=intel-2008-q3 " |
18 | S = "${WORKDIR}/git" | 18 | S = "${WORKDIR}/git" |
19 | 19 | ||
20 | PACKAGES =+ "${PN}-xprogs" | 20 | PACKAGES =+ "${PN}-xprogs" |
21 | PACKAGES_DYNAMIC = "mesa-dri-driver-*" | ||
21 | 22 | ||
22 | FILES_${PN} += "${libdir}/dri/*.so" | ||
23 | FILES_${PN}-dbg += "${libdir}/dri/.debug/*" | 23 | FILES_${PN}-dbg += "${libdir}/dri/.debug/*" |
24 | FILES_${PN}-xprogs = "${bindir}/glxdemo ${bindir}/glxgears ${bindir}/glxheads ${bindir}/glxinfo" | ||
24 | 25 | ||
25 | EXTRA_OECONF += "--with-driver=dri --with-dri-drivers=${MACHINE_DRI_MODULES}" | 26 | EXTRA_OECONF += "--with-driver=dri" |
27 | |||
28 | do_install_append () { | ||
29 | install -d ${D}/usr/bin | ||
30 | install -m 0755 ${S}/progs/xdemos/{glxdemo,glxgears,glxheads,glxinfo} ${D}/usr/bin/ | ||
31 | } | ||
32 | |||
33 | python populate_packages_prepend() { | ||
34 | import os.path | ||
35 | |||
36 | dri_drivers_root = os.path.join(bb.data.getVar('libdir', d, 1), "dri") | ||
37 | |||
38 | do_split_packages(d, dri_drivers_root, '^(.*)_dri\.so$', 'mesa-dri-driver-%s', 'Mesa %s DRI driver', extra_depends='') | ||
39 | } | ||
26 | 40 | ||
27 | COMPATIBLE_HOST = '(i.86.*-linux)' | 41 | COMPATIBLE_HOST = '(i.86.*-linux)' |