Harinder Singh Dhanoa created a merge request: 
https://gitlab.rtems.org/rtems/tools/rtems-tools/-/merge_requests/58

Project:Branches: hsd1807/rtems-tools:add-license-header-feature to 
rtems/tools/rtems-tools:main
Author:   Harinder Singh Dhanoa




## Summary

<!-- Default settings, if it is a dropdown it will set after submission -->
This merge request adds the feature to include a license header in the 
generated C files using the rtems-bin2c tool. It addresses the issue of 
allowing users to specify a license file or use a default BSD-2-Clause license 
header.


**Changes**

- Added options `-l <file>` and `-B` to the `rtems-bin2c` tool:

  -`l <file>`: Add the specified file as a license header.

  -`B`: Add a default BSD-2-Clause license header. Cannot be combined with -l.

- Implemented the `read_license_file` function to read the contents of a 
specified license file.
- Modified the `process` function to prepend the license header to the 
generated C and header files.
- Updated the usage message and file header comments to reflect the new options.


**Issue Addressed:** #4 `rtems-bin2c: Allow adding a license header`


**Testing**

- Verified that the tool correctly adds a custom license header when using the 
`-l` option.
- Verified that the tool correctly adds the default BSD-2-Clause license header 
when using the `-B` option.
- Ensured that the tool behaves as expected when no license options are 
specified.

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/tools/rtems-tools/-/merge_requests/58
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
bugs@rtems.org
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to