* [PATCH v2 1/1] selinux: use absolute path to include directory
@ 2016-01-19 17:07 Andy Shevchenko
2016-01-19 21:19 ` Paul Moore
0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2016-01-19 17:07 UTC (permalink / raw)
To: selinux, linux-security-module, James Morris, Paul Moore; +Cc: Andy Shevchenko
Compiler warns us a lot that it can't find include folder because it's provided
in relative form.
CC security/selinux/netlabel.o
cc1: warning: security/selinux/include: No such file or directory [-Wmissing-include-dirs]
cc1: warning: security/selinux/include: No such file or directory [-Wmissing-include-dirs]
cc1: warning: security/selinux/include: No such file or directory [-Wmissing-include-dirs]
cc1: warning: security/selinux/include: No such file or directory [-Wmissing-include-dirs]
Add $(srctree) prefix to the path.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
v2:
- apply change for all -I occurences
security/selinux/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/security/selinux/Makefile b/security/selinux/Makefile
index ad5cd76..b850811 100644
--- a/security/selinux/Makefile
+++ b/security/selinux/Makefile
@@ -13,7 +13,7 @@ selinux-$(CONFIG_SECURITY_NETWORK_XFRM) += xfrm.o
selinux-$(CONFIG_NETLABEL) += netlabel.o
-ccflags-y := -Isecurity/selinux -Isecurity/selinux/include
+ccflags-y := -I$(srctree)security/selinux -I$(srctree)/security/selinux/include
$(addprefix $(obj)/,$(selinux-y)): $(obj)/flask.h
--
2.7.0.rc3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2 1/1] selinux: use absolute path to include directory
2016-01-19 17:07 [PATCH v2 1/1] selinux: use absolute path to include directory Andy Shevchenko
@ 2016-01-19 21:19 ` Paul Moore
0 siblings, 0 replies; 2+ messages in thread
From: Paul Moore @ 2016-01-19 21:19 UTC (permalink / raw)
To: Andy Shevchenko; +Cc: selinux, linux-security-module, James Morris
On Tuesday, January 19, 2016 07:07:52 PM Andy Shevchenko wrote:
> diff --git a/security/selinux/Makefile b/security/selinux/Makefile
> index ad5cd76..b850811 100644
> --- a/security/selinux/Makefile
> +++ b/security/selinux/Makefile
> @@ -13,7 +13,7 @@ selinux-$(CONFIG_SECURITY_NETWORK_XFRM) += xfrm.o
>
> selinux-$(CONFIG_NETLABEL) += netlabel.o
>
> -ccflags-y := -Isecurity/selinux -Isecurity/selinux/include
> +ccflags-y := -I$(srctree)security/selinux I$(srctree)/security/...
You are missing a "/" after "$(srctree)".
Please make sure that your patches compile and pass basic functionality before
submitting; I don't care how trivial they may be, we all make the occasional
mistake, and a basic compile/boot test does wonders for catching a lot of
these stupid mistakes.
> $(addprefix $(obj)/,$(selinux-y)): $(obj)/flask.h
--
paul moore
www.paul-moore.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-01-19 21:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-19 17:07 [PATCH v2 1/1] selinux: use absolute path to include directory Andy Shevchenko
2016-01-19 21:19 ` Paul Moore
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.