Trying to duplicate config file with checksum mechanism

Hi,

As the title says, I am trying to duplicate the mechanism to read parameters form the config file of the SmoothieBoard.
The reason for that is I need two configuration files for the smoothie-project that I am working on.

I just have on problem, I can’t find where _binary_config_default_start and _binary_config_default_end from FirmConfigSource.cpp are defined.

Here is the code in question :

// we use objdump in the Makefile to import your config.default file into the compiled code
// Since the two symbols below are derived from the filename, we need to change them if the filename changes
extern char _binary_config_default_start;
extern char _binary_config_default_end;

It says that they use objdump in a Makefile but I checked all of the Makefiles and can’t find it!

Thanks in advance,

Nicolas Gagnon

Imported from wikidot

Why do you need two files for one project?
Do you need them at the same time or do you need to switch between them?

Can you tell us more about what your module does and what you need the config options for ??

You most probably shouldn’t have to dig into the config system, you should just be using it in your module.