]> xenbits.xensource.com Git - xen.git/commitdiff
build: fix dependencies in arch/x86/boot
authorAnthony PERARD <anthony.perard@citrix.com>
Fri, 19 Nov 2021 08:36:36 +0000 (09:36 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 19 Nov 2021 08:36:36 +0000 (09:36 +0100)
Temporary fix the list of headers that cmdline.c and reloc.c depends
on, until the next time the list is out of sync again.

Also, add the linker script to the list.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: 2f5f0a1b77161993c16c4cc243467d75e5b7633b
master date: 2021-10-14 12:35:42 +0200

xen/arch/x86/boot/Makefile
xen/arch/x86/boot/build32.mk

index 9b31bfcbfb8a5fa2242264b74fb2c8abf15ef61d..d2eb277d428f1796c37e3eb615ea04a5839aad34 100644 (file)
@@ -2,19 +2,22 @@ obj-bin-y += head.o
 
 DEFS_H_DEPS = defs.h $(BASEDIR)/include/xen/stdbool.h
 
-CMDLINE_DEPS = $(DEFS_H_DEPS) video.h
+CMDLINE_DEPS = $(DEFS_H_DEPS) video.h \
+              $(BASEDIR)/include/xen/kconfig.h \
+              $(BASEDIR)/include/generated/autoconf.h
 
 RELOC_DEPS = $(DEFS_H_DEPS) \
             $(BASEDIR)/include/generated/autoconf.h \
             $(BASEDIR)/include/xen/kconfig.h \
             $(BASEDIR)/include/xen/multiboot.h \
             $(BASEDIR)/include/xen/multiboot2.h \
+            $(BASEDIR)/include/xen/const.h \
             $(BASEDIR)/include/public/arch-x86/hvm/start_info.h
 
 head.o: cmdline.S reloc.S
 
-cmdline.S: cmdline.c $(CMDLINE_DEPS)
+cmdline.S: cmdline.c $(CMDLINE_DEPS) build32.lds
        $(MAKE) -f build32.mk $@ CMDLINE_DEPS="$(CMDLINE_DEPS)"
 
-reloc.S: reloc.c $(RELOC_DEPS)
+reloc.S: reloc.c $(RELOC_DEPS) build32.lds
        $(MAKE) -f build32.mk $@ RELOC_DEPS="$(RELOC_DEPS)"
index 8cd5403926a3a896d8b72e29afdc055d40f13123..e90680cd9f5269767807c3886f7db980d2fab1f3 100644 (file)
@@ -27,7 +27,7 @@ CFLAGS := $(filter-out -flto,$(CFLAGS))
                done
        $(OBJCOPY) -O binary -R .got.plt $< $@
 
-%.lnk: %.o
+%.lnk: %.o build32.lds
        $(LD) $(LDFLAGS_DIRECT) -N -T build32.lds -o $@ $<
 
 %.o: %.c