Changeset 1cb092d in mainline for kernel/Makefile


Ignore:
Timestamp:
2010-05-10T20:21:18Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6db1e27
Parents:
a4125fb1
Message:

Prepare to support size-optimized builds and stripped binaries.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/Makefile

    ra4125fb1 r1cb092d  
    8282
    8383INCLUDES = generic/include
     84
     85ifeq ($(CONFIG_OPTIMIZE_FOR_SIZE),y)
     86OPTIMIZATION = s
     87else
    8488OPTIMIZATION = 3
     89endif
    8590
    8691DEFS = -DKERNEL -DRELEASE=$(RELEASE) "-DNAME=$(NAME)" -D__$(BITS)_BITS__ -D__$(ENDIANESS)__
     
    352357$(RAW): $(LINK) $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(SYMTAB_OBJECTS)
    353358        $(LD) -N $(LFLAGS) -T $(LINK) -M -Map $(MAP) -o $@ $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(SYMTAB_OBJECTS)
     359ifeq ($(CONFIG_STRIP_BINARIES),y)
     360        $(STRIP) $(RAW)
     361endif
    354362
    355363$(LINK): $(LINK).in $(DEPEND)
Note: See TracChangeset for help on using the changeset viewer.