Changeset 98975a8 in mainline for boot/Makefile.build
- Timestamp:
- 2019-08-17T12:49:43Z (5 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/Makefile.build
r643640a r98975a8 31 31 include Makefile.common 32 32 33 INCLUDES = -Igeneric/include -Iarch/$(KARCH)/include -Igenarch/include -I$(ROOT_PATH)/abi/arch/$(KARCH)/include -I$(ROOT_PATH)/abi/include34 OPTIMIZATION = 335 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-warnings45 46 GCC_CFLAGS = -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \47 -std=gnu99 -Werror-implicit-function-declaration -Wwrite-strings \48 -pipe49 50 CLANG_CFLAGS = -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \51 -Werror-implicit-function-declaration -Wwrite-strings \52 -pipe -fno-stack-protector -fno-PIC53 54 ifeq ($(CONFIG_DEBUG),y)55 COMMON_CFLAGS += -Werror56 endif57 58 ifeq ($(CONFIG_LINE_DEBUG),y)59 COMMON_CFLAGS += -g60 endif61 62 ifeq ($(COMPILER),clang)63 CFLAGS = $(COMMON_CFLAGS) $(CLANG_CFLAGS) $(EXTRA_CFLAGS)64 else65 CFLAGS = $(COMMON_CFLAGS) $(GCC_CFLAGS) $(EXTRA_CFLAGS)66 endif67 68 OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))69 DEPENDS := $(addsuffix .d,$(basename $(SOURCES)))70 71 33 ifeq ($(CONFIG_COMPRESSED_INIT),y) 72 34 COMPONENTS := $(addsuffix .gz, $(COMPONENTS)) … … 80 42 -include $(DEPENDS) 81 43 82 $(BOOT_OUTPUT): $(RAW) 83 $(OBJCOPY) -O $(BFD_OUTPUT) $< $@ 44 depend: $(PRE_DEPEND) 84 45 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 $< $@ 101 48 102 49 %.gz: % 103 50 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 $@ $^107 51 108 52 $(COMPS).o: $(COMPS).tar
Note:
See TracChangeset
for help on using the changeset viewer.