Changeset 874ed210 in mainline
- 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
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/Makefile.build
rd86393c8 r874ed210 36 36 DEFS = -DBOOT -DRELEASE=$(RELEASE) "-DCOPYRIGHT=$(COPYRIGHT)" "-DNAME=$(NAME)" -D__$(BITS)_BITS__ -D__$(ENDIANESS)__ 37 37 38 AFLAGS = --fatal-warnings39 38 LDFLAGS = -Wl,--fatal-warnings,--warn-common $(EXTRA_LDFLAGS) 40 39 … … 42 41 -ffreestanding -nostdlib \ 43 42 -fexec-charset=UTF-8 -finput-charset=UTF-8 -fno-common \ 44 -fdebug-prefix-map=$(realpath $(ROOT_PATH))=. 43 -fdebug-prefix-map=$(realpath $(ROOT_PATH))=. \ 44 -Wa,--fatal-warnings 45 45 46 46 GCC_CFLAGS = -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ … … 80 80 -include $(DEPENDS) 81 81 82 AS_CFLAGS := $(addprefix -Xassembler ,$(AFLAGS))83 84 82 $(BOOT_OUTPUT): $(RAW) 85 83 $(OBJCOPY) -O $(BFD_OUTPUT) $< $@ … … 92 90 93 91 %.o: %.s | depend 94 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS)92 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) 95 93 96 94 %.o: %.S | depend 97 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS)95 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) 98 96 99 97 %.o: %.c | depend -
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) -
kernel/arch/arm32/Makefile.inc
rd86393c8 r874ed210 35 35 # This is necessary to allow vmsr insn and fpexc manipulation 36 36 # Use vfp32 to allow context save/restore of d16-d31 regs. 37 AFLAGS += -mfloat-abi=hard -mfpu=vfp337 COMMON_CFLAGS += -mfloat-abi=hard 38 38 endif 39 39 -
kernel/arch/ia64/Makefile.inc
rd86393c8 r874ed210 30 30 COMMON_CFLAGS += -mconstant-gp -fno-unwind-tables -mfixed-range=f32-f127 31 31 32 AFLAGS += -mconstant-gp33 32 LDFLAGS += -Wl,-EL 34 33 -
kernel/arch/ppc32/Makefile.inc
rd86393c8 r874ed210 28 28 29 29 30 COMMON_CFLAGS += -mcpu=powerpc -msoft-float -m32 31 AFLAGS += -a32 30 COMMON_CFLAGS += -mcpu=powerpc -msoft-float -m32 -Wa,-a32 32 31 LDFLAGS += -Wl,-no-check-sections 33 32 -
uspace/Makefile.common
rd86393c8 r874ed210 109 109 START_FILES = $(LIBC_PREFIX)/crt0.o $(LIBC_PREFIX)/crt1.o 110 110 111 AFLAGS = --fatal-warnings112 111 LDFLAGS = -Wl,--fatal-warnings,--warn-common 113 112 … … 194 193 -Werror-implicit-function-declaration \ 195 194 -Wsystem-headers \ 196 -Wunknown-pragmas 195 -Wunknown-pragmas \ 196 -Wa,--fatal-warnings 197 197 198 198 # XXX: -fno-builtin-strftime is for a seemingly spurious format warning. … … 299 299 LIB_LDFLAGS = $(LDFLAGS) -shared -Wl,-soname,$(LSONAME) -Wl,--no-undefined,--no-allow-shlib-undefined 300 300 301 AS_CFLAGS := $(addprefix -Xassembler ,$(AFLAGS))302 303 301 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) 304 302 LOBJECTS := $(addsuffix .lo,$(basename $(SOURCES))) … … 386 384 387 385 %.o: %.S | depend 388 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) $(AS_CFLAGS)386 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) 389 387 390 388 %.o: %.s | depend 391 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) $(AS_CFLAGS)389 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) 392 390 393 391 %.o: %.c | depend … … 407 405 408 406 %.lo: %.S | depend 409 $(CC_JOB) -c -MD -MP $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) $(AS_CFLAGS)407 $(CC_JOB) -c -MD -MP $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) 410 408 411 409 %.lo: %.s | depend 412 $(CC_JOB) -c -MD -MP $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) $(AS_CFLAGS)410 $(CC_JOB) -c -MD -MP $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) 413 411 414 412 %.lo: %.c | depend -
uspace/lib/c/arch/ppc32/Makefile.common
rd86393c8 r874ed210 33 33 endif 34 34 35 COMMON_CFLAGS += -mcpu=powerpc -m$(FLOATS)-float -m32 -Wl,-z,max-page-size=0x1000 36 AFLAGS += -a32 37 LDFLAGS += -Wl,--gc-sections 35 COMMON_CFLAGS += -mcpu=powerpc -m$(FLOATS)-float -m32 -Wa,-a32 36 LDFLAGS += -Wl,--gc-sections -Wl,-z,max-page-size=0x1000 38 37 39 38 ENDIANESS = BE
Note:
See TracChangeset
for help on using the changeset viewer.