x86/boot: fix reloc.S build dependencies

reloc.S is not rebuild if header included
in reloc.c is updated. Fix this issue.

Additionally, remove reloc.S build dependency
on head.S because anything from reloc.S does
not depend on head.S.

Add reloc.c dependency to reloc.o build rule for consistency.

Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Daniel Kiper authored and Jan Beulich committed 2014-10-23 10:21:13 +02:00
1 parent 9d361be3cc
commit c42070df66
2 files changed
+6 -5

No files matched your search

+4 -4
View File
@@ -1,8 +1,8 @@
obj-bin-y += head.o
RELOC_DEPS = $(BASEDIR)/include/asm-x86/config.h $(BASEDIR)/include/xen/multiboot.h
head.o: reloc.S
%.S: %.c
$(MAKE) -f build32.mk $@
reloc.S: head.S
reloc.S: reloc.c $(RELOC_DEPS)
$(MAKE) -f build32.mk $@ RELOC_DEPS="$(RELOC_DEPS)"
+2 -1
View File
@@ -30,5 +30,6 @@ CFLAGS := $(filter-out -flto,$(CFLAGS))
esac; \
done
reloc.o: $(BASEDIR)/include/asm-x86/config.h
reloc.o: reloc.c $(RELOC_DEPS)
.PRECIOUS: %.bin %.lnk
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.