]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
bootm: fix conditional compilation for bootm ramdisk subcommand
authorDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Tue, 26 Feb 2013 04:54:19 +0000 (04:54 +0000)
committerTom Rini <trini@ti.com>
Mon, 4 Mar 2013 19:19:56 +0000 (14:19 -0500)
All code related to the bootm ramdisk subcommand is conditionally
enabled by CONFIG_SYS_BOOT_RAMDISK_HIGH except for the help message.
Replace the CONFIG_ARCH defines by CONFIG_SYS_BOOT_RAMDISK_HIGH
to fix this.

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
common/cmd_bootm.c

index b32991da0d9c1d26f1c7211acbb5f11282b1e7aa..2e9335207c5c11fb8d781c3ecf55b0d968c5b1b4 100644 (file)
@@ -1056,7 +1056,7 @@ static char bootm_help_text[] =
        "issued in the order below (it's ok to not issue all sub-commands):\n"
        "\tstart [addr [arg ...]]\n"
        "\tloados  - load OS image\n"
-#if defined(CONFIG_PPC) || defined(CONFIG_M68K) || defined(CONFIG_SPARC)
+#if defined(CONFIG_SYS_BOOT_RAMDISK_HIGH)
        "\tramdisk - relocate initrd, set env initrd_start/initrd_end\n"
 #endif
 #if defined(CONFIG_OF_LIBFDT)