bootm: vxworks: Make do_bootm_vxworks() non-static
authorBin Meng <bmeng.cn@gmail.com>
Fri, 21 Dec 2018 15:13:40 +0000 (07:13 -0800)
committerTom Rini <trini@konsulko.com>
Mon, 31 Dec 2018 13:08:51 +0000 (08:08 -0500)
For future extension to other architectures, make do_bootm_vxworks()
a non-static function.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
common/bootm_os.c
include/bootm.h

index da938c56b975782a8767674566ec11ca6acc2839..473b9400c87ded388fc2b5c0987833bf4003a5df 100644 (file)
@@ -317,8 +317,8 @@ static void do_bootvx_fdt(bootm_headers_t *images)
        puts("## vxWorks terminated\n");
 }
 
-static int do_bootm_vxworks(int flag, int argc, char * const argv[],
-                            bootm_headers_t *images)
+int do_bootm_vxworks(int flag, int argc, char * const argv[],
+                    bootm_headers_t *images)
 {
        if (flag != BOOTM_STATE_OS_GO)
                return 0;
index 0501414e0dc45b49be65a66d9d8953fe1f189eb1..dbd6f49c2df41eccf8f1d822b2960cf05b24dc2d 100644 (file)
@@ -35,6 +35,8 @@ typedef int boot_os_fn(int flag, int argc, char * const argv[],
                        bootm_headers_t *images);
 
 extern boot_os_fn do_bootm_linux;
+extern boot_os_fn do_bootm_vxworks;
+
 int do_bootelf(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
 void lynxkdi_boot(image_header_t *hdr);