Changeset 7c682dd1 in mainline
- Timestamp:
- 2010-03-23T14:03:05Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d99c1d2
- Parents:
- 8023571
- Location:
- kernel
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile
r8023571 r7c682dd1 69 69 SIZEOK_MAP = generic/src/debug/sizeok_map.o 70 70 71 INCLUDES = generic/include72 OPTIMIZATION = 373 74 71 .PHONY: all clean 75 72 … … 84 81 # 85 82 83 INCLUDES = generic/include 84 OPTIMIZATION = 3 85 86 86 DEFS = -DKERNEL -DRELEASE=$(RELEASE) "-DNAME=$(NAME)" -D__$(BITS)_BITS__ -D__$(ENDIANESS)__ 87 87 88 GCC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) -imacros ../config.h\88 GCC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 89 89 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 90 90 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ … … 93 93 -Werror -pipe 94 94 95 ICC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) -imacros ../config.h\95 ICC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 96 96 -ffreestanding -fno-builtin -nostdlib -nostdinc -Wall -Wmissing-prototypes \ 97 97 -Werror-implicit-function-declaration -Werror -wd170 … … 101 101 -erroff=E_ZERO_SIZED_STRUCT_UNION 102 102 103 CLANG_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) -imacros ../config.h\103 CLANG_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 104 104 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 105 105 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ … … 107 107 -Werror-implicit-function-declaration -Wwrite-strings \ 108 108 -pipe -arch $(CLANG_ARCH) 109 110 LFLAGS = -M111 AFLAGS =112 109 113 110 -include arch/$(KARCH)/Makefile.inc … … 356 353 357 354 $(RAW): $(LINK) $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(SYMTAB_OBJECTS) 358 $(LD) -T $(LINK) $(LFLAGS) $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(SYMTAB_OBJECTS) -o $@ -Map $(MAP)355 $(LD) $(LFLAGS) -T $(LINK) -M -Map $(MAP) -o $@ $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(SYMTAB_OBJECTS) 359 356 360 357 $(LINK): $(LINK).in $(DEPEND) … … 368 365 369 366 %.o: %.s $(DEPEND) 370 $(AS) $(AFLAGS) $< -o $@367 $(AS) $(AFLAGS) -o $@ $< 371 368 ifeq ($(PRECHECK),y) 372 369 $(JOBFILE) $(JOB) $< $@ as asm $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) … … 399 396 $(REAL_MAP).bin: $(LINK) $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) 400 397 echo $(SYMTAB_SECTION) | $(AS) $(AFLAGS) -o $(EMPTY_MAP) 401 $(LD) -T $(LINK) $(LFLAGS) $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(EMPTY_MAP) -o $@ -Map $(MAP_PREV)398 $(LD) $(LFLAGS) -T $(LINK) -M -Map $(MAP_PREV) -o $@ $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(EMPTY_MAP) 402 399 $(OBJDUMP) -t $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) > $(DUMP) 403 400 $(GENMAP) $(MAP_PREV) $(DUMP) $@ … … 407 404 408 405 echo $(SYMTAB_SECTION)" .incbin \"$@\"" | $(AS) $(AFLAGS) -o $(SIZEOK_MAP) 409 $(LD) -T $(LINK) $(LFLAGS) $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(SIZEOK_MAP) -o $@ -Map $(MAP_PREV)406 $(LD) $(LFLAGS) -T $(LINK) -M -Map $(MAP_PREV) -o $@ $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(SIZEOK_MAP) 410 407 $(OBJDUMP) -t $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) > $(DUMP) 411 408 $(GENMAP) $(MAP_PREV) $(DUMP) $@ -
kernel/arch/ia64/Makefile.inc
r8023571 r7c682dd1 34 34 ICC_CFLAGS += $(CMN1) 35 35 36 LFLAGS += -EL37 AFLAGS += -mconstant-gp36 LFLAGS = -EL 37 AFLAGS = -mconstant-gp 38 38 39 39 BITS = 64 -
kernel/arch/ppc32/Makefile.inc
r8023571 r7c682dd1 32 32 33 33 GCC_CFLAGS += -mcpu=powerpc -msoft-float -m32 34 AFLAGS += -a3235 LFLAGS += -no-check-sections -N34 AFLAGS = -a32 35 LFLAGS = -no-check-sections -N 36 36 37 37 BITS = 32 -
kernel/arch/sparc64/Makefile.inc
r8023571 r7c682dd1 34 34 SUNCC_CFLAGS += -m64 -xarch=sparc -xregs=appl,no%float 35 35 36 LFLAGS += -no-check-sections -N36 LFLAGS = -no-check-sections -N 37 37 38 38 BITS = 64
Note:
See TracChangeset
for help on using the changeset viewer.