Changeset 98975a8 in mainline for boot/Makefile.build


Ignore:
Timestamp:
2019-08-17T12:49:43Z (5 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5b586b9
Parents:
643640a
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-28 16:06:30)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-17 12:49:43)
Message:

arm32/integratorcp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/Makefile.build

    r643640a r98975a8  
    3131include Makefile.common
    3232
    33 INCLUDES = -Igeneric/include -Iarch/$(KARCH)/include -Igenarch/include -I$(ROOT_PATH)/abi/arch/$(KARCH)/include -I$(ROOT_PATH)/abi/include
    34 OPTIMIZATION = 3
    35 
    36 DEFS = -DBOOT -DRELEASE=$(RELEASE) "-DCOPYRIGHT=$(COPYRIGHT)" "-DNAME=$(NAME)" -D__$(BITS)_BITS__ -D__$(ENDIANESS)__
    37 
    38 LDFLAGS = -Wl,--fatal-warnings,--warn-common $(EXTRA_LDFLAGS)
    39 
    40 COMMON_CFLAGS = $(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
    41         -ffreestanding -nostdlib \
    42         -fexec-charset=UTF-8 -finput-charset=UTF-8 -fno-common \
    43         -fdebug-prefix-map=$(realpath $(ROOT_PATH))=. \
    44         -Wa,--fatal-warnings
    45 
    46 GCC_CFLAGS = -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \
    47         -std=gnu99 -Werror-implicit-function-declaration -Wwrite-strings \
    48         -pipe
    49 
    50 CLANG_CFLAGS = -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \
    51         -Werror-implicit-function-declaration -Wwrite-strings \
    52         -pipe  -fno-stack-protector -fno-PIC
    53 
    54 ifeq ($(CONFIG_DEBUG),y)
    55         COMMON_CFLAGS += -Werror
    56 endif
    57 
    58 ifeq ($(CONFIG_LINE_DEBUG),y)
    59         COMMON_CFLAGS += -g
    60 endif
    61 
    62 ifeq ($(COMPILER),clang)
    63         CFLAGS = $(COMMON_CFLAGS) $(CLANG_CFLAGS) $(EXTRA_CFLAGS)
    64 else
    65         CFLAGS = $(COMMON_CFLAGS) $(GCC_CFLAGS) $(EXTRA_CFLAGS)
    66 endif
    67 
    68 OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
    69 DEPENDS := $(addsuffix .d,$(basename $(SOURCES)))
    70 
    7133ifeq ($(CONFIG_COMPRESSED_INIT),y)
    7234        COMPONENTS := $(addsuffix .gz, $(COMPONENTS))
     
    8042-include $(DEPENDS)
    8143
    82 $(BOOT_OUTPUT): $(RAW)
    83         $(OBJCOPY) -O $(BFD_OUTPUT) $< $@
     44depend: $(PRE_DEPEND)
    8445
    85 $(RAW): $(OBJECTS) $(LINK)
    86         $(CC) $(CFLAGS) -Wl,-n $(LDFLAGS) -T $(LINK) -Wl,-M,-Map,$(MAP) -o $@ $(OBJECTS)
    87 
    88 $(LINK): | depend
    89         $(CC) $(DEFS) $(CFLAGS) -D__ASSEMBLER__ -D__LINKER__ -E -x c $(LINK).in | grep -v "^\#" > $(LINK)
    90 
    91 %.o: %.s | depend
    92         $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS)
    93 
    94 %.o: %.S | depend
    95         $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS)
    96 
    97 %.o: %.c | depend
    98         $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS)
    99 
    100 depend: $(PRE_DEPEND)
     46../image.boot: ../build/dist/boot/image.boot
     47        cp $< $@
    10148
    10249%.gz: %
    10350        gzip -n -k -9 -f $<
    104 
    105 $(COMPS).tar: $(COMPONENTS)
    106         tar --mtime='2032-01-01 00:00:00' --group=0 --owner=0 --no-acls --no-selinux --no-xattrs --format=ustar --transform 's/.*\///g' -cvf $@ $^
    10751
    10852$(COMPS).o: $(COMPS).tar
Note: See TracChangeset for help on using the changeset viewer.