From: Bin Meng Date: Fri, 21 Dec 2018 15:13:40 +0000 (-0800) Subject: bootm: vxworks: Make do_bootm_vxworks() non-static X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=f2a53c7665a87decac5f3048b2a97467f648659f;p=u-boot.git bootm: vxworks: Make do_bootm_vxworks() non-static For future extension to other architectures, make do_bootm_vxworks() a non-static function. Signed-off-by: Bin Meng --- diff --git a/common/bootm_os.c b/common/bootm_os.c index da938c56b9..473b9400c8 100644 --- a/common/bootm_os.c +++ b/common/bootm_os.c @@ -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; diff --git a/include/bootm.h b/include/bootm.h index 0501414e0d..dbd6f49c2d 100644 --- a/include/bootm.h +++ b/include/bootm.h @@ -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);