RTEMS Tools | feat: Rewrite rtems-bin2c.c in python (!74)

Prashant Rahul (@prashantrahul141) gitlab at rtems.org
Wed Nov 19 18:31:01 UTC 2025




Prashant Rahul commented on a discussion: https://gitlab.rtems.org/rtems/tools/rtems-tools/-/merge_requests/74#note_136122


Yes, it does create both C and H files with single command invocation when neither `-C` nor `-H` is provided. Since default values are `true`, see here: https://gitlab.rtems.org/rtems/tools/rtems-tools/-/blob/main/misc/bin2c/rtems-bin2c.c?ref_type=heads#L35

And when either one of the flag is given, it creates only that specific file.

Issue arrives when both flags are given, in the original script it simply boils down to which flag comes later due to the logic that handles argument parsing, see here: https://gitlab.rtems.org/rtems/tools/rtems-tools/-/blob/main/misc/bin2c/rtems-bin2c.c?ref_type=heads#L396

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/tools/rtems-tools/-/merge_requests/74#note_136122
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/20251119/9dab3bc3/attachment-0001.htm>


More information about the bugs mailing list