[U-Boot] [PATCH 4/4] bootm: allow people to disable this command

Mike Frysinger vapier at gentoo.org
Fri Jan 22 01:34:20 CET 2010


On Thursday 21 January 2010 16:17:19 Wolfgang Denk wrote:
> Mike Frysinger wrote:
> > --- a/common/cmd_bootm.c
> > +++ b/common/cmd_bootm.c
> > @@ -57,6 +57,10 @@
> >  #include <lzma/LzmaTools.h>
> >  #endif /* CONFIG_LZMA */
> >
> > +ulong load_addr = CONFIG_SYS_LOAD_ADDR;	/* Default Load Address */
> > +
> > +#ifndef CONFIG_SYS_NO_BOOTM
> > +
> >  DECLARE_GLOBAL_DATA_PTR;
> >
> >  extern int gunzip (void *dst, int dstlen, unsigned char *src, unsigned
> > long *lenp); @@ -147,7 +151,6 @@ static boot_os_fn *boot_os[] = {
> >  #endif
> >  };
> >
> > -ulong load_addr = CONFIG_SYS_LOAD_ADDR;	/* Default Load Address */
> >  static bootm_headers_t images;	/* pointers to os/initrd/fdt images */
> >
> >  /* Allow for arch specific config before we boot */
> > @@ -1453,3 +1456,5 @@ static int do_bootm_integrity (int flag, int argc,
> > char *argv[], return 1;
> >  }
> >  #endif
> > +
> > +#endif /* CONFIG_SYS_NO_BOOTM */
> 
> Hm... please let's not invent a new style to configure commands -
> please use CONFIG_CMD_BOOTM instead (enabled by default).

i did it this way because u-boot doesnt have a default list for everyone of 
commands.  the config_cmd_default.h isnt included by all boards.  i can 
(semi-)reuse the new config_defaults.h if you're OK with that.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20100121/59cef11e/attachment.pgp 


More information about the U-Boot mailing list