Skip to content

Commit

Permalink
scripts/selinux: fix build
Browse files Browse the repository at this point in the history
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: e37c187 ("scripts/selinux: modernize mdp")
Reported-by: Stephen Rothwell <[email protected]>
Signed-off-by: Stephen Smalley <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
  • Loading branch information
stephensmalley authored and pcmoore committed Mar 19, 2019
1 parent ff1bf4c commit ccd19d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/selinux/mdp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ccd19d4

Please sign in to comment.