diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-05-10 14:51:55 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-05-10 14:51:58 +0200 |
commit | 7839011f61c02b42b44e540dfb18464f4bb79fba (patch) | |
tree | e80f59c4ca1d7a7ee9b9a24941212ef4375bcbd1 /commands/bootm.c | |
parent | ece204a8acea2ae5f4343fef28e9e987a133e9ea (diff) | |
download | barebox-7839011f61c02b42b44e540dfb18464f4bb79fba.tar.gz barebox-7839011f61c02b42b44e540dfb18464f4bb79fba.tar.xz |
bootm: Move bootm options to common/Kconfig
bootm has a C API, so the bootm options have to depend on the
option providing the bootm code (CONFIG_BOOTM), not on the
option providing the command (CONFIG_CMD_BOOTM). Fixing the
dependencies makes it possible to fully use bootm from C without
enabling the bootm command support.
This also removes the CMD_ prefix from the options which means
we have to update the defconfigs aswell.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/bootm.c')
-rw-r--r-- | commands/bootm.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/commands/bootm.c b/commands/bootm.c index bfec62c98b..a46faae3b4 100644 --- a/commands/bootm.c +++ b/commands/bootm.c @@ -48,7 +48,7 @@ #define BOOTM_OPTS_COMMON "sca:e:vo:fd" -#ifdef CONFIG_CMD_BOOTM_INITRD +#ifdef CONFIG_BOOTM_INITRD #define BOOTM_OPTS BOOTM_OPTS_COMMON "L:r:" #else #define BOOTM_OPTS BOOTM_OPTS_COMMON @@ -71,7 +71,7 @@ static int do_bootm(int argc, char *argv[]) case 's': data.verify = BOOTM_VERIFY_SIGNATURE; break; -#ifdef CONFIG_CMD_BOOTM_INITRD +#ifdef CONFIG_BOOTM_INITRD case 'L': data.initrd_address = simple_strtoul(optarg, NULL, 0); break; @@ -126,7 +126,7 @@ BAREBOX_CMD_HELP_OPT ("-c\t", "hash check image integrity") BAREBOX_CMD_HELP_OPT ("-s\t", "check signature of image") BAREBOX_CMD_HELP_OPT ("-d\t", "dry run: check data, but do not run") BAREBOX_CMD_HELP_OPT ("-f\t", "load images even if type is undetectable") -#ifdef CONFIG_CMD_BOOTM_INITRD +#ifdef CONFIG_BOOTM_INITRD BAREBOX_CMD_HELP_OPT ("-r INITRD","specify an initrd image") BAREBOX_CMD_HELP_OPT ("-L ADDR\t","specify initrd load address") #endif @@ -135,7 +135,7 @@ BAREBOX_CMD_HELP_OPT ("-e OFFS\t","entry point to the image relative to start (0 #ifdef CONFIG_OFTREE BAREBOX_CMD_HELP_OPT ("-o DTB\t","specify open firmware device tree") #endif -#ifdef CONFIG_CMD_BOOTM_VERBOSE +#ifdef CONFIG_BOOTM_VERBOSE BAREBOX_CMD_HELP_OPT ("-v\t","verbose") #endif BAREBOX_CMD_HELP_END @@ -144,14 +144,14 @@ BAREBOX_CMD_START(bootm) .cmd = do_bootm, BAREBOX_CMD_DESC("boot an application image") BAREBOX_CMD_OPTS("[-cdf" -#ifdef CONFIG_CMD_BOOTM_INITRD +#ifdef CONFIG_BOOTM_INITRD "rL" #endif "ae" #ifdef CONFIG_OFTREE "o" #endif -#ifdef CONFIG_CMD_BOOTM_VERBOSE +#ifdef CONFIG_BOOTM_VERBOSE "v" #endif "] IMAGE") |