You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The include file wrapper script looks for a name-qualified file to use for e.g. cfe_msgids.h and cfe_platform_cfg.h. This means that the file provided in the "defs" directory needs to be named based on the config, for example default_platform_cfg.h or cpu1_platform_cfg.h .. then this file gets wrapped as cfe_platform_cfg.h for C source files to use.
This pattern has some advantages, in that only one copy of a file actually named cfe_platform_cfg.h will exist on the disk, therefore it is clear(er) which one is actually getting picked up.
However, this name difference/mapping isn't well documented and can be confusing or unexpected to some users.
To Reproduce
Create a customized cfe_msgids.h file in the defs dir, and run "make prep"
Observe that the default msgids from CFE were picked up, not the customized version.
Expected behavior
The customized version should be picked up.
System observed on:
Debian
Reporter Info
Joseph Hickey, Vantage Systems, Inc.
The text was updated successfully, but these errors were encountered:
This allows the script to pick up the file if it was named simply
"cfe_msgids.h" or "cfe_platform_cfg.h", rather than insisting it be
named with a platform-specific prefix
Describe the bug
The include file wrapper script looks for a name-qualified file to use for e.g.
cfe_msgids.h
andcfe_platform_cfg.h
. This means that the file provided in the "defs" directory needs to be named based on the config, for exampledefault_platform_cfg.h
orcpu1_platform_cfg.h
.. then this file gets wrapped ascfe_platform_cfg.h
for C source files to use.This pattern has some advantages, in that only one copy of a file actually named
cfe_platform_cfg.h
will exist on the disk, therefore it is clear(er) which one is actually getting picked up.However, this name difference/mapping isn't well documented and can be confusing or unexpected to some users.
To Reproduce
Create a customized
cfe_msgids.h
file in the defs dir, and run "make prep"Observe that the default msgids from CFE were picked up, not the customized version.
Expected behavior
The customized version should be picked up.
System observed on:
Debian
Reporter Info
Joseph Hickey, Vantage Systems, Inc.
The text was updated successfully, but these errors were encountered: