]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - lib_ppc/bootm.c
bootm: Add subcommands
[karo-tx-uboot.git] / lib_ppc / bootm.c
index 1f3501ae32855bb543131dd9ac5a7a749a4af23a..6c9cf9e8b5b8658ec882091b0258fe728dce2d50 100644 (file)
@@ -117,6 +117,9 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
        char    *of_flat_tree = images->ft_addr;
 #endif
 
+       if ((flag != 0) && (flag != BOOTM_STATE_OS_GO))
+               return 1;
+
        kernel = (void (*)(bd_t *, ulong, ulong, ulong,
                           ulong, ulong, ulong))images->ep;