On 26/02/2026 4:28 pm, Jan Beulich wrote: > --- a/xen/arch/arm/Makefile > +++ b/xen/arch/arm/Makefile > @@ -15,7 +15,9 @@ obj-$(CONFIG_HAS_ALTERNATIVE) += alterna > obj-y += cpuerrata.o > obj-y += cpufeature.o > obj-y += decode.o > -obj-y += device.o > +device-y := device.init.o > +device-$(CONFIG_OVERLAY_DTB) := device.o > +obj-y += $(device-y)
I know we've argued over this before and not come to a conclusion, but I still firmly believe this to be an anti-pattern we should expunge. obj-y += $(if $(CONFIG_OVERLAY_DTB),device.o,device.init.o) conveys the meaning more clearly and succinctly. ~Andrew
