diff options
| author | Daniel Palmer <[email protected]> | 2024-09-29 18:27:39 +0900 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-10-07 21:31:22 -0600 |
| commit | 080bb8480a4e915b1ef52418a9b7a227c75a22ee (patch) | |
| tree | 612ab3a7015d9f74c849f12dd6a9b69e901fc790 /cmd/elf.c | |
| parent | c623bce70c905739aff8f85fac4c61eacb3b8e99 (diff) | |
cmd: Make bootvx independent of bootelf
There are lots of usecases for running baremetal ELF
binaries via bootelf but if you enable bootelf you
get bootvx as well and you probably don't want or need
it.
Hide bootvx behind it's own configuration option.
Signed-off-by: Daniel Palmer <[email protected]>
Diffstat (limited to 'cmd/elf.c')
| -rw-r--r-- | cmd/elf.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/elf.c b/cmd/elf.c index f07e344a596..114f2caf7fa 100644 --- a/cmd/elf.c +++ b/cmd/elf.c @@ -10,8 +10,10 @@ #include <env.h> #include <image.h> #include <log.h> +#ifdef CONFIG_CMD_ELF_BOOTVX #include <net.h> #include <vxworks.h> +#endif #ifdef CONFIG_X86 #include <vesa.h> #include <asm/cache.h> @@ -100,6 +102,7 @@ int do_bootelf(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) return rcode; } +#ifdef CONFIG_CMD_ELF_BOOTVX /* * Interpreter command to boot VxWorks from a memory image. The image can * be either an ELF image or a raw binary. Will attempt to setup the @@ -307,6 +310,7 @@ int do_bootvx(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) return 1; } +#endif U_BOOT_CMD( bootelf, CONFIG_SYS_MAXARGS, 0, do_bootelf, @@ -323,8 +327,10 @@ U_BOOT_CMD( #endif ); +#ifdef CONFIG_CMD_ELF_BOOTVX U_BOOT_CMD( bootvx, 2, 0, do_bootvx, "Boot vxWorks from an ELF image", " [address] - load address of vxWorks ELF image." ); +#endif |
