x86: fix efi.lds dependency generation
authorWei Liu <wei.liu2@citrix.com>
Fri, 16 Nov 2018 18:58:55 +0000 (18:58 +0000)
committerWei Liu <wei.liu2@citrix.com>
Mon, 19 Nov 2018 11:09:51 +0000 (11:09 +0000)
commit30311d2e82a3eb69aa1667382a6b2529f6d944c4
tree5b265b72421491a536dcbae0f7fa64e6d501673a
parente9c4574d8156b537067d47bc4362cde7174cc3d7
x86: fix efi.lds dependency generation

RANDCONFIG builds discover efi.lds is not updated when autogenerated
headers are updated.

Upon inspection, the generated .d file contains xen.lds.o as target,
not the once thought efi.lds.o. That's because gcc disregards the
output object name specified by -o when generating dependency, so the
sed invocation has no effect.

Arguably that's a bug in gcc, which can be fixed at some point, so we
make the sed rune work with *.lds. At the same time replace the
hardcoded sed rune for xen.lds with the new one.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/Makefile