[x] I performed a cursory search to see if the bug report is relevant, not redundant, nor in conflict with other tickets.
Describe the bugcf_tbldefs.h in platform_inc directory instead of with source, causing tables to use the non-overridden cf_platform_cfg.h file instead of the one in *_defs at the top level, since the compiler prefers includes relative to the current file over include paths specified on the command line. This is also different than most other apps which define their table structs in fsw/src. Workaround would be to also override cf_tbldefs.h, but the table struct isn't really something that one needs to customize in the first place.
To Reproduce
Steps to reproduce the behavior:
Alter CF_NUM_CHANNELS in platform_cfg by copying to [mission]_defs/, modifying and using generate_config_includefile to override.
Expected behavior
CF config table uses the updated cf_platform_cfg.h instead of the original one.
Code snips
If applicable, add references to the software.
System observed on:
SP0-s
OS: VxWorks 6.9
Additional context
Using snippets from JSC's modified arch_custom.cmake to override platform_cfg:
Yeah, I was also surprised with cf_tbldefs.h living in platform_inc. I'm not sure if we can dig up the original rational or not, but I'm not opposed to just moving it into fsw/src.
Checklist (Please check before submitting)
Describe the bug
cf_tbldefs.h
in platform_inc directory instead of with source, causing tables to use the non-overridden cf_platform_cfg.h file instead of the one in *_defs at the top level, since the compiler prefers includes relative to the current file over include paths specified on the command line. This is also different than most other apps which define their table structs in fsw/src. Workaround would be to also override cf_tbldefs.h, but the table struct isn't really something that one needs to customize in the first place.To Reproduce Steps to reproduce the behavior: Alter CF_NUM_CHANNELS in platform_cfg by copying to [mission]_defs/, modifying and using generate_config_includefile to override.
Expected behavior CF config table uses the updated cf_platform_cfg.h instead of the original one.
Code snips If applicable, add references to the software.
System observed on:
Additional context Using snippets from JSC's modified arch_custom.cmake to override platform_cfg:
Reporter Info John N Pham, Northrop Grumman