#
# Build
#
set build_components {
core init
drivers/timer
drivers/audio_out
server/tar_fs
drivers/framebuffer drivers/pci drivers/input
app/dosbox
}
lappend_if [have_spec acpi] build_components drivers/acpi
build $build_components
create_boot_directory
#
# Generate config
#
append config {
}
append_if [have_spec sdl] config {
}
append_if [have_spec acpi] config {
}
append_if [have_spec vesa] config {
}
append_if [have_spec pl11x] config {
}
append_if [have_spec ps2] config {
}
append config {
}
append_if [have_spec acpi] config {
}
append config {
}
install_config $config
if {![file exists bin/dosbox.tar]} {
puts ""
puts "You need to provide 'bin/dosbox.tar' that contains the DOS game you want to"
puts "play. Mount the directory from within DosBox by entering 'mount C:
',"
puts "change CWD to C: and play the game!"
puts ""
puts "(Note: for all games, which need a R/W filesystem, you cannot use 'tar_fs'.)"
puts ""
exit 1
}
#
# Boot modules
#
# generic modules
set boot_modules {
core init timer audio_out_drv
tar_fs ld.lib.so
libc_fs.lib.so libc.lib.so libc_log.lib.so
libm.lib.so lwip.lib.so libpng.lib.so
stdcxx.lib.so sdl.lib.so sdl_net.lib.so pthread.lib.so zlib.lib.so
dosbox dosbox.tar
}
# platform-specific modules
lappend_if [have_spec nova] boot_modules pci_device_pd
lappend_if [have_spec acpi] boot_modules acpi_drv
lappend_if [have_spec linux] boot_modules fb_sdl
lappend_if [have_spec pci] boot_modules pci_drv
lappend_if [have_spec vesa] boot_modules fb_drv
lappend_if [have_spec ps2] boot_modules ps2_drv
lappend_if [have_spec pl11x] boot_modules fb_drv
build_boot_image $boot_modules
append qemu_args " -m 256 -soundhw ac97 "
run_genode_until forever