On 24.08.2021 12:50, Anthony PERARD wrote: > We need to differentiate between source files and generated/built > files. We will be replacing $(BASEDIR) by $(objtree) for files that > are generated, and $(abs_objtree) in cases where an absolute path is > necessary. > > The "clean" target is still changing to the subdir been cleaned, to > remove file in the root we need to use $(abs_objtree).
Vaguely related more general question: How useful is "clean" for an out-of-tree build? That ought to effectively remove the entire build tree, which may not be overly sensible to do via "make clean-xen", but instead simply "rm -rf ...". > @@ -117,4 +117,4 @@ $(obj)/dtb.o: $(patsubst "%",%,$(CONFIG_DTB_FILE)) > .PHONY: clean > clean:: > rm -f $(obj)/xen.lds > - rm -f $(BASEDIR)/.xen-syms.[0-9]* > + rm -f $(abs_objtree)/.xen-syms.[0-9]* This part is common - would it make sense to move to xen/Makefile, thus - aiui - eliminating the need for using $(abs_objtree) here / there? Jan