The linker command file can use preprocessing directives on env. variables, such as
#ifdef SPECIAL_BUILD
#endif
Is there any way to use preprocessing directives in the hex6x ROMS specification as well?
I have a situation where I only want to generate one binary image if SPECIAL_BUILD defined, otherwise I want to generate two.
What I'm envisioning...
ROMS
{
#ifdef SPECIAL_BUILD
ROW1: origin=0x00000000 len=0x4000 romwidth=8
files={ appl.u0 appl.u1 app1.u2 appl.u3 }
#else
ROW2: origin=0x00004000 len=0x4000 romwidth=8
files={ app1.u4 appl.u5 appl.u6 appl.u7 }
#endif
}
Thanks
Suresh