Changeset 12d7710 in mainline for kernel/Makefile
- Timestamp:
- 2010-03-26T22:01:28Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1faa995
- Parents:
- 4204ad9 (diff), eaf22d4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile
r4204ad9 r12d7710 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 … … 204 201 generic/src/lib/memstr.c \ 205 202 generic/src/lib/sort.c \ 206 generic/src/lib/str ing.c \203 generic/src/lib/str.c \ 207 204 generic/src/lib/elf.c \ 208 205 generic/src/lib/rd.c \ … … 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) $@
Note:
See TracChangeset
for help on using the changeset viewer.