From: Jan Beulich Date: Tue, 26 Jan 2021 13:42:23 +0000 (+0100) Subject: xen/include: compat/xlat.h may change with .config changes X-Git-Tag: archive/raspbian/4.16.0+51-g0941d6cb-1+rpi1~2^2~42^2~1033 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c7b0f25e8f86373ed54e1c446f8e67ce25ac6819;p=xen.git xen/include: compat/xlat.h may change with .config changes $(xlat-y) getting derived from $(headers-y) means its contents may change with changes to .config. The individual files $(xlat-y) refers to, otoh, may not change, and hence not trigger rebuilding of xlat.h. (Note that the issue was already present before the commit referred to below, but it was far more limited in affecting only changes to CONFIG_XSM_FLASK.) Fixes: 2c8fabb2232d ("x86: only generate compat headers actually needed") Signed-off-by: Jan Beulich Acked-by: Andrew Cooper --- diff --git a/xen/include/Makefile b/xen/include/Makefile index 75e982a316..c8ca97eed0 100644 --- a/xen/include/Makefile +++ b/xen/include/Makefile @@ -81,7 +81,7 @@ compat/.xlat/%.lst: xlat.lst Makefile xlat-y := $(shell sed -ne 's,@arch@,$(compat-arch-y),g' -re 's,^[?!][[:blank:]]+[^[:blank:]]+[[:blank:]]+,,p' xlat.lst | uniq) xlat-y := $(filter $(patsubst compat/%,%,$(headers-y)),$(xlat-y)) -compat/xlat.h: $(addprefix compat/.xlat/,$(xlat-y)) Makefile +compat/xlat.h: $(addprefix compat/.xlat/,$(xlat-y)) config/auto.conf Makefile cat $(filter %.h,$^) >$@.new mv -f $@.new $@