rtems-bin2c: Allow adding a license header
Summary
Purpose
If files generated by rtems-bin2c are committed into a repository, there is no license information. It would be great if the tool would provide some options to add a license.
For an example, the device tree file in the i.MXRT BSP is processed with bin2c and the resulting source file has been added as a C file to avoid the necessity for a working dtc on all platforms to build RTEMS. The C file is missing a license.
Result
There are multiple possible directions for a feature like that:
- Take an extra file that is prepended to the resulting file as a license header.
- Read the license comments from a file (same or different one to the file that is processed) and use that as a header.
- Provide only some RTEMS-relevant default license headers.