[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XEN PATCH v9 20/30] build: rework "clean" to clean from the root dir
On 1/25/22 06:00, Anthony PERARD wrote: > 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@xxxxxxxxxx> > Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx> > --- > > Notes: > v9: > - reviewed > > v8: > - fix comment for the shorthand > - move this patch earlier in the series > - replace some BASEDIR by objtree > - start to clean $(targets) files. > > xen/Makefile | 24 ++++++++++++------------ > xen/arch/arm/Makefile | 5 +---- > xen/arch/x86/Makefile | 20 ++++++++++++-------- > xen/arch/x86/boot/Makefile | 2 ++ > xen/common/Makefile | 3 +-- > xen/include/Makefile | 4 +--- > xen/scripts/Kbuild.include | 4 ++-- > xen/scripts/Makefile.clean | 14 +++++++++++--- > xen/test/livepatch/Makefile | 4 +--- > xen/xsm/flask/Makefile | 4 +--- > 10 files changed, 44 insertions(+), 40 deletions(-) > <snip/> > diff --git a/xen/xsm/flask/Makefile b/xen/xsm/flask/Makefile > index 832f65274cc0..4ac6fb8778ae 100644 > --- a/xen/xsm/flask/Makefile > +++ b/xen/xsm/flask/Makefile > @@ -49,6 +49,4 @@ $(obj)/policy.bin: FORCE > FLASK_BUILD_DIR=$(FLASK_BUILD_DIR) POLICY_FILENAME=$(POLICY_SRC) > cmp -s $(POLICY_SRC) $@ || cp $(POLICY_SRC) $@ > > -.PHONY: clean > -clean:: > - rm -f $(ALL_H_FILES) policy.* $(POLICY_SRC) flask-policy.S > +clean-files := policy.* $(POLICY_SRC) Reviewed-by: Daniel P. Smith <dpsmith@xxxxxxxxxxxxxxxxxxxx> V/r, Daniel P. Smith Apertus Solutions, LLC
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |