Skip to content

Commit

Permalink
cmd: download: Allow board specific download
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Chen <[email protected]>
Change-Id: Ie26523b83bc8a91ea2fd77fadd78c134715db622
  • Loading branch information
JosephChen2017 committed Oct 10, 2022
1 parent 56b8197 commit b6ad8e1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cmd/download.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,19 @@
#include <command.h>
#include <console.h>

__weak void do_board_download(void)
{
}

static int do_download(cmd_tbl_t *cmdtp, int flag,
int argc, char * const argv[])
{
disable_ctrlc(1);

/* Allow board specific download, maybe noreturn */
do_board_download();

/* Generic download */
#ifdef CONFIG_CMD_ROCKUSB
run_command("rockusb 0 $devtype $devnum", 0);
#endif
Expand Down

0 comments on commit b6ad8e1

Please sign in to comment.