Commit fff57198 authored by Henrik Nordstrom's avatar Henrik Nordstrom
Browse files

usb-boot: Support speficying the fel boot image by full path

parent d31d4a4e
......@@ -21,10 +21,16 @@ fel() {
echo fel "$@"
$top/fel $@
}
felboot=$top/felboot/fel-boot-${board}.bin
if [ ! -f $felboot ]; then
felboot=$top/bin/fel-boot-${board}.bin
fi
case $board in
*/*) felboot=$board
;;
*)
felboot=$top/felboot/fel-boot-${board}.bin
if [ ! -f $felboot ]; then
felboot=$top/bin/fel-boot-${board}.bin
fi
;;
esac
if [ ! -f $felboot ]; then
echo "ERROR: Can't find fel-boot binary for ${board}"
exit 1
......
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