Commit 6004127d authored by Henrik Nordstrom's avatar Henrik Nordstrom
Browse files

usb-boot: Handle variable arguments

parent 05cdc60e
...@@ -55,14 +55,14 @@ int sunxi_mmc_init(void) ...@@ -55,14 +55,14 @@ int sunxi_mmc_init(void)
return -1; return -1;
} }
int status_led_set(void) void status_led_set(int led, int state)
{ {
return -1; return;
} }
void sunxi_board_init(void) void sunxi_board_init(void)
{ {
int power_failed = 1; int power_failed = 0;
int ramsize; int ramsize;
timer_init(); timer_init();
......
...@@ -4,8 +4,8 @@ if [ $# -lt 2 ]; then ...@@ -4,8 +4,8 @@ if [ $# -lt 2 ]; then
echo "Usage: $0 board u-boot.bin [boot.scr|-] [kernel script.bin [initramfs]]" echo "Usage: $0 board u-boot.bin [boot.scr|-] [kernel script.bin [initramfs]]"
exit 1 exit 1
fi fi
board=$1; shift board=$1; shift || (echo "ERROR: Board must be specified"; exit 1;)
uboot=$1; shift uboot=$1; shift || (echo "ERROR: u-boot.bin must be specified"; exit 1;)
bootscr=$tob/felboot/ramboot.scr bootscr=$tob/felboot/ramboot.scr
if [ ! -f $bootscr ]; then if [ ! -f $bootscr ]; then
bootscr=$top/bin/ramboot.scr bootscr=$top/bin/ramboot.scr
...@@ -14,9 +14,9 @@ case "$1" in ...@@ -14,9 +14,9 @@ case "$1" in
*.scr) bootscr="$1"; shift *.scr) bootscr="$1"; shift
;; ;;
esac esac
kernel=$1; shift kernel=$1; shift || true
scriptbin=$1; shift scriptbin=$1; shift || true
initramfs=$1; shift initramfs=$1; shift || true
fel() { fel() {
echo fel "$@" echo fel "$@"
$top/fel $@ $top/fel $@
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment