summaryrefslogtreecommitdiffstats
path: root/scripts/selinux
diff options
context:
space:
mode:
authorStephen Smalley <sds@tycho.nsa.gov>2019-03-19 14:21:06 +0100
committerPaul Moore <paul@paul-moore.com>2019-03-19 17:29:04 +0100
commitccd19d4cafaaf36132c372e77ee9304b707c1e70 (patch)
treeeb4952a48578bdd7edf622509f0faa242d5c71a6 /scripts/selinux
parentselinux: use kernel linux/socket.h for genheaders and mdp (diff)
downloadlinux-ccd19d4cafaaf36132c372e77ee9304b707c1e70.tar.xz
linux-ccd19d4cafaaf36132c372e77ee9304b707c1e70.zip
scripts/selinux: fix build
We need to add the object tree include directory to the include path for building mdp in order to pick up generated/autoconf.h. Otherwise, make O=/path/to/objtree breaks. Fixes: e37c1877ba5b ("scripts/selinux: modernize mdp") Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'scripts/selinux')
-rw-r--r--scripts/selinux/mdp/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/selinux/mdp/Makefile b/scripts/selinux/mdp/Makefile
index e9c92db7e2a3..8a1269a9d0ba 100644
--- a/scripts/selinux/mdp/Makefile
+++ b/scripts/selinux/mdp/Makefile
@@ -2,7 +2,7 @@
hostprogs-y := mdp
HOST_EXTRACFLAGS += \
-I$(srctree)/include/uapi -I$(srctree)/include \
- -I$(srctree)/security/selinux/include
+ -I$(srctree)/security/selinux/include -I$(objtree)/include
always := $(hostprogs-y)
clean-files := policy.* file_contexts