[U-Boot-Users] Adding new commands

Ulf Samuelsson
2006-10-16T20:24:07Z

Wolfgang Denk wrote:
> In message <453368A1.5050407@dave-tech.it> you wrote:
>>
>> I have to add two new commands so I have to add something like this
>> to cmd_confdefs.h:
>>
>> #define CFG_CMD_NEW1 0x8000000000000000ULL
>> #define CFG_CMD_NEW2 ???
>>
>> IIUC we have 64 bits available for the commands and 63 commands are
>> already defined. So how to define more than 64 commands?
>
> We have to rework this whole configuration setup. At the moment I
> don't have a good and quick solution available.
>

You can always define a command outside the CFG_CMD in your board header
file.

Then you can do an #ifdef in the source file.

Best Regards,
Ulf Samuelsson