Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 2c52073 in mainline


Ignore:
Timestamp:
2017-10-03T16:04:22Z (4 years ago)
Author:
jzr <zarevucky.jiri@…>
Branches:
lfn, master
Children:
b4a9f5d
Parents:
68f4671
Message:

Remove CONFIG_OPTIMIZE_FOR_SIZE and instead directly set OPTIMIZATION as multiple-choice.

Files:
11 edited

Legend:

Unmodified
Added
Removed
  • HelenOS.config

    r68f4671 r2c52073  
    621621! CONFIG_STRIP_BINARIES (n/y)
    622622
    623 % Optimize for size
    624 ! CONFIG_OPTIMIZE_FOR_SIZE (n/y)
     623% Optimization level
     624@ "3" Level 3 (recommended).
     625@ "2" Level 2.
     626@ "1" Level 1.
     627@ "0" Disable optimizations.
     628@ "s" Optimize for size.
     629@ "g" Enable only optimizations that don't harm debugging.
     630@ "fast" Level 3 + aggressive optimizations that can affect adherence to standards.
     631! OPTIMIZATION (choice)
    625632
    626633% Barebone build with essential binaries only
  • defaults/amd64/Makefile.config

    r68f4671 r2c52073  
    7373# GRUB boot loader architecture
    7474GRUB_ARCH = pc
     75
     76# Optimization level
     77OPTIMIZATION = 3
  • defaults/arm32/Makefile.config

    r68f4671 r2c52073  
    3737# What is your output device?
    3838CONFIG_HID_OUT = generic
     39
     40# Optimization level
     41OPTIMIZATION = 3
  • defaults/ia32/Makefile.config

    r68f4671 r2c52073  
    8585# GRUB boot loader architecture
    8686GRUB_ARCH = pc
     87
     88# Optimization level
     89OPTIMIZATION = 3
  • defaults/ia64/Makefile.config

    r68f4671 r2c52073  
    4949# Output device class
    5050CONFIG_HID_OUT = generic
     51
     52# Optimization level
     53OPTIMIZATION = 3
  • defaults/mips32/Makefile.config

    r68f4671 r2c52073  
    4646# Barebone build with essential binaries only
    4747CONFIG_BAREBONE = y
     48
     49# Optimization level
     50OPTIMIZATION = 3
  • defaults/ppc32/Makefile.config

    r68f4671 r2c52073  
    4646# OHCI root hub power switch, ganged is enough
    4747OHCI_POWER_SWITCH = ganged
     48
     49# Optimization level
     50OPTIMIZATION = 3
  • defaults/sparc64/Makefile.config

    r68f4671 r2c52073  
    5555# Start AP processors by the loader
    5656CONFIG_AP = y
     57
     58# Optimization level
     59OPTIMIZATION = 3
  • defaults/special/Makefile.config

    r68f4671 r2c52073  
    3232RCU = PREEMPT_A
    3333
     34# Optimization level
     35OPTIMIZATION = 3
  • kernel/Makefile

    r68f4671 r2c52073  
    8181INCLUDES = generic/include genarch/include arch/$(KARCH)/include ../abi/include
    8282INCLUDES_FLAGS = $(addprefix -I,$(INCLUDES))
    83 
    84 ifeq ($(CONFIG_OPTIMIZE_FOR_SIZE),y)
    85         OPTIMIZATION = s
    86 else
    87         OPTIMIZATION = 3
    88 endif
    8983
    9084DEFS = -DKERNEL -DRELEASE=$(RELEASE) "-DCOPYRIGHT=$(COPYRIGHT)" "-DNAME=$(NAME)" -D__$(BITS)_BITS__ -D__$(ENDIANESS)__
  • uspace/Makefile.common

    r68f4671 r2c52073  
    203203endif
    204204
    205 ifeq ($(CONFIG_OPTIMIZE_FOR_SIZE),y)
    206         OPTIMIZATION = s
    207 else
    208         OPTIMIZATION = 3
    209 endif
    210 
    211205# PCUT-based unit tests
    212206ifneq ($(TEST_SOURCES),)
Note: See TracChangeset for help on using the changeset viewer.