[U-Boot] [PATCH 11/13] sunxi: Add support for android boot image

Ian Campbell
2015-09-01T13:54:09Z

On Tue, 2015-09-01 at 13:29 +0200, Maxime Ripard wrote:
> On Tue, Sep 01, 2015 at 11:46:05AM +0100, Ian Campbell wrote:
> > On Tue, 2015-09-01 at 11:00 +0200, Paul Kocialkowski wrote:
> > > Le mardi 01 septembre 2015 ? 08:08 +0100, Ian Campbell a ?crit :
> > > > On Mon, 2015-08-31 at 16:46 +0200, Maxime Ripard wrote:
> > > > > When using the fastboot boot command, the image sent to U-Boot
> > > > > will
> > > > > be an
> > > > > Android boot image. If the support is missing, that won't
> > > > > obviously
> > > > > work,
> > > > > so we need it in our configuration.
> > > >
> > > > Dumb question: Is it possible to boot anything _other_ than an
> > > > android
> > > > boot image via fastboot?
> > > >
> > > > If not then one of the two config options really ought to imply the
> > > > other.
> > >
> > > Well, those options have not been moved to Kconfig yet, but when they
> > > do, there should indeed be such a dependency.
> > >
> > > Otherwise, I believe it still makes sense to have two separate
> > > options
> > > because one might want Android boot image support without fastboot.
> >
> > Then fastboot should depend on android boot image support but not vice
> > -versa.
>
> Indeed, but it's not yet a Kconfig option.

I'm not sure that's a necessary prerequisite, in some common place do:

#if defined(CONFIG_CMD_FASTBOOT) && !defined(CONFIG_ANDROID_BOOT_IMAGE)
#define CONFIG_ANDROID_BOOT_IMAGE
#endif

Ian.