Changes in boot/Makefile.build [874ed210:3bf8a75] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/Makefile.build

    r874ed210 r3bf8a75  
    3636DEFS = -DBOOT -DRELEASE=$(RELEASE) "-DCOPYRIGHT=$(COPYRIGHT)" "-DNAME=$(NAME)" -D__$(BITS)_BITS__ -D__$(ENDIANESS)__
    3737
    38 LDFLAGS = -Wl,--fatal-warnings,--warn-common $(EXTRA_LDFLAGS)
     38AFLAGS = --fatal-warnings
     39LDFLAGS = -Wl,--fatal-warnings,--warn-common
    3940
    4041COMMON_CFLAGS = $(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
    4142        -ffreestanding -nostdlib \
    4243        -fexec-charset=UTF-8 -finput-charset=UTF-8 -fno-common \
    43         -fdebug-prefix-map=$(realpath $(ROOT_PATH))=. \
    44         -Wa,--fatal-warnings
     44        -fdebug-prefix-map=$(realpath $(ROOT_PATH))=.
    4545
    4646GCC_CFLAGS = -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \
     
    8080-include $(DEPENDS)
    8181
     82AS_CFLAGS := $(addprefix -Xassembler ,$(AFLAGS))
     83
    8284$(BOOT_OUTPUT): $(RAW)
    8385        $(OBJCOPY) -O $(BFD_OUTPUT) $< $@
     
    9092
    9193%.o: %.s | depend
    92         $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS)
     94        $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS)
    9395
    9496%.o: %.S | depend
    95         $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS)
     97        $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS)
    9698
    9799%.o: %.c | depend
Note: See TracChangeset for help on using the changeset viewer.