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