Hi all,i want to implement my own u-boot commands,so i gone through the u-boot source code i got this interface to build the u-boot commands.U_BOOT_CMD(mtest, 5, 1, do_mem_mtest,"simple RAM read/write test","[start [end [pattern [iterations]]]]");please can anybody explain me below chunk of code
#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}#define Struct_Section __attribute__ ((unused,section (".u_boot_cmd")))--here cmd_tbl_t is a structurethanks in advance!!thanks&Regards
k.v.raju
You received this message because you are subscribed to the Google Groups "rowboat" group.
To post to this group, send email to row...@googlegroups.com.
To unsubscribe from this group, send email to rowboat+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rowboat?hl=en.
#define Struct_Section __attribute__ ((unused,section (".u_boot_cmd")))
then this should be something like this right!cmd_tbl_t __u_boot_cmd_mtest __attribute__ ((unused,section (".u_boot_cmd"))) = {"mtest", 5, 1, do_mem_mtest, "simple RAM read/write test", "[start [end [pattern [iterations]]]]"}i am sorry i am poor in this concepts , please can you tell me what actually is going on...
--
thanks&Regards
k.v.raju