[yocto] [PATCH 2/9] meta-crownbay: new recipe for emgd 1.8 driver binaries

Saul Wold saul.wold at intel.com
Sat Aug 20 10:45:46 PDT 2011


On 08/20/2011 08:26 AM, tom.zanussi at intel.com wrote:
> From: Tom Zanussi<tom.zanussi at intel.com>
>
> This adds a new recipe for the emgd 1.8 driver binaries.
>
> The emgd-driver-bin recipe now automatically downloads and installs
> EMGD using the new click-through-free tarball, but since the binaries
> still fall under a non-free license, we need to prevent it from being
> accidentally installed in an image.
>
> We therefore make sure it's labeled with 'EMGD_LICENSE'.  In order to
> build an image that contains EMGD, the user now needs to add a
> 'EMGD_LICENSE = "yes"' line to local.conf.
>
> Signed-off-by: Tom Zanussi<tom.zanussi at intel.com>
> ---
>   .../xorg-xserver/emgd-driver-bin_1.8.bb            |   46 ++++++++++++++++++++
>   1 files changed, 46 insertions(+), 0 deletions(-)
>   create mode 100644 meta-crownbay/recipes-graphics/xorg-xserver/emgd-driver-bin_1.8.bb
>
> diff --git a/meta-crownbay/recipes-graphics/xorg-xserver/emgd-driver-bin_1.8.bb b/meta-crownbay/recipes-graphics/xorg-xserver/emgd-driver-bin_1.8.bb
> new file mode 100644
> index 0000000..be19e5e
> --- /dev/null
> +++ b/meta-crownbay/recipes-graphics/xorg-xserver/emgd-driver-bin_1.8.bb
> @@ -0,0 +1,46 @@
> +SUMMARY = "EMGD 1.8 xserver binaries"
> +DESCRIPTION = "EMGD 1.8 includes some userspace binaries that use non-free \
> +licensing, which are now available via a non-click-through downloadable \
> +tarball, and is what this recipe now uses.  Since it is a non-free license, \
> +this recipe is marked as 'commercial' and you need to add COMMERCIAL_LICENSE \
> += \"\" in order to enable it in a build."

This DESCRIPTION does not match the implementation, I want to talk with 
Richard about adding another way to exclude commercially licensed 
recipes.  We can talk on Monday about this further.

Thanks
	Sau!


> +LICENSE = "Intel-binary-only"
> +PR = "r0"
> +
> +EMGD_LICDIR = "IEMGD_HEAD_Linux/License"
> +EMGD_RPMDIR = "IEMGD_HEAD_Linux/MeeGo1.2"
> +
> +LIC_FILES_CHKSUM = "file://${WORKDIR}/${EMGD_LICDIR}/License.txt;md5=b54f01caaf8483b3cb60c0c40f2bf22d"
> +
> +SRC_URI = "http://edc.intel.com/App_Shared/Downloads/Lin_EMGD_1_8_RC_2032.tgz"
> +
> +FILES_${PN} += "${libdir}/dri ${libdir}/xorg/modules/drivers"
> +FILES_${PN}-dbg += "${libdir}/xorg/modules/drivers/.debug ${libdir}/dri/.debug"
> +
> +S = "${WORKDIR}/${EMGD_RPMDIR}"
> +
> +do_install () {
> +    rpm2cpio.sh ${S}/emgd-bin*.rpm | cpio -id
> +
> +    install -d -m 0755                    ${D}/${libdir}/dri
> +    install -d -m 0755                    ${D}/${libdir}/xorg/modules/drivers
> +    install -m 0755 ${S}/usr/lib/*.so.*   ${D}${libdir}/
> +    install -m 0755 ${S}/usr/lib/dri/*    ${D}${libdir}/dri/
> +    install -m 0755 ${S}/usr/lib/xorg/modules/drivers/* ${D}${libdir}/xorg/modules/drivers/
> +
> +    ln -sf libEGl.so.1                    ${D}${libdir}/libEGl.so
> +    ln -sf libGLES_CM.so.1                ${D}${libdir}/libGLES_CM.so
> +    ln -sf libGLESv2.so.2                 ${D}${libdir}/libGLESv2.so
> +}
> +
> +LEAD_SONAME = "libEGL.so"
> +
> +addtask check_emgd_license before do_fetch
> +
> +python do_check_emgd_license() {
> +    pn = bb.data.getVar('PN', d, 1)
> +    emgd_license = bb.data.getVar('EMGD_LICENSE', d, 1)
> +    if not emgd_license or not emgd_license.lower() == "yes":
> +        bb.debug(1, "Skipping %s because it has a non-free license" % pn)
> +        raise bb.parse.SkipPackage("because it requires EMGD_LICENSE = \"yes\" in local.conf to ship")
> +}




More information about the yocto mailing list