> From: Anthony PERARD <anthony.per...@citrix.com> > Sent: Tuesday, January 25, 2022 11:00 AM > To: xen-devel@lists.xenproject.org <xen-devel@lists.xenproject.org> > Cc: Anthony Perard <anthony.per...@citrix.com>; Jan Beulich > <jbeul...@suse.com>; Andrew Cooper <andrew.coop...@citrix.com>; George Dunlap > <george.dun...@citrix.com>; Julien Grall <jul...@xen.org>; Stefano Stabellini > <sstabell...@kernel.org>; Wei Liu <w...@xen.org>; Konrad Rzeszutek Wilk > <konrad.w...@oracle.com>; Ross Lagerwall <ross.lagerw...@citrix.com> > Subject: [XEN PATCH v9 06/30] build: rework test/livepatch/Makefile > > This rework the livepatch/Makefile to make it less repetitive and make > use of the facilities. All the targets to be built are now listed in > $(extra-y) which will allow Rules.mk to build them without the need of > a local target in a future patch. > > There are some changes/fixes in this patch: > - when "xen-syms" is used for a target, it is added to the dependency > list of the target, which allow to rebuild the target when xen-syms > changes. But if "xen-syms" is missing, make simply fails. > - modinfo.o wasn't removing it's $@.bin file like the other targets, > this is now done. > - The command to build *.livepatch targets as been fixed to use > $(XEN_LDFLAGS) rather than just $(LDFLAGS) which is a fallout from > 2740d96efdd3 ("xen/build: have the root Makefile generates the > CFLAGS") > > make will findout the dependencies of the *.livepatch files and thus > what to built by "looking" at the objects listed in the *-objs > variables. The actual dependencies is generated by the new > "multi-depend" macro. > > "$(targets)" needs to be updated with the objects listed in the > different *-objs variables to allow make to load the .*.cmd dependency > files. > > This patch copies the macro "multi_depend" from Linux 5.12, and rename > it to "multi-depend". > > Signed-off-by: Anthony PERARD <anthony.per...@citrix.com> > Acked-by: Jan Beulich <jbeul...@suse.com> > --- >
Acked-by: Ross Lagerwall <ross.lagerw...@citrix.com>