2008-08-05 07:02:34     Confusion with u-boot cmd define

Document created by Aaronwu Employee on Sep 18, 2013
Version 1Show Document
  • View in full screen mode

2008-08-05 07:02:34     Confusion with u-boot cmd define

spring h (CHINA)

Message: 59936   

 

 

Dear all:

 

#define U_BOOT_CMD(name,maxargs,rep,cmd,usage,help) \

cmd_tbl_t __u_boot_cmd_##name Struct_Section = {#name, maxargs, rep, cmd, usage, help}

 

qustion:

 

      what does __u_boot_cmd mean , I can not find it' s define. and what about the single '#' before name?

 

Thanks,

 

Best regards!

 

 

 

 

TranslateQuoteReplyEditDelete

 

 

2008-08-05 11:25:08     Re: Confusion with u-boot cmd define

Mike Frysinger (UNITED STATES)

Message: 59947   

 

U_BOOT_CMD() is used to declare u-boot commands.  how exactly it is implemented in the back end doesnt really matter.  are you having a problem with something ?  if you're just curious, review the u-boot documentation: doc/README.commands

 

using # in C macros is used to turn parameters into strings.  please review the gcc manual if you want to know more about that.

Attachments

    Outcomes