Changeset 874ed210 in mainline for kernel/Makefile
- Timestamp:
- 2019-06-24T16:13:58Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 59d8235
- Parents:
- d86393c8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile
rd86393c8 r874ed210 92 92 -ffreestanding -nostdlib \ 93 93 -fexec-charset=UTF-8 -finput-charset=UTF-8 -fno-common \ 94 -fdebug-prefix-map=$(realpath $(ROOT_PATH))=. 94 -fdebug-prefix-map=$(realpath $(ROOT_PATH))=. \ 95 -Wa,--fatal-warnings 95 96 96 97 GCC_CFLAGS = -std=gnu11 -Wall -Wextra -Wno-unused-parameter \ … … 101 102 -Wno-missing-field-initializers -Wno-unused-command-line-argument \ 102 103 -Wmissing-prototypes -Werror-implicit-function-declaration \ 103 -Wwrite-strings -pipe -fno-stack-protector -fno-PIC 104 -Wwrite-strings -pipe -fno-stack-protector -fno-PIC \ 105 -mllvm -asm-macro-max-nesting-depth=1000 104 106 105 107 ifeq ($(CONFIG_DEBUG),y) … … 119 121 endif 120 122 121 AFLAGS += --fatal-warnings122 123 LDFLAGS += -Wl,-n -T $(LINK) -Wl,-M,--fatal-warnings,--warn-common 123 124 … … 341 342 GENARCH_DEPENDS := $(addsuffix .d,$(basename $(GENARCH_SOURCES))) 342 343 343 AS_CFLAGS := $(addprefix -Xassembler ,$(AFLAGS))344 345 344 -include $(GENERIC_DEPENDS) 346 345 -include $(ARCH_DEPENDS) 347 346 -include $(GENARCH_DEPENDS) 348 347 349 ifeq ($(COMPILER),clang)350 AS_CFLAGS += -mllvm -asm-macro-max-nesting-depth=1000351 endif352 353 348 ifeq ($(CONFIG_SYMTAB),y) 354 349 SYMTAB_OBJECTS := generic/src/debug/real_map.o … … 374 369 375 370 %.o: %.S 376 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS)371 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) 377 372 378 373 %.o: %.s 379 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS)374 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) 380 375 381 376 %.o: %.c … … 383 378 384 379 $(REAL_MAP).o: $(REAL_MAP).bin 385 echo "$(AS_PROLOG)""$(SYMTAB_SECTION)"" .incbin \"$<\"" | $(CC) $(CFLAGS) $(AS_CFLAGS)-x assembler -c -o $@ -380 echo "$(AS_PROLOG)""$(SYMTAB_SECTION)"" .incbin \"$<\"" | $(CC) $(CFLAGS) -x assembler -c -o $@ - 386 381 387 382 $(REAL_MAP).bin: $(LINK) $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) 388 echo "$(AS_PROLOG)""$(SYMTAB_SECTION)" | $(CC) $(CFLAGS) $(AS_CFLAGS)-x assembler -c -o $(EMPTY_MAP) -383 echo "$(AS_PROLOG)""$(SYMTAB_SECTION)" | $(CC) $(CFLAGS) -x assembler -c -o $(EMPTY_MAP) - 389 384 $(CC) $(DEFS) $(CFLAGS) $(LDFLAGS) -Wl,-Map,$(MAP_PREV) -o $@ $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(EMPTY_MAP) 390 385 $(OBJDUMP) -t $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) > $(DUMP) … … 394 389 # on architectures that have bss after symtab 395 390 396 echo "$(AS_PROLOG)""$(SYMTAB_SECTION)"" .incbin \"$@\"" | $(CC) $(CFLAGS) $(AS_CFLAGS)-x assembler -c -o $(SIZEOK_MAP) -391 echo "$(AS_PROLOG)""$(SYMTAB_SECTION)"" .incbin \"$@\"" | $(CC) $(CFLAGS) -x assembler -c -o $(SIZEOK_MAP) - 397 392 $(CC) $(DEFS) $(CFLAGS) $(LDFLAGS) -Wl,-Map,$(MAP_PREV) -o $@ $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(SIZEOK_MAP) 398 393 $(OBJDUMP) -t $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) > $(DUMP)
Note:
See TracChangeset
for help on using the changeset viewer.