>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 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot