+Stephen who knows more about this stuff On 19 February 2015 at 15:41, Sjoerd Simons <[email protected]> wrote: > Define the common shared block environment for the host interface in > preperation for the sandbox build to use config_distro_bootcmd. > > Signed-off-by: Sjoerd Simons <[email protected]> > --- > include/config_distro_bootcmd.h | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h > index 07a0b3b..ff0e3a8 100644 > --- a/include/config_distro_bootcmd.h > +++ b/include/config_distro_bootcmd.h > @@ -32,6 +32,18 @@ > #define BOOTENV_DEV_NAME_BLKDEV(devtypeu, devtypel, instance) \ > #devtypel #instance " " > > +#ifdef CONFIG_SANDBOX > +#define BOOTENV_SHARED_HOST BOOTENV_SHARED_BLKDEV(host) > +#define BOOTENV_DEV_HOST BOOTENV_DEV_BLKDEV > +#define BOOTENV_DEV_NAME_HOST BOOTENV_DEV_NAME_BLKDEV > +#else > +#define BOOTENV_SHARED_HOST > +#define BOOTENV_DEV_HOST \ > + BOOT_TARGET_DEVICES_references_HOST_without_CONFIG_SANDBOX > +#define BOOTENV_DEV_NAME_HOST \
Can we use upper case in #defines? > + BOOT_TARGET_DEVICES_references_HOST_without_CONFIG_SANDBOX > +#endif > + > #ifdef CONFIG_CMD_MMC > #define BOOTENV_SHARED_MMC BOOTENV_SHARED_BLKDEV(mmc) > #define BOOTENV_DEV_MMC BOOTENV_DEV_BLKDEV > @@ -151,6 +163,7 @@ > #define BOOTENV_DEV(devtypeu, devtypel, instance) \ > BOOTENV_DEV_##devtypeu(devtypeu, devtypel, instance) > #define BOOTENV \ > + BOOTENV_SHARED_HOST \ > BOOTENV_SHARED_MMC \ > BOOTENV_SHARED_USB \ > BOOTENV_SHARED_SATA \ > -- > 2.1.4 > Regards, Simon _______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

