mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-10 21:01:49 +00:00
Fix hard-disk image creation in libc_fatfs
The hard-disk image must be created before boot-image creation as it is used as boot module by variants of the test (use_ram_block=true).
This commit is contained in:
parent
664d858e63
commit
e448022f23
@ -129,6 +129,19 @@ append config {
|
||||
|
||||
install_config $config
|
||||
|
||||
#
|
||||
# Prepare hard-disk image for test (used by Qemu or in RAM)
|
||||
#
|
||||
|
||||
set disk_image "bin/test.hda"
|
||||
set cmd "dd if=/dev/zero of=$disk_image bs=1024 count=65536"
|
||||
puts "creating disk image: $cmd"
|
||||
catch { exec sh -c $cmd }
|
||||
|
||||
set cmd "$mkfs_cmd $mkfs_opts $disk_image"
|
||||
puts "formating disk: $cmd"
|
||||
catch { exec sh -c $cmd }
|
||||
|
||||
#
|
||||
# Boot modules
|
||||
#
|
||||
@ -152,19 +165,6 @@ append_platform_drv_boot_modules
|
||||
|
||||
build_boot_image $boot_modules
|
||||
|
||||
#
|
||||
# Execute test case
|
||||
#
|
||||
|
||||
set disk_image "bin/test.hda"
|
||||
set cmd "dd if=/dev/zero of=$disk_image bs=1024 count=65536"
|
||||
puts "creating disk image: $cmd"
|
||||
catch { exec sh -c $cmd }
|
||||
|
||||
set cmd "$mkfs_cmd $mkfs_opts $disk_image"
|
||||
puts "formating disk: $cmd"
|
||||
catch { exec sh -c $cmd }
|
||||
|
||||
#
|
||||
# Qemu
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user