diff mbox series

scripts/selinux: fix build

Message ID 20190319132106.21127-1-sds@tycho.nsa.gov (mailing list archive)
State Accepted
Headers show
Series scripts/selinux: fix build | expand

Commit Message

Stephen Smalley March 19, 2019, 1:21 p.m. UTC
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>
---
 scripts/selinux/mdp/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Paul Moore March 19, 2019, 5:05 p.m. UTC | #1
On Tue, Mar 19, 2019 at 9:21 AM Stephen Smalley <sds@tycho.nsa.gov> wrote:
> 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>
> ---
>  scripts/selinux/mdp/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

I wouldn't have thought this would be necessary, but evidently it is,
and thankfully we aren't the only ones doing this.  Merged to
selinux/next, thanks Stephen.
diff mbox series

Patch

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