# # Build # set build_components { core init drivers/timer server/wm app/decorator app/floating_window_layouter server/nitpicker app/pointer server/report_rom drivers/framebuffer drivers/pci drivers/input test/nitpicker app/backdrop app/launchpad server/nit_fb noux/minimal lib/libc_noux server/terminal server/ram_fs app/cli_monitor test/bomb test/signal test/resource_yield server/terminal_log noux-pkg/vim } # # Build Noux packages only once # foreach pkg {bash coreutils} { lappend_if [expr ![file exists bin/$pkg]] build_components noux-pkg/$pkg } build $build_components # strip all binaries prior archiving exec sh -c "find bin/bash/ bin/coreutils/ -type f | (xargs strip || true) 2>/dev/null" exec tar cfv bin/bash.tar -h -C bin/bash . exec tar cfv bin/coreutils.tar -h -C bin/coreutils . 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 exynos5] 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 { } append_if [have_spec sdl] 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 # copy backdrop PNG images to bin directory foreach file { genode_logo.png grid.png } { file copy -force [genode_dir]/repos/gems/src/app/backdrop/$file bin/ } # # Boot modules # # generic modules set boot_modules { core init timer wm decorator ld.lib.so noux terminal ram_fs nitpicker nit_fb pointer libc.lib.so libm.lib.so libc_noux.lib.so floating_window_layouter report_rom terminal_log test-signal cli_monitor test-resource_yield vim.tar libc_terminal.lib.so ncurses.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 exynos5] 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