The devtool add
command attempts to
determine if the software you are adding is able to be
distributed under a common, open-source license.
If so, the command sets the
LICENSE
value accordingly.
You should double-check the value added by the command against
the documentation or source files for the software you are
building and, if necessary, update that
LICENSE
value.
The devtool add
command also sets the
LIC_FILES_CHKSUM
value to point to all files that appear to be license-related.
Realize that license statements often appear in comments at
the top of source files or within the documentation.
In such cases, the command does not recognize those license
statements.
Consequently, you might need to amend the
LIC_FILES_CHKSUM
variable to point to one
or more of those comments if present.
Setting LIC_FILES_CHKSUM
is particularly
important for third-party software.
The mechanism attempts to ensure correct licensing should you
upgrade the recipe to a newer upstream version in future.
Any change in licensing is detected and you receive an error
prompting you to check the license text again.
If the devtool add
command cannot
determine licensing information, devtool
sets the LICENSE
value to "CLOSED" and
leaves the LIC_FILES_CHKSUM
value unset.
This behavior allows you to continue with development even
though the settings are unlikely to be correct in all cases.
You should check the documentation or source files for the
software you are building to determine the actual license.