tools/firmware-utils: mktplinkfw2: allow parameter override

This patch enables commandline override of board hw_ver and hw_ver_add

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
master
Thibaut VARENE 8 years ago committed by Mathias Kresin
parent 09735db18b
commit 66a8c8f04c
  1. 10
      tools/firmware-utils/src/mktplinkfw2.c

@ -424,16 +424,14 @@ static int check_options(void)
board->hw_id = strtoul(opt_hw_id, NULL, 0);
if (opt_hw_rev)
board->hw_rev = strtoul(opt_hw_rev, NULL, 0);
else
board->hw_rev = 1;
board->hw_ver_add = 0;
}
if (opt_hw_rev)
board->hw_rev = strtoul(opt_hw_rev, NULL, 0);
if (opt_hw_ver_add)
board->hw_ver_add = strtoul(opt_hw_ver_add, NULL, 0);
else
board->hw_ver_add = 0;
}
layout = find_layout(layout_id);
if (layout == NULL) {

Loading…
Cancel
Save