Allow the script to be run from the src/tools/boot directory by using make -V SRCTOP to find the top of the tree.
Also, use a temp directory in $TMPDIR to assemble the boot image, and write the boot log file to $TMPDIR. Arrange to have the temporary image clean itself up, but leave the log file in $TMPDIR for post-mortem analysis of failures.