Search code examples
yoctobitbake

How to handle the LICENSE field when there is no license file?


What if there is no license file as e.g. in this repo: https://github.com/jwrdegoede/rtl8189ES_linux. The license is given in each file header instead. How do I account for that appropriately in a bitbake recipe?

Thanks


Solution

  • LIC_FILES_CHKSUM can point to any file that defines the license. If there isn't a dedicated license file then you can point it at a fragment of a README or main.c or similar. For example from ppp.bb:

    LIC_FILES_CHKSUM = "file://pppd/ccp.c;beginline=1;endline=29;md5=e2c4[...]"