Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selinux: move genheaders to security/selinux/

This tool is only used in security/selinux/Makefile.

Move it to security/selinux/ so that 'make clean' can clean it up.

Please note 'make clean' does not clean scripts/ because tools under
scripts/ are often used for external module builds. Obviously, genheaders
is not the case here.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Paul Moore <paul@paul-moore.com>

authored by

Masahiro Yamada and committed by
Paul Moore
3b70b66e 541b57e3

+10 -8
+3
scripts/remove-stale-files
··· 20 20 # yard. Stale files stay in this file for a while (for some release cycles?), 21 21 # then will be really dead and removed from the code base entirely. 22 22 23 + # moved to security/selinux/genheaders 24 + rm -f scripts/selinux/genheaders/genheaders 25 + 23 26 rm -f *.spec 24 27 25 28 rm -f lib/test_fortify.log
+1 -1
scripts/selinux/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 - subdir-y := mdp genheaders 2 + subdir-y := mdp
-2
scripts/selinux/genheaders/.gitignore
··· 1 - # SPDX-License-Identifier: GPL-2.0-only 2 - genheaders
-3
scripts/selinux/genheaders/Makefile
··· 1 - # SPDX-License-Identifier: GPL-2.0 2 - hostprogs-always-y += genheaders 3 - HOST_EXTRACFLAGS += -I$(srctree)/security/selinux/include
scripts/selinux/genheaders/genheaders.c security/selinux/genheaders.c
+1
security/selinux/.gitignore
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 2 av_permissions.h 3 3 flask.h 4 + /genheaders
+5 -2
security/selinux/Makefile
··· 36 36 # see the note above, replace the $targets and 'flask.h' rule with the lines 37 37 # below: 38 38 # targets += $(genhdrs) 39 - # $(addprefix $(obj)/,$(genhdrs)) &: scripts/selinux/... 39 + # $(addprefix $(obj)/,$(genhdrs)) &: $(obj)/genheaders FORCE 40 40 targets += flask.h 41 - $(obj)/flask.h: scripts/selinux/genheaders/genheaders FORCE 41 + $(obj)/flask.h: $(obj)/genheaders FORCE 42 42 $(call if_changed,genhdrs) 43 + 44 + hostprogs := genheaders 45 + HOST_EXTRACFLAGS += -I$(srctree)/security/selinux/include