Commit d0bce0d1cb120682ecb29c1089bb818f6de96fbd

Authored by Sjoerd Simons
Committed by Simon Glass
1 parent 9b97b6ba24

config_distro_bootcmd.h: Add shared block definition for the host interface

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 <sjoerd.simons@collabora.co.uk>
Acked-by: Simon Glass <sjg@chromium.org>
Acked-by: Stephen Warren <swarren@nvidia.com>

Showing 1 changed file with 13 additions and 0 deletions Side-by-side Diff

include/config_distro_bootcmd.h
... ... @@ -48,6 +48,18 @@
48 48 #define BOOTENV_DEV_NAME_BLKDEV(devtypeu, devtypel, instance) \
49 49 #devtypel #instance " "
50 50  
  51 +#ifdef CONFIG_SANDBOX
  52 +#define BOOTENV_SHARED_HOST BOOTENV_SHARED_BLKDEV(host)
  53 +#define BOOTENV_DEV_HOST BOOTENV_DEV_BLKDEV
  54 +#define BOOTENV_DEV_NAME_HOST BOOTENV_DEV_NAME_BLKDEV
  55 +#else
  56 +#define BOOTENV_SHARED_HOST
  57 +#define BOOTENV_DEV_HOST \
  58 + BOOT_TARGET_DEVICES_references_HOST_without_CONFIG_SANDBOX
  59 +#define BOOTENV_DEV_NAME_HOST \
  60 + BOOT_TARGET_DEVICES_references_HOST_without_CONFIG_SANDBOX
  61 +#endif
  62 +
51 63 #ifdef CONFIG_CMD_MMC
52 64 #define BOOTENV_SHARED_MMC BOOTENV_SHARED_BLKDEV(mmc)
53 65 #define BOOTENV_DEV_MMC BOOTENV_DEV_BLKDEV
... ... @@ -167,6 +179,7 @@
167 179 #define BOOTENV_DEV(devtypeu, devtypel, instance) \
168 180 BOOTENV_DEV_##devtypeu(devtypeu, devtypel, instance)
169 181 #define BOOTENV \
  182 + BOOTENV_SHARED_HOST \
170 183 BOOTENV_SHARED_MMC \
171 184 BOOTENV_SHARED_USB \
172 185 BOOTENV_SHARED_SATA \