Changeset f9d0a86 in mainline for boot/Makefile.build


Ignore:
Timestamp:
2017-11-14T12:24:42Z (6 years ago)
Author:
Aearsis <Hlavaty.Ondrej@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6cad776
Parents:
887c9de (diff), d2d142a (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.
git-author:
Aearsis <Hlavaty.Ondrej@…> (2017-11-14 01:04:19)
git-committer:
Aearsis <Hlavaty.Ondrej@…> (2017-11-14 12:24:42)
Message:

Merge tag '0.7.1'

The merge wasn't clean, because of changes in build system. The most
significant change was partial revert of usbhc callback refactoring,
which now does not take usb transfer batch, but few named fields again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/Makefile.build

    r887c9de rf9d0a86  
    3131include Makefile.common
    3232
    33 INCLUDES = -Igeneric/include -I$(ROOT_PATH)/abi/include
     33INCLUDES = -Igeneric/include -Iarch/$(KARCH)/include -Igenarch/include -I$(ROOT_PATH)/abi/include
    3434OPTIMIZATION = 3
    3535
    3636DEFS = -DBOOT -DRELEASE=$(RELEASE) "-DCOPYRIGHT=$(COPYRIGHT)" "-DNAME=$(NAME)" -D__$(BITS)_BITS__ -D__$(ENDIANESS)__
    3737
    38 AFLAGS =
    39 LFLAGS = --fatal-warnings
    40 
    41 # FIXME: This condition is a workaround for issue #693.
    42 ifneq ($(BARCH),mips32)
    43         AFLAGS += --fatal-warnings
    44 endif
     38AFLAGS = --fatal-warnings
     39LFLAGS = --fatal-warnings --warn-common
    4540
    4641COMMON_CFLAGS = $(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
    4742        -ffreestanding -fno-builtin -nostdlib -nostdinc \
    48         -fexec-charset=UTF-8 -finput-charset=UTF-8
     43        -fexec-charset=UTF-8 -finput-charset=UTF-8 -fno-common \
     44        -fdebug-prefix-map=$(realpath $(ROOT_PATH))=.
    4945
    5046GCC_CFLAGS = -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \
     
    7672
    7773clean:
    78         rm -f $(RAW) $(MAP) $(ARCH_INCLUDE) $(GENARCH_INCLUDE)
     74        rm -f $(RAW) $(MAP)
    7975
    8076-include $(DEPENDS)
     
    9187        $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -D__LINKER__ -E -x c $(LINK).in | grep -v "^\#" > $(LINK)
    9288
     89%.o: %.s | depend
     90        $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS) -D__ASM__
     91
    9392%.o: %.S | depend
    94         $(CC) -MD $(DEFS) $(CFLAGS) $(AS_CFLAGS) -D__ASM__ -c $< -o $@
    95 ifeq ($(PRECHECK),y)
    96         $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__
    97 endif
     93        $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS) -D__ASM__
    9894
    9995%.o: %.c | depend
    100         $(CC) -MD $(DEFS) $(CFLAGS) -c $< -o $@
    101 ifeq ($(PRECHECK),y)
    102         $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
    103 endif
     96        $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS)
    10497
    105 %.o: %.s | depend
    106         $(CC) -MD $(DEFS) $(CFLAGS) $(AS_CFLAGS) -D__ASM__ -c $< -o $@
    107 ifeq ($(PRECHECK),y)
    108         $(JOBFILE) $(JOB) $< $@ as asm
    109 endif
    110 
    111 depend: $(ARCH_INCLUDE) $(GENARCH_INCLUDE) $(COMMON_HEADER_ARCH) $(PRE_DEPEND)
     98depend: $(PRE_DEPEND)
    11299
    113100$(COMPS).s: $(COMPS).zip
     
    128115include Makefile.initrd
    129116
    130 $(ARCH_INCLUDE): arch/$(KARCH)/include/
    131         ln -sfn ../../$< $@
    132 
    133 $(GENARCH_INCLUDE): genarch/include/
    134         ln -sfn ../../$< $@
    135 
    136 $(COMMON_HEADER_ARCH): $(COMMON_HEADER)
    137         ln -sfn ../../../$< $@
Note: See TracChangeset for help on using the changeset viewer.