[U-Boot] [U-Boot-Users] some flow about uboot

Hiroshi Ito ito at mlb.co.jp
Wed Jan 27 14:41:49 CET 2010


>in config_cmd_default.h
>#ifndef CONFIG_SYS_NO_FLASH
>#define CONFIG_CMD_FLASH	/* flinfo, erase, protect	*/
>#define CONFIG_CMD_IMLS		/* List all found images	*/
>#else
>
>so in cmd_bootm.c below funciton will not be compiled
>#if defined(CONFIG_CMD_IMLS)

  Please come again after studying C language. 


>if I remember correctly, #ifdef XYZ and #if defined(XYZ) mean the same
>thing, right?

  right.
  and, #ifndef XYZ and #if !defined(XYZ) mean the same thing.

--------
Hiroshi Ito
Media Lab. Inc.,
URL http://www.mlb.co.jp ( Sorry, Japanese only. )
TEL +81-3-5294-7255  FAX +81-3-5294-7256


More information about the U-Boot mailing list