diff mbox series

Makefile: Remove Module.symvers when make clean

Message ID 1608606010-7412-1-git-send-email-yangtiezhu@loongson.cn (mailing list archive)
State New, archived
Headers show
Series Makefile: Remove Module.symvers when make clean | expand

Commit Message

Tiezhu Yang Dec. 22, 2020, 3 a.m. UTC
Module.symvers still exists when make clean, remove it.

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Masahiro Yamada Dec. 22, 2020, 3:46 a.m. UTC | #1
On Tue, Dec 22, 2020 at 12:00 PM Tiezhu Yang <yangtiezhu@loongson.cn> wrote:
>
> Module.symvers still exists when make clean, remove it.
>
> Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>


NACK.

Module.symver is removed by "make mrproper"
since it is needed for building external modules.



> ---
>  Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Makefile b/Makefile
> index e30cf02..8235bb7 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1468,7 +1468,7 @@ endif # CONFIG_MODULES
>
>  # Directories & files removed with 'make clean'
>  CLEAN_FILES += include/ksym vmlinux.symvers \
> -              modules.builtin modules.builtin.modinfo modules.nsdeps \
> +              modules.builtin modules.builtin.modinfo modules.nsdeps Module.symvers\
>                compile_commands.json
>
>  # Directories & files removed with 'make mrproper'
> --
> 2.1.0
>
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index e30cf02..8235bb7 100644
--- a/Makefile
+++ b/Makefile
@@ -1468,7 +1468,7 @@  endif # CONFIG_MODULES
 
 # Directories & files removed with 'make clean'
 CLEAN_FILES += include/ksym vmlinux.symvers \
-	       modules.builtin modules.builtin.modinfo modules.nsdeps \
+	       modules.builtin modules.builtin.modinfo modules.nsdeps Module.symvers\
 	       compile_commands.json
 
 # Directories & files removed with 'make mrproper'