Hi Julien, Stefano, This patch has some changes to the Arm makefiles. Could you have a quick look or ack the changes?
They are some other patches in the series which might want a Arm ack: - 20/30 build: rework "clean" to clean from the root dir - 24/30 build: grab common EFI source files in arch specific dir - 25/30 build: replace $(BASEDIR) by $(objtree) Cheers. On Tue, Jan 25, 2022 at 11:00:37AM +0000, Anthony PERARD wrote: > This is to avoid arch/$arch/Makefile having to recurse into parents > directories. > > This avoid duplication of the logic to build prelink.o between arches. > > In order to do that, we cut the $(TARGET) target in the main Makefile in > two, there is a "prepare" phase/target runned before starting to build > "prelink.o" which will prepare "include/" among other things, then all > the $(ALL_OBJS) will be generated in order to build "prelink.o" and > finally $(TARGET) will be generated by calling into "arch/*/" to make > $(TARGET). > > Now we don't need to prefix $(ALL_OBJS) with $(BASEDIR) as it is now > only used from the main Makefile. Other changes is to use "$<" instead > of spelling "prelink.o" in the target "$(TARGET)" in both > arch/*/Makefile. > > Beside "prelink.o" been at a different location, no other functional > change intended. > > Signed-off-by: Anthony PERARD <anthony.per...@citrix.com> > --- > > xen/Makefile | 12 +++++++++++- > xen/Rules.mk | 13 ------------- > xen/arch/arm/Makefile | 31 ++++--------------------------- > xen/arch/arm/Rules.mk | 4 ++++ > xen/arch/arm/arch.mk | 2 ++ > xen/arch/x86/Makefile | 29 ++++++----------------------- > xen/arch/x86/arch.mk | 2 ++ > xen/build.mk | 18 ++++++++++++++++++ > 8 files changed, 47 insertions(+), 64 deletions(-) -- Anthony PERARD