# # On OMAP4 where no PS/2 is available, we rely on USB HID # proc use_usb_input { } { return [expr ![have_spec ps2] && [have_spec usb]] } # # Uncomment the following line when working on the VIM source code. Otherwise, # the package may get recompiled, yet it does not get reinstalled into 'bin/'. # #exec rm -rf noux-pkg/bash bin/bash set build_components { core init drivers/timer noux/minimal lib/libc_noux drivers/framebuffer drivers/pci drivers/input server/terminal server/ram_fs test/libports/ncurses } lappend_if [use_usb_input] build_components drivers/usb lappend_if [have_spec gpio] build_components drivers/gpio # # Build Noux packages only once # foreach pkg {bash coreutils vim} { lappend_if [expr ![file exists bin/$pkg]] build_components noux-pkg/$pkg } build $build_components # write default vimrc file set vimrc_fd [open "bin/vim/share/vim/vimrc" w] puts $vimrc_fd { set noloadplugins set hls set nocompatible set laststatus=2 set noswapfile set viminfo=} close $vimrc_fd # strip all binaries prior archiving exec sh -c "find bin/bash/ bin/vim/ bin/coreutils/ -type f | (xargs [cross_dev_prefix]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 . exec tar cfv bin/vim.tar -h -C bin/vim . create_boot_directory append config { } append_if [have_spec sdl] config { } append_if [have_spec pci] config { } append_if [have_spec framebuffer] config { } append_if [have_spec ps2] config { } append_if [have_spec gpio] config { } append_if [use_usb_input] config { } append config { } install_config $config # # Boot modules # # generic modules set boot_modules { core init timer ld.lib.so noux terminal ram_fs libc.lib.so libm.lib.so libc_noux.lib.so ncurses.lib.so bash.tar coreutils.tar vim.tar } # 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 [use_usb_input] boot_modules usb_drv lappend_if [have_spec gpio] boot_modules gpio_drv build_boot_image $boot_modules if {[have_spec x86_64]} { # bash.tar is really huge when built for x86_64 append qemu_args " -m 320 " } run_genode_until forever exec rm bin/bash.tar