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