-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scancode.bbclass: [Request for review]: OI-2 Adding bbclass for scancode #1031
Conversation
for scancode This is adding the functionality to run scancode utility on code. You need to set the following variables to use it. You can override these from local.conf or auto.conf. 1) SCANCODE_GIT_LOCATION: Git Path for scancode-toolkit cloning, default is set. 2) SCANCODE_TAG: Select tag, if you want. 3) SCANCODE_FORMAT: Output file format json or html-app. 4) SCANCODE_SRC_LOCATION: Location to store scancode-toolkit. This belongs to OI-2. Signed-off-by: H M Irfan Sadiq <[email protected]> Signed-off-by: Noor Ahsan <[email protected]>
addtask scancode after do_patch | ||
|
||
do_scancode_oss() { | ||
echo "We are done running scancode" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't BBNOTE is better than echo and also print the package name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do not fetch sources from remote locations at anything other than do_fetch-time. Either let it be fetched by each recipe inheriting this by adding to SRC_URI, or better, create a scancode recipe and add the native version of it to DEPENDS in the bbclass.
Also, similar tools are not installed natively like fossology/spdx http://www.pelagicore.com/using-yocto-and-fossology-to-get-spdx-licence-output/ Do you have any suggestions how should we proceed with it ?
|
I'd suggest adding it to HOSTTOOLS and rely on the user having it installed on the host. Keeping the download portion is not going to work, so either we need a functioning native recipe, or rely on it as a host tool. |
HOSTTOOLS variable is not available in dogwood hence replacing this PR with #1057 |
This is adding the functionality to run scancode utility on code.
You need to set the following variables to use it. You can override
these from local.conf or auto.conf.
This belongs to OI-2.
Signed-off-by: H M Irfan Sadiq [email protected]
Signed-off-by: Noor Ahsan [email protected]