From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 285E3E0048B for ; Sat, 20 Aug 2011 10:45:50 -0700 (PDT) Received: from mail-iy0-f172.google.com ([209.85.210.172]) by mga09.intel.com with ESMTP/TLS/RC4-SHA; 20 Aug 2011 10:45:50 -0700 Received: by iye7 with SMTP id 7so14242726iye.17 for ; Sat, 20 Aug 2011 10:45:49 -0700 (PDT) Received: by 10.231.4.72 with SMTP id 8mr1624921ibq.49.1313862347939; Sat, 20 Aug 2011 10:45:47 -0700 (PDT) Received: from [10.6.18.207] (c-71-193-189-117.hsd1.wa.comcast.net [71.193.189.117]) by mx.google.com with ESMTPS id m21sm2291077ibf.8.2011.08.20.10.45.46 (version=SSLv3 cipher=OTHER); Sat, 20 Aug 2011 10:45:47 -0700 (PDT) Message-ID: <4E4FF2CA.4010202@intel.com> Date: Sat, 20 Aug 2011 10:45:46 -0700 From: Saul Wold Organization: Intel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110707 Thunderbird/5.0 MIME-Version: 1.0 To: tom.zanussi@intel.com References: <2b6c0ba64301de0406e94ebf51684e3abe088555.1313853536.git.tom.zanussi@intel.com> In-Reply-To: <2b6c0ba64301de0406e94ebf51684e3abe088555.1313853536.git.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 X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Aug 2011 17:45:50 -0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 08/20/2011 08:26 AM, tom.zanussi@intel.com wrote: > From: Tom Zanussi > > 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 > --- > .../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") > +}