All of lore.kernel.org
 help / color / mirror / Atom feed
* Using A Proprietary Closed License Inside A Layer & Its Recipes
@ 2017-06-15 14:52 Thomas A. F. Thorne MEng AUS MIET
  2017-06-15 19:33 ` Burton, Ross
  0 siblings, 1 reply; 8+ messages in thread
From: Thomas A. F. Thorne MEng AUS MIET @ 2017-06-15 14:52 UTC (permalink / raw)
  To: yocto


[-- Attachment #1.1: Type: text/plain, Size: 2154 bytes --]

Good afternoon,

I am putting together a meta-company-name layer to hold some internal
code.  This will contain a few BSPs for our units, some internally
developed applications and a few config file patches.  I am having
trouble getting recipes to be related to the proprietary license.  

I have added "LICENSE" file to the root of the layer.  I have also added
a "licenses" directory that contains a single "companyname" file that
has our standard copyright boiler plate in it.  In the layer.conf file I
have added
LICENSE_PATH += "${LAYERDIR}/licenses"

When inside a recipe.bb file set:
LICENSE = "companyname"
LIC_FILES_CHKSUM = "file://companyname;md5=260e42b87d2e3235853331775b597ad3"

I get set of errors from bitbake:
NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: recipe-0.1-r0 do_configure: QA Issue: recipe: LIC_FILES_CHKSUM
points to an invalid file:
/home/thomasthorne/work/yocto/build-lib/tmp/work/all-poky-linux/recipe/0.1-r0/companyname
[license-checksum]
ERROR: recipe-0.1-r0 do_configure: Fatal QA errors found, failing task.
ERROR: recipe-0.1-r0 do_configure: Function failed: do_qa_configure
ERROR: Logfile of failure stored in:
/home/thomasthorne/work/yocto/build/tmp/work/all-poky-linux/recipe/0.1-r0/temp/log.do_configure.13583
ERROR: Task 487
(/home/thomasthorne/work/yocto/meta-companyname/recipes-companyname/recipe/recipe_0.1.bb,
do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1557 tasks of which 1556 didn't need to
be rerun and 1 failed.

Should I be including a copy of the license in each recipe separately
instead and then using LIC_FILES_CHKSUM =
"file://companyname;md5=260e42b87d2e3235853331775b597ad3" (or pointing
at a header with the beginline=5; endline=10 syntax)? 

Is it only possible to use the special
LICENSE = "CLOSED"
license for licenses not already placed in the main license directory? 

Any help or pointers would be very gratefully received.  I have been
having a confusing couple of hours with this so far. 

Regards,

-- 
Thomas Thorne  Software Engineer  Net2Edge Limited



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 484 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: Using A Proprietary Closed License Inside A Layer & Its Recipes
@ 2017-06-16  8:59 gmane
  0 siblings, 0 replies; 8+ messages in thread
From: gmane @ 2017-06-16  8:59 UTC (permalink / raw)
  To: yocto

Hi,

On 2017-06-15 17:52, Thomas A. F. Thorne MEng AUS MIET wrote:
> Good afternoon,
> 
> I am putting together a meta-company-name layer to hold some internal
> code.  This will contain a few BSPs for our units, some internally
> developed applications and a few config file patches.  I am having
> trouble getting recipes to be related to the proprietary license.
> 

I am doing something very similar which seems to work:

1) I create a custom-licenses dir in my layer which contains custom 
licenses

2) add custom license path to layer.conf:
LICENSE_PATH += " ${LAYERDIR}/custom-licenses"

3) In the recipe I do this:
LICENSE = "hello-license"
LIC_FILES_CHKSUM = 
"file://${THISDIR}/../../custom-licenses/hello-license;beginline=5;endline=12;md5=36e6988a930e054886e6af19372edb07"

But I don't think that the beginline,endline makes a difference.

Can you try pointing at ${THISIR}/../../<where ever your custom-licenses 
dir is> and see if this makes any difference?

> ERROR: recipe-0.1-r0 do_configure: QA Issue: recipe: LIC_FILES_CHKSUM
> points to an invalid file:
> /home/thomasthorne/work/yocto/build-lib/tmp/work/all-poky-linux/recipe/0.1-r0/companyname
> [license-checksum]

Regards,

Robert


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-06-19 16:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-15 14:52 Using A Proprietary Closed License Inside A Layer & Its Recipes Thomas A. F. Thorne MEng AUS MIET
2017-06-15 19:33 ` Burton, Ross
2017-06-16  9:12   ` Thomas Thorne
2017-06-16 13:14     ` Joshua Watt
2017-06-16 18:00       ` Khem Raj
2017-06-16 18:11         ` Joshua Watt
2017-06-19 16:33           ` Thomas Thorne
  -- strict thread matches above, loose matches on Subject: below --
2017-06-16  8:59 gmane

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.