scripts/selinux: fix build
authorStephen Smalley <sds@tycho.nsa.gov>
Tue, 19 Mar 2019 13:21:06 +0000 (09:21 -0400)
committerPaul Moore <paul@paul-moore.com>
Tue, 19 Mar 2019 16:29:04 +0000 (12:29 -0400)
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>
scripts/selinux/mdp/Makefile

index e9c92db7e2a38f4125769b2e87f29c7b64c98feb..8a1269a9d0ba28bf53592f4868f51168e1f6dbbe 100644 (file)
@@ -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