All of lore.kernel.org
 help / color / mirror / Atom feed
From: Saul Wold <saul.wold@intel.com>
To: tom.zanussi@intel.com
Cc: yocto@yoctoproject.org, dvhart@linux.intel.com
Subject: Re: [PATCH 2/9] meta-crownbay: new recipe for emgd 1.8 driver binaries
Date: Sat, 20 Aug 2011 10:45:46 -0700	[thread overview]
Message-ID: <4E4FF2CA.4010202@intel.com> (raw)
In-Reply-To: <2b6c0ba64301de0406e94ebf51684e3abe088555.1313853536.git.tom.zanussi@intel.com>

On 08/20/2011 08:26 AM, tom.zanussi@intel.com wrote:
> From: Tom Zanussi<tom.zanussi@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@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")
> +}



  reply	other threads:[~2011-08-20 17:45 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-20 15:26 [PATCH 0/9] meta-intel: EMGD 1.8 and 3.0 kernel upgrade, v3 tom.zanussi
2011-08-20 15:26 ` [PATCH 1/9] meta-crownbay: switch to linux-yocto 3.0 kernel tom.zanussi
2011-08-21  3:26   ` Bruce Ashfield
2011-08-21 15:25     ` Tom Zanussi
2011-08-20 15:26 ` [PATCH 2/9] meta-crownbay: new recipe for emgd 1.8 driver binaries tom.zanussi
2011-08-20 17:45   ` Saul Wold [this message]
2011-08-20 18:11     ` Tom Zanussi
2011-08-20 15:26 ` [PATCH 3/9] meta-crownbay: select emgd 1.8 tom.zanussi
2011-08-20 15:26 ` [PATCH 4/9] meta-crownbay: xorg.conf changes tom.zanussi
2011-08-20 15:26 ` [PATCH 5/9] meta-crownbay: update README tom.zanussi
2011-08-20 15:26 ` [PATCH 6/9] meta-fri2: add EMGD 1.8 capabilities to fri2 tom.zanussi
2011-08-20 15:26 ` [PATCH 7/9] meta-intel: move emgd-driver-bin_1.8 to common tom.zanussi
2011-08-20 15:26 ` [PATCH 8/9] meta-fri2: add common/recipes-graphics to BBFILES tom.zanussi
2011-08-20 15:26 ` [PATCH 9/9] meta-fri2: update README tom.zanussi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E4FF2CA.4010202@intel.com \
    --to=saul.wold@intel.com \
    --cc=dvhart@linux.intel.com \
    --cc=tom.zanussi@intel.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.