On Mon, Apr 01, 2013 at 10:03:42PM +0200, Sam Ravnborg wrote: > On Mon, Apr 01, 2013 at 09:18:50PM +0200, Jiri Olsa wrote: > > Adding kbuild support into Makefile.kbuild. The 'legacy' > > Makefile still stays untouched as it was. > > When readign the Kbuild file I get confused. > the obj-y syntax is used for kernel built-in stuff, > and obj-m for modules. > I had expected either a perf specific syntax or something like the > syntax used for host programs. While building kernel you need to have separate flags for internal objects and for host programs. First, I thought I need to separate it as you say, but perf build is separated from kernel built process, so AFAICS we can use obj-y with no harm in perf. It's quite possible I missed something and kbuild folks prove me wrong ;-) The Makefile.kbuild defines flags to be used for obj-y. jirka -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html