build: rework "clean" to clean from the root dir
authorAnthony PERARD <anthony.perard@citrix.com>
Fri, 25 Feb 2022 10:07:21 +0000 (11:07 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 25 Feb 2022 10:07:21 +0000 (11:07 +0100)
commit17f5c115210c7674437691f42cdfaf14164efbb6
tree91cf4765fb7ccc83e845048128fd4e835bdf4c96
parent42989ff5ca969c63810e29483e86a7779579481e
build: rework "clean" to clean from the root dir

This will allow "clean" to work from an out-of-tree build when
it will be available.

Some of the file been removed in current "clean" target aren't added
to $(clean-files) because they are already listed in $(extra-) or
$(extra-y).

Also start to clean files listed in $(targets). This allows to clean
"common/config_data.S" and "xsm/flask/flask-policy.S" without
having to list them a second time.

Also clean files in "arch/x86/boot" from that directory by allowing
"clean" to descend into the subdir by adding "boot" into $(subdir-).

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Daniel P. Smith <dpsmith@apertussolutions.com> # XSM
Acked-by: Julien Grall <jgrall@amazon.com>
xen/Makefile
xen/arch/arm/Makefile
xen/arch/x86/Makefile
xen/arch/x86/boot/Makefile
xen/common/Makefile
xen/include/Makefile
xen/scripts/Kbuild.include
xen/scripts/Makefile.clean
xen/test/livepatch/Makefile
xen/xsm/flask/Makefile