mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 07:04:28 +00:00
config_distro_bootcmd: remove booting environment variables from SPL environment
SPL environments don't need commands that they can never use. Avoid errors with CONFIG_IS_ENABLED conversions by skipping them now. Signed-off-by: Troy Kisky <troykiskyboundary@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
d5d0e4d3e2
commit
97c0db6ca5
1 changed files with 23 additions and 0 deletions
|
@ -35,11 +35,15 @@
|
|||
#devtypel "_boot=" \
|
||||
BOOTENV_SHARED_BLKDEV_BODY(devtypel)
|
||||
|
||||
#define BOOTENV_DEV_BLKDEV_NONE(devtypeu, devtypel, instance)
|
||||
|
||||
#define BOOTENV_DEV_BLKDEV(devtypeu, devtypel, instance) \
|
||||
"bootcmd_" #devtypel #instance "=" \
|
||||
"devnum=" #instance "; " \
|
||||
"run " #devtypel "_boot\0"
|
||||
|
||||
#define BOOTENV_DEV_NAME_BLKDEV_NONE(devtypeu, devtypel, instance)
|
||||
|
||||
#define BOOTENV_DEV_NAME_BLKDEV(devtypeu, devtypel, instance) \
|
||||
#devtypel #instance " "
|
||||
|
||||
|
@ -59,6 +63,10 @@
|
|||
#define BOOTENV_SHARED_MMC BOOTENV_SHARED_BLKDEV(mmc)
|
||||
#define BOOTENV_DEV_MMC BOOTENV_DEV_BLKDEV
|
||||
#define BOOTENV_DEV_NAME_MMC BOOTENV_DEV_NAME_BLKDEV
|
||||
#elif defined(CONFIG_SPL_BUILD)
|
||||
#define BOOTENV_SHARED_MMC
|
||||
#define BOOTENV_DEV_MMC BOOTENV_DEV_BLKDEV_NONE
|
||||
#define BOOTENV_DEV_NAME_MMC BOOTENV_DEV_NAME_BLKDEV_NONE
|
||||
#else
|
||||
#define BOOTENV_SHARED_MMC
|
||||
#define BOOTENV_DEV_MMC \
|
||||
|
@ -190,6 +198,10 @@
|
|||
#define BOOTENV_SHARED_SATA BOOTENV_SHARED_BLKDEV(sata)
|
||||
#define BOOTENV_DEV_SATA BOOTENV_DEV_BLKDEV
|
||||
#define BOOTENV_DEV_NAME_SATA BOOTENV_DEV_NAME_BLKDEV
|
||||
#elif defined(CONFIG_SPL_BUILD)
|
||||
#define BOOTENV_SHARED_SATA
|
||||
#define BOOTENV_DEV_SATA BOOTENV_DEV_BLKDEV_NONE
|
||||
#define BOOTENV_DEV_NAME_SATA BOOTENV_DEV_NAME_BLKDEV_NONE
|
||||
#else
|
||||
#define BOOTENV_SHARED_SATA
|
||||
#define BOOTENV_DEV_SATA \
|
||||
|
@ -293,6 +305,11 @@
|
|||
BOOTENV_SHARED_BLKDEV_BODY(usb)
|
||||
#define BOOTENV_DEV_USB BOOTENV_DEV_BLKDEV
|
||||
#define BOOTENV_DEV_NAME_USB BOOTENV_DEV_NAME_BLKDEV
|
||||
#elif defined(CONFIG_SPL_BUILD)
|
||||
#define BOOTENV_RUN_NET_USB_START
|
||||
#define BOOTENV_SHARED_USB
|
||||
#define BOOTENV_DEV_USB BOOTENV_DEV_BLKDEV_NONE
|
||||
#define BOOTENV_DEV_NAME_USB BOOTENV_DEV_NAME_BLKDEV_NONE
|
||||
#else
|
||||
#define BOOTENV_RUN_NET_USB_START
|
||||
#define BOOTENV_SHARED_USB
|
||||
|
@ -395,6 +412,9 @@
|
|||
"\0"
|
||||
#define BOOTENV_DEV_NAME_DHCP(devtypeu, devtypel, instance) \
|
||||
"dhcp "
|
||||
#elif defined(CONFIG_SPL_BUILD)
|
||||
#define BOOTENV_DEV_DHCP BOOTENV_DEV_BLKDEV_NONE
|
||||
#define BOOTENV_DEV_NAME_DHCP BOOTENV_DEV_NAME_BLKDEV_NONE
|
||||
#else
|
||||
#define BOOTENV_DEV_DHCP \
|
||||
BOOT_TARGET_DEVICES_references_DHCP_without_CONFIG_CMD_DHCP
|
||||
|
@ -413,6 +433,9 @@
|
|||
"fi\0"
|
||||
#define BOOTENV_DEV_NAME_PXE(devtypeu, devtypel, instance) \
|
||||
"pxe "
|
||||
#elif defined(CONFIG_SPL_BUILD)
|
||||
#define BOOTENV_DEV_PXE BOOTENV_DEV_BLKDEV_NONE
|
||||
#define BOOTENV_DEV_NAME_PXE BOOTENV_DEV_NAME_BLKDEV_NONE
|
||||
#else
|
||||
#define BOOTENV_DEV_PXE \
|
||||
BOOT_TARGET_DEVICES_references_PXE_without_CONFIG_CMD_DHCP_or_PXE
|
||||
|
|
Loading…
Reference in a new issue