]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - lib_nios2/bootm.c
bootm: Add subcommands
[people/ms/u-boot.git] / lib_nios2 / bootm.c
index 34f5b8ff8296bf5dcc11eb444a67024fe4c0207e..53fd5691ad7dd9c288d0b252fa061db0f99edd6b 100644 (file)
@@ -29,6 +29,9 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
 {
        void (*kernel)(void) = (void (*)(void))images->ep;
 
+       if ((flag != 0) && (flag != BOOTM_STATE_OS_GO))
+               return 1;
+
        /* For now we assume the Microtronix linux ... which only
         * needs to be called ;-)
         */