# # Build # if {[have_spec hw_odroid_xu]} { puts "Run script does not support this platform." exit 0 } set build_components { core init drivers/timer app/decorator server/nitpicker server/report_rom test/decorator_stress drivers/framebuffer drivers/pci drivers/input } lappend_if [have_spec usb] build_components drivers/usb lappend_if [have_spec gpio] build_components drivers/gpio lappend_if [have_spec imx53] build_components drivers/platform lappend_if [have_spec platform_arndale] build_components drivers/platform lappend_if [have_spec platform_rpi] build_components drivers/platform build $build_components create_boot_directory # # Generate config # append config { } append_if [have_spec sdl] config { } append_if [have_spec pci] config { } append_if [have_spec framebuffer] config { } append_if [have_spec gpio] config { } append_if [have_spec platform_arndale] config { } append_if [have_spec platform_rpi] config { } append_if [have_spec imx53] config { } append_if [have_spec ps2] config { } append_if [expr ![have_spec ps2] && [have_spec usb]] config { } append config { } install_config $config # # Boot modules # # generic modules set boot_modules { core init timer decorator nitpicker report_rom test-decorator_stress ld.lib.so libc.lib.so libm.lib.so } # platform-specific modules lappend_if [have_spec linux] boot_modules fb_sdl lappend_if [have_spec pci] boot_modules pci_drv lappend_if [have_spec ps2] boot_modules ps2_drv lappend_if [have_spec framebuffer] boot_modules fb_drv lappend_if [have_spec usb] boot_modules usb_drv lappend_if [have_spec gpio] boot_modules gpio_drv lappend_if [have_spec imx53] boot_modules platform_drv lappend_if [have_spec platform_arndale] boot_modules platform_drv lappend_if [have_spec platform_rpi] boot_modules platform_drv lappend_if [have_spec imx53] boot_modules input_drv build_boot_image $boot_modules append qemu_args " -m 256 " run_genode_until forever