]> xenbits.xensource.com Git - livepatch-build-tools.git/commit
livepatch: use basename to perform object file matching
authorRoger Pau Monne <roger.pau@citrix.com>
Thu, 10 Mar 2022 15:08:32 +0000 (16:08 +0100)
committerRoss Lagerwall <ross.lagerwall@citrix.com>
Tue, 7 Feb 2023 11:55:17 +0000 (11:55 +0000)
commit8d18ae5ae75bc756efe3354412b5bdbe6dfa6573
tree277c31deb7f6b3a6b6aa620eb13382817eeedff0
parentbd68c35a5bf4cac067e95b818ce03b8972a936f4
livepatch: use basename to perform object file matching

The changes in the Xen build logic has resulted in the compiler and
objcopy being called from xen/ instead of relative to each object
directory. This requires using basename so that the directory is not
taken into account when checking against the list of files to be
explicitly ignored.

Also adjust the paths used to store the differing object files, as
with the current logic the resulting path will be wrong when using
newer Xen versions, changed_objs would end containing entries like:

xen/arch/x86/hvm/vmx/arch/x86/hvm/vmx/vmx.o

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Bjoern Doebel <doebel@amazon.de>
Reviewed-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
livepatch-gcc