Lines Matching +full:git +full:- +full:submodule

1 all: build-all
5 include config-host.mak
6 CFLAGS = -O2 -g -I $(SRC_PATH)/../../include/hw/s390x/ipl
8 MAKEFLAGS += -rR
16 quiet-@ = $(if $(V),,@$(if $1,printf "%s\n" "$(TARGET_PREFIX)$1" && ))
17 quiet-command = $(call quiet-@,$2 $@)$1
20 set-vpath = $(if $1,$(foreach PATTERN,$(VPATH_SUFFIXES),$(eval vpath $(PATTERN) $1)))
21 $(call set-vpath, $(SRC_PATH))
24 QEMU_DGFLAGS = -MMD -MP -MT $@ -MF $(@D)/$(*F).d
27 $(call quiet-command,$(CC) $(EXTRA_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) \
28 -c -o $@ $<,Compiling)
31 $(call quiet-command,$(CCAS) $(EXTRA_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) \
32 -c -o $@ $<,Assembling)
34 .PHONY : all clean build-all distclean
37 virtio.o virtio-net.o virtio-scsi.o virtio-blkdev.o cio.o dasd-ipl.o
41 LIBC_INC := -nostdinc -I$(SLOF_DIR)/lib/libc/include
42 LIBNET_INC := -I$(SLOF_DIR)/lib/libnet
44 EXTRA_CFLAGS += -Wall
45 EXTRA_CFLAGS += -ffreestanding -fno-delete-null-pointer-checks -fno-common -fPIE
46 EXTRA_CFLAGS += -fwrapv -fno-strict-aliasing -fno-asynchronous-unwind-tables
47 EXTRA_CFLAGS += -msoft-float
48 EXTRA_CFLAGS += -std=gnu99
50 EXTRA_LDFLAGS += -Wl,-pie -nostdlib -z noexecstack -z text
52 cc-test = $(CC) -Werror $1 -c -o /dev/null -xc /dev/null >/dev/null 2>/dev/null
53 cc-option = if $(call cc-test, $1); then \
57 config-cc.mak: Makefile
58 $(quiet-@)($(call cc-option,-Wno-stringop-overflow); \
59 $(call cc-option,-fno-stack-protector); \
60 $(call cc-option,-Wno-array-bounds); \
61 $(call cc-option,-Wno-gnu); \
62 $(call cc-option,-march=z900,-march=z10)) 3> config-cc.mak
63 -include config-cc.mak
68 -MMD -MP -MT $@ -MF $(@:%.o=%.d)
72 $(call quiet-command,$(CC) $(LIBC_CFLAGS) -c -o $@ $<,Compiling)
78 $(call quiet-command,$(CC) $(LIBC_CFLAGS) -c -o $@ $<,Compiling)
82 $(call quiet-command,$(CC) $(LIBC_CFLAGS) -c -o $@ $<,Compiling)
87 $(call quiet-command,$(CC) $(LIBC_CFLAGS) -c -o $@ $<,Compiling)
90 $(call quiet-command,$(CC) $(LIBC_CFLAGS) -c -o $@ $<,Compiling)
95 $(call quiet-command,$(AR) -rc $@ $^,Creating static library)
102 -DDHCPARCH=0x1F -MMD -MP -MT $@ -MF $(@:%.o=%.d)
105 $(call quiet-command,$(CC) $(LIBNETCFLAGS) -c -o $@ $<,Compiling)
108 $(call quiet-command,$(AR) -rc $@ $^,Creating static library)
112 build-all: s390-ccw.img
114 s390-ccw.elf: $(OBJECTS) libnet.a libc.a
115 $(call quiet-command,$(CC) $(EXTRA_LDFLAGS) $(LDFLAGS) -o $@ $^,Linking)
117 s390-ccw.img: s390-ccw.elf
118 $(call quiet-command,$(STRIP) --strip-unneeded $< -o $@,Stripping $< into)
123 -include $(ALL_OBJS:%.o=%.d)
126 rm -f *.o *.d *.img *.elf *~ *.a
129 rm -f config-cc.mak
131 .PHONY: git-submodule-update
132 $(SRC_PATH)/../../.git-submodule-status: git-submodule-update config-host.mak
133 Makefile: $(SRC_PATH)/../../.git-submodule-status
135 git-submodule-update:
137 …$(quiet-@)GIT=git "$(SRC_PATH)/../../scripts/git-submodule.sh" $(GIT_SUBMODULES_ACTION) $(GIT_SUBM…