[U-Boot-Users] Patch to allow CFG_NO_FLASH & CFG_LOADS.

Hi.
A little patch to allow the use of CFG_NO_FLASH & CFG_LOADS.
Chris.
--- u-boot-0.3.0/common/cmd_boot.c 2003-04-07 10:39:32.000000000 +0200 +++ u-boot-0.3.1/common/cmd_boot.c 2003-05-20 10:27:48.000000000 +0200 @@ -332,6 +332,7 @@ load_serial (ulong offset) case SREC_DATA3: case SREC_DATA4: store_addr = addr + offset; +#ifndef CFG_NO_FLASH if (addr2info(store_addr)) { int rc;
@@ -340,9 +341,14 @@ load_serial (ulong offset) flash_perror (rc); return (~0); } - } else { + } else + + { +#endif memcpy ((char *)(store_addr), binbuf, binlen); - } +#ifndef CFG_NO_FLASH + } +#endif if ((store_addr) < start_addr) start_addr = store_addr; if ((store_addr + binlen - 1) > end_addr)

Dear Christophe,
in message D96E2AFA0DF3D211B139009027454948034CBD69@helios.gnv.tcc.thomson-csf.com you wrote:
A little patch to allow the use of CFG_NO_FLASH & CFG_LOADS.
Added (with slight modifications).
Best regards,
Wolfgang Denk
participants (2)
-
Christophe.LINDHEIMER@fr.thalesgroup.com
-
Wolfgang Denk