build: prepare to always invoke $(MAKE) from xen/, use $(obj)
authorAnthony PERARD <anthony.perard@citrix.com>
Fri, 18 Feb 2022 07:58:01 +0000 (08:58 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 18 Feb 2022 07:58:01 +0000 (08:58 +0100)
commit14b9b35b4ea35835309d4a0d5a59cc3cbd7fdb82
tree10bb612eab0fd1d0249ad90c8857e3af16de57fb
parent8fd1aeb8f486523af218632b19cac7519d923f45
build: prepare to always invoke $(MAKE) from xen/, use $(obj)

In a future patch, when building a subdirectory, we will set
"obj=$subdir" rather than change directory.

Before that, we add "$(obj)" and "$(src)" in as many places as
possible where we will need to know which subdirectory is been built.
"$(obj)" is for files been generated during the build, and "$(src)" is
for files present in the source tree.

For now, we set both to "." in Rules.mk and Makefile.clean.

A few places don't tolerate the addition of "./", this is because make
remove the leading "./" in targets and dependencies in rules, so these
will be change later.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Daniel P. Smith <dpsmith@apertussolutions.com> # XSM
12 files changed:
xen/Rules.mk
xen/arch/arm/Makefile
xen/arch/x86/Makefile
xen/arch/x86/boot/Makefile
xen/arch/x86/efi/Makefile
xen/common/Makefile
xen/common/libelf/Makefile
xen/common/libfdt/Makefile
xen/include/Makefile
xen/scripts/Makefile.clean
xen/xsm/flask/Makefile
xen/xsm/flask/policy/mkaccess_vector.sh