Changeset fa9616b4 in mainline


Ignore:
Timestamp:
2010-05-12T22:52:55Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9929742
Parents:
be6cef1b
Message:

Split the binaries on RAM disk into two groups: essential and non-essential. The
essential group of binaries is needed for the system to boot into the shell.

Add CONFIG_BARE_BONED configure option to select that only essential binaries
should be included in the RAM disk image.

Files:
7 edited

Legend:

Unmodified
Added
Removed
  • HelenOS.config

    rbe6cef1b rfa9616b4  
    522522! CONFIG_NETIF_NIL_BUNDLE (n/y)
    523523
    524 % Bare-boned minimal size build
     524% Strip binaries
     525! CONFIG_STRIP_BINARIES (n/y)
     526
     527% Optimize for size
     528! CONFIG_OPTIMIZE_FOR_SIZE (n/y)
     529
     530% Bare boned build with essential binaries only
    525531! CONFIG_BARE_BONED (n/y)
    526532
    527 % Strip binaries
    528 ! [CONFIG_BARE_BONED=y] CONFIG_STRIP_BINARIES (y)
    529 
    530 % Optimize for size
    531 ! [CONFIG_BARE_BONED=y] CONFIG_OPTIMIZE_FOR_SIZE (y)
    532 
  • boot/Makefile.common

    rbe6cef1b rfa9616b4  
    8282endif
    8383
    84 RD_SRVS = \
     84RD_SRVS_ESSENTIAL = \
     85        $(USPACE_PATH)/srv/hid/fb/fb \
     86        $(USPACE_PATH)/srv/hid/kbd/kbd \
     87        $(USPACE_PATH)/srv/hid/console/console \
     88        $(USPACE_PATH)/srv/fs/devfs/devfs
     89
     90RD_SRVS_NON_ESSENTIAL = \
    8591        $(USPACE_PATH)/srv/bd/file_bd/file_bd \
    8692        $(USPACE_PATH)/srv/bd/part/guid_part/g_part \
    8793        $(USPACE_PATH)/srv/bd/part/mbr_part/mbr_part \
    8894        $(USPACE_PATH)/srv/clip/clip \
    89         $(USPACE_PATH)/srv/hid/fb/fb \
    90         $(USPACE_PATH)/srv/hid/kbd/kbd \
    91         $(USPACE_PATH)/srv/hid/console/console \
    92         $(USPACE_PATH)/srv/fs/devfs/devfs \
    9395        $(USPACE_PATH)/srv/fs/tmpfs/tmpfs \
    9496        $(USPACE_PATH)/srv/fs/fat/fat \
     
    105107
    106108ifneq ($(CONFIG_NETIF_NIL_BUNDLE),y)
    107         RD_SRVS += \
     109        RD_SRVS_NON_ESSENTIAL += \
    108110                $(USPACE_PATH)/srv/net/nil/eth/eth \
    109111                $(USPACE_PATH)/srv/net/nil/nildummy/nildummy
    110112endif
    111113
    112 RD_APPS = \
     114RD_APPS_ESSENTIAL = \
    113115        $(USPACE_PATH)/app/bdsh/bdsh \
     116        $(USPACE_PATH)/app/getterm/getterm \
     117        $(USPACE_PATH)/app/klog/klog
     118
     119RD_APPS_NON_ESSENTIAL = \
    114120        $(USPACE_PATH)/app/edit/edit \
    115         $(USPACE_PATH)/app/getterm/getterm \
    116         $(USPACE_PATH)/app/klog/klog \
    117121        $(USPACE_PATH)/app/mkfat/mkfat \
    118122        $(USPACE_PATH)/app/sbi/sbi \
     
    130134        $(USPACE_PATH)/app/top/top
    131135
     136ifneq ($(CONFIG_BARE_BONED),y)
    132137NET_CFG = \
    133138        $(USPACE_PATH)/srv/net/cfg/general \
    134139        $(USPACE_PATH)/srv/net/cfg/lo \
    135140        $(USPACE_PATH)/srv/net/cfg/ne2k
     141endif
    136142
    137143COMPONENTS = \
     
    146152-include arch/$(BARCH)/Makefile.inc
    147153
     154ifeq ($(CONFIG_BARE_BONED),y)
     155RD_SRVS = $(RD_SRVS_ESSENTIAL)
     156RD_APPS = $(RD_APPS_ESSENTIAL)
     157else
     158RD_SRVS = $(RD_SRVS_ESSENTIAL) $(RD_SRVS_NON_ESSENTIAL)
     159RD_APPS = $(RD_APPS_ESSENTIAL) $(RD_APPS_NON_ESSENTIAL)
     160endif
     161
    148162MODULES := $(notdir $(COMPONENTS))
    149163
  • boot/arch/amd64/Makefile.inc

    rbe6cef1b rfa9616b4  
    2929PAGE_SIZE = 4096
    3030
    31 RD_SRVS += \
     31RD_SRVS_ESSENTIAL += \
     32        $(USPACE_PATH)/srv/hw/char/i8042/i8042
     33
     34RD_SRVS_NON_ESSENTIAL += \
    3235        $(USPACE_PATH)/srv/bd/ata_bd/ata_bd \
    33         $(USPACE_PATH)/srv/hw/char/i8042/i8042 \
    3436        $(USPACE_PATH)/srv/hw/bus/pci/pci \
    3537        $(USPACE_PATH)/srv/hid/char_mouse/char_ms
  • boot/arch/arm32/Makefile.inc

    rbe6cef1b rfa9616b4  
    3535PAGE_SIZE = 4096
    3636
    37 RD_SRVS += \
     37RD_SRVS_ESSENTIAL +=
     38
     39RD_SRVS_NON_ESSENTIAL += \
    3840        $(USPACE_PATH)/srv/bd/gxe_bd/gxe_bd
    3941
  • boot/arch/mips32/Makefile.inc

    rbe6cef1b rfa9616b4  
    3232EXTRA_CFLAGS = -mno-abicalls -G 0 -fno-zero-initialized-in-bss -mips3
    3333
    34 RD_SRVS += \
     34RD_SRVS_ESSENTIAL +=
     35
     36RD_SRVS_NON_ESSENTIAL += \
    3537        $(USPACE_PATH)/srv/bd/gxe_bd/gxe_bd
    3638
  • boot/arch/ppc32/Makefile.inc

    rbe6cef1b rfa9616b4  
    4040EXTRA_CFLAGS = -mcpu=powerpc -msoft-float -m32
    4141
    42 RD_SRVS += \
    43         $(USPACE_PATH)/srv/hid/adb_mouse/adb_ms \
     42RD_SRVS_ESSENTIAL += \
    4443        $(USPACE_PATH)/srv/hw/bus/cuda_adb/cuda_adb
     44
     45RD_SRVS_NON_ESSENTIAL += \
     46        $(USPACE_PATH)/srv/hid/adb_mouse/adb_ms
    4547
    4648SOURCES = \
  • boot/arch/sparc64/Makefile.inc

    rbe6cef1b rfa9616b4  
    4040EXTRA_CFLAGS = -mcpu=ultrasparc -m64 -mno-fpu
    4141
    42 RD_SRVS += \
     42RD_SRVS_NON_ESSENTIAL +=
     43
     44RD_SRVS_ESSENTIAL += \
    4345        $(USPACE_PATH)/srv/hw/cir/fhc/fhc \
    4446        $(USPACE_PATH)/srv/hw/cir/obio/obio
Note: See TracChangeset for help on using the changeset viewer.