# This script should be located in the EMACboot directory, with
# input, interm, and output directories below it.

# preparation for build
rm -f interm/*.*
cd input

# generate boot table in CCS format
../../Utilities/hex6x simple.rmd
../../Utilities/bconvert64x -le simple.btbl simple.btbl.be

# generate the Ethernet boot table frame 
../../Utilities/bootpacket simple.btbl.be simple.eth ff-ff-ff-ff-ff-ff 00-14-22-B9-FD-3B

# output file
mv simple.eth ../output

# intermediate files
mv *.btbl ../interm
mv *.btbl.be ../interm

# display the output files
cd ..
ls -al output
