##
# Build specific binary raw image
#
# \param  elf_img   ELF binary to build raw image from
#
proc run_image {elf_img} {
	# parse ELF entrypoint and load address
	set raw_img "[run_dir]/image.img"
	exec [cross_dev_prefix]objcopy -O binary $elf_img $raw_img

	puts "Binary raw image created: ./$raw_img"
}