diff mbox series

security: remove unneeded subdir-$(CONFIG_...)

Message ID 20210528180140.176257-1-masahiroy@kernel.org (mailing list archive)
State Not Applicable
Headers show
Series security: remove unneeded subdir-$(CONFIG_...) | expand

Checks

Context Check Description
netdev/tree_selection success Not a local patch

Commit Message

Masahiro Yamada May 28, 2021, 6:01 p.m. UTC
All of these are unneeded. The directories to descend are specified
by obj-$(CONFIG_...).

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---

 security/Makefile | 11 -----------
 1 file changed, 11 deletions(-)

Comments

Masahiro Yamada July 31, 2021, 6:02 a.m. UTC | #1
On Sat, May 29, 2021 at 3:02 AM Masahiro Yamada <masahiroy@kernel.org> wrote:
>
> All of these are unneeded. The directories to descend are specified
> by obj-$(CONFIG_...).
>
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>


Ping?




> ---
>
>  security/Makefile | 11 -----------
>  1 file changed, 11 deletions(-)
>
> diff --git a/security/Makefile b/security/Makefile
> index 47e432900e24..18121f8f85cd 100644
> --- a/security/Makefile
> +++ b/security/Makefile
> @@ -4,16 +4,6 @@
>  #
>
>  obj-$(CONFIG_KEYS)                     += keys/
> -subdir-$(CONFIG_SECURITY_SELINUX)      += selinux
> -subdir-$(CONFIG_SECURITY_SMACK)                += smack
> -subdir-$(CONFIG_SECURITY_TOMOYO)        += tomoyo
> -subdir-$(CONFIG_SECURITY_APPARMOR)     += apparmor
> -subdir-$(CONFIG_SECURITY_YAMA)         += yama
> -subdir-$(CONFIG_SECURITY_LOADPIN)      += loadpin
> -subdir-$(CONFIG_SECURITY_SAFESETID)    += safesetid
> -subdir-$(CONFIG_SECURITY_LOCKDOWN_LSM) += lockdown
> -subdir-$(CONFIG_BPF_LSM)               += bpf
> -subdir-$(CONFIG_SECURITY_LANDLOCK)     += landlock
>
>  # always enable default capabilities
>  obj-y                                  += commoncap.o
> @@ -36,5 +26,4 @@ obj-$(CONFIG_BPF_LSM)                 += bpf/
>  obj-$(CONFIG_SECURITY_LANDLOCK)                += landlock/
>
>  # Object integrity file lists
> -subdir-$(CONFIG_INTEGRITY)             += integrity
>  obj-$(CONFIG_INTEGRITY)                        += integrity/
> --
> 2.27.0
>
Masahiro Yamada Aug. 24, 2021, 9:27 a.m. UTC | #2
On Sat, Jul 31, 2021 at 3:02 PM Masahiro Yamada <masahiroy@kernel.org> wrote:
>
> On Sat, May 29, 2021 at 3:02 AM Masahiro Yamada <masahiroy@kernel.org> wrote:
> >
> > All of these are unneeded. The directories to descend are specified
> > by obj-$(CONFIG_...).
> >
> > Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
>
>
> Ping?
>



Applied to linux-kbuild.




>
>
> > ---
> >
> >  security/Makefile | 11 -----------
> >  1 file changed, 11 deletions(-)
> >
> > diff --git a/security/Makefile b/security/Makefile
> > index 47e432900e24..18121f8f85cd 100644
> > --- a/security/Makefile
> > +++ b/security/Makefile
> > @@ -4,16 +4,6 @@
> >  #
> >
> >  obj-$(CONFIG_KEYS)                     += keys/
> > -subdir-$(CONFIG_SECURITY_SELINUX)      += selinux
> > -subdir-$(CONFIG_SECURITY_SMACK)                += smack
> > -subdir-$(CONFIG_SECURITY_TOMOYO)        += tomoyo
> > -subdir-$(CONFIG_SECURITY_APPARMOR)     += apparmor
> > -subdir-$(CONFIG_SECURITY_YAMA)         += yama
> > -subdir-$(CONFIG_SECURITY_LOADPIN)      += loadpin
> > -subdir-$(CONFIG_SECURITY_SAFESETID)    += safesetid
> > -subdir-$(CONFIG_SECURITY_LOCKDOWN_LSM) += lockdown
> > -subdir-$(CONFIG_BPF_LSM)               += bpf
> > -subdir-$(CONFIG_SECURITY_LANDLOCK)     += landlock
> >
> >  # always enable default capabilities
> >  obj-y                                  += commoncap.o
> > @@ -36,5 +26,4 @@ obj-$(CONFIG_BPF_LSM)                 += bpf/
> >  obj-$(CONFIG_SECURITY_LANDLOCK)                += landlock/
> >
> >  # Object integrity file lists
> > -subdir-$(CONFIG_INTEGRITY)             += integrity
> >  obj-$(CONFIG_INTEGRITY)                        += integrity/
> > --
> > 2.27.0
> >
>
>
> --
> Best Regards
> Masahiro Yamada
diff mbox series

Patch

diff --git a/security/Makefile b/security/Makefile
index 47e432900e24..18121f8f85cd 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -4,16 +4,6 @@ 
 #
 
 obj-$(CONFIG_KEYS)			+= keys/
-subdir-$(CONFIG_SECURITY_SELINUX)	+= selinux
-subdir-$(CONFIG_SECURITY_SMACK)		+= smack
-subdir-$(CONFIG_SECURITY_TOMOYO)        += tomoyo
-subdir-$(CONFIG_SECURITY_APPARMOR)	+= apparmor
-subdir-$(CONFIG_SECURITY_YAMA)		+= yama
-subdir-$(CONFIG_SECURITY_LOADPIN)	+= loadpin
-subdir-$(CONFIG_SECURITY_SAFESETID)    += safesetid
-subdir-$(CONFIG_SECURITY_LOCKDOWN_LSM)	+= lockdown
-subdir-$(CONFIG_BPF_LSM)		+= bpf
-subdir-$(CONFIG_SECURITY_LANDLOCK)	+= landlock
 
 # always enable default capabilities
 obj-y					+= commoncap.o
@@ -36,5 +26,4 @@  obj-$(CONFIG_BPF_LSM)			+= bpf/
 obj-$(CONFIG_SECURITY_LANDLOCK)		+= landlock/
 
 # Object integrity file lists
-subdir-$(CONFIG_INTEGRITY)		+= integrity
 obj-$(CONFIG_INTEGRITY)			+= integrity/