RTEMS Tools | misc/bin2c/rtems-bin2c.c: Add feature to include license header in generated C files (!58)
Gedare Bloom (@gedare)
gitlab at rtems.org
Fri Mar 28 14:30:52 UTC 2025
Gedare Bloom commented on a discussion on misc/bin2c/rtems-bin2c.c: https://gitlab.rtems.org/rtems/tools/rtems-tools/-/merge_requests/58#note_121880
> exit(1);
> }
> }
> +
> + /* Read license header if specified */
> + const char *defaultbsdlicense =
> + "/*\n"
> + " * SPDX-License-Identifier: BSD-2-Clause\n"
> + " *\n"
> + " * Copyright (c) 2025, Harinder Singh Dhanoa\n"
yes, if a suitable way to find the pattern can be determined.
otherwise, it would need some kind of advanced pattern matching / machine learning to infer that some specific comment block in the file is a copyright/license block.
this then becomes a fairly complicated problem to solve.
--
View it on GitLab: https://gitlab.rtems.org/rtems/tools/rtems-tools/-/merge_requests/58#note_121880
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250328/ad92f054/attachment-0001.htm>
More information about the bugs
mailing list