AnsweredAssumed Answered

Why cannot I add proprietary licensing to QorIQ SDK V2.0

Question asked by Doug Bailey on Dec 12, 2017
Latest reply on Dec 20, 2017 by Doug Bailey

I installed the Linux SDK for QorIQ (V2.0-20160527). I built the image for the fsl-image-core for the ls1043ardb with no problems.


I then added my own layer (meta-test) using the "./poky/scripts/yocto-layer create test" command. I added a recipes-test layer with a new images and scripts recipes.


========= =============================
DESCRIPTION = "Test Image for testing licensing"

IMAGE_FEATURES += "splash"


inherit core-image

## Adds extra room to boot partition

PREFERRED_PROVIDER_sshd = "openssh-sftp-server"

IMAGE_INSTALL_append = " iptables"
IMAGE_INSTALL_append = " sysklogd"
IMAGE_INSTALL_append = " cronie"
IMAGE_INSTALL_append = " dhcp-client"
IMAGE_INSTALL_append = " testscript"
IMAGE_INSTALL_remove = " dropbear"


========= ===================================================
SUMMARY = "Test Scripts Recipe"
DESCRIPTION = "General Purpose scripts"
SECTION = "base"

LICENSE = "Proprietary"

LICENSE_FLAGS = "commercial"
## Resident License File checksum
LIC_FILES_CHKSUM = "file://LICENSE;md5=4ac0f741c9004c8752d94995997ba8bb"

PR = "r1"


SRC_URI = "file://LICENSE \
file://std-test \

S = "${WORKDIR}"


inherit update-alternatives

do_install () {
install -d ${D}${bindir}

install -m 0755 ${S}/std-test ${D}${bindir}/std-test

I added the following line in my conf/local.conf

LICENSE_FLAGS_WHITELIST = " commercial_testscript"

Whenever I attempt to run "bitbake test_image", I get


ERROR: Nothing RPROVIDES 'testscript' (but /mnt/fast/dbailey/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-test/recipes-test/images/ RDEPENDS on or otherwise requires it)
ERROR: testscript was skipped: because it has a restricted license not whitelisted in LICENSE_FLAGS_WHITELIST
NOTE: Runtime target 'testscript' is unbuildable, removing...



If I set testscript to be "GPLv2", everything runs fine.


I've looked at the Yocto documentation and everything I've done appears to satisfy what is required for adding Proprietary licenses. I have done similar within the iMX6 SDK with no problems.


Is there an issue with the QorIQ Linux SDK that is hindering the use of Proprietary licensed recipes?


Thanks ,

Doug Bailey