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 structure


thanks in advance!!





thanks&Regards
k.v.raju

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to