From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Fri, 21 Dec 2018 07:13:40 -0800 Subject: [U-Boot] [PATCH 2/3] bootm: vxworks: Make do_bootm_vxworks() non-static In-Reply-To: <1545405221-9567-1-git-send-email-bmeng.cn@gmail.com> References: <1545405221-9567-1-git-send-email-bmeng.cn@gmail.com> Message-ID: <1545405221-9567-2-git-send-email-bmeng.cn@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de For future extension to other architectures, make do_bootm_vxworks() a non-static function. Signed-off-by: Bin Meng --- common/bootm_os.c | 4 ++-- include/bootm.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/common/bootm_os.c b/common/bootm_os.c index da938c5..473b940 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 0501414..dbd6f49 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); -- 2.7.4