[OE-core] inconsistency with adding LICENSE lines to images

Paul Eggleton paul.eggleton at linux.intel.com
Tue Mar 3 11:25:43 UTC 2015


On Friday 27 February 2015 15:58:32 Robert P. J. Day wrote:
>   just noticed the following ... in OE image definition files under
> recipes-core:
> 
> core-image-base.bb
> core-image-minimal.bb
> core-image-minimal-dev.bb
> core-image-minimal-initramfs.bb
> core-image-minimal-mtdutils.bb
> 
> it *seems* to make sense that image definitions that require or
> include other core image bb files don't need to add the line:
> 
> LICENSE = "MIT"
> 
> as they pick it up from the include'd or require'd file, but image
> recipe files that
> 
> inherit core-image
> 
> *do* need to define their own license.
> 
>   but if one then goes under recipes-extended/images, it looks a bit
> strange as, for example, here's core-image-full-cmdline.bb:
> 
> DESCRIPTION = "A console-only image with more full-featured Linux system \
> functionality installed."
> 
> IMAGE_FEATURES += "splash ssh-server-openssh"
> 
> IMAGE_INSTALL = "\
>     packagegroup-core-boot \
>     packagegroup-core-full-cmdline \
>     ${CORE_IMAGE_EXTRA_INSTALL} \
>     "
> 
> inherit core-image
> 
>   so ... what's the licensing there? this image inherits directly from
> core-image, but doesn't define a license? am i misunderstanding the
> need for a license?

There shouldn't be a need to set this for image recipes whether they inherit 
image or core-image, since recipes don't generally distribute any files other 
than those that come from packages that they include (which have their own 
licenses) - it wouldn't be practical to list all of the licenses for all of 
the components of the image, that is what we produce the license manifest for. 

On the other hand, if you re-enable do_fetch and add files to SRC_URI within 
the image recipe (which should generally be avoided but is done in rare cases 
- build-appliance-image is one example) then you probably ought to be 
concerned with the LICENSE value. Having said that I don't know if the license 
manifest logic actually looks at the LICENSE value for the image at all, I 
suspect it does not.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



More information about the Openembedded-core mailing list