]> git.baikalelectronics.ru Git - kernel.git/commit
x86, boot: Restrict CFLAGS for hostprogs
authorMatt Fleming <matt.fleming@intel.com>
Tue, 28 Feb 2012 13:37:23 +0000 (13:37 +0000)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 28 Feb 2012 18:22:59 +0000 (10:22 -0800)
commit41d7d46db62462fe637dfe895e4716e7e4f5df8a
tree782b4101c646cef0f79b39c0d8a72c45068b69d6
parent5c28a03fd44a57e99fd1ee95b806a8ed6cebad10
x86, boot: Restrict CFLAGS for hostprogs

Currently tools/build has access to all the kernel headers in
$(srctree). This is unnecessary and could potentially allow
tools/build to erroneously include kernel headers when it should only
be including userspace-exported headers.

Unfortunately, mkcpustr still needs access to some of the asm kernel
headers, so explicitly special case that hostprog.

Cc: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Link: http://lkml.kernel.org/r/1330436245-24875-5-git-send-email-matt@console-pimps.org
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/boot/Makefile