run: Use raw binary object for base-hw on Muen

This commit is contained in:
Reto Buerki 2015-04-14 17:01:12 +02:00 committed by Stefan Kalkowski
parent 96a0820e89
commit 11bfbb3532
1 changed files with 8 additions and 0 deletions

View File

@ -144,6 +144,14 @@ proc run_boot_dir {binaries} {
# offer ELF image
set elf_img "[run_dir]/image.elf"
# Use raw binary object for base-hw on Muen
if {[have_spec "hw_x86_64_muen"]} {
set raw_img "[run_dir]/image.raw"
exec [cross_dev_prefix]objcopy -O binary bin/$core_bin $raw_img
exit 0
}
if {[have_spec "x86_64"]} {
# as startup is done in 32 bit mode, GRUB expects a 32 bit image
exec [cross_dev_prefix]objcopy -O elf32-i386 bin/$core_bin $elf_img