Re: kbuild - hostprogs not seeing CONFIG_FOO?

From: Alex Chiang
Date: Fri Dec 04 2009 - 13:51:52 EST


* Randy Dunlap <randy.dunlap@xxxxxxxxxx>:
> On Fri, 4 Dec 2009 11:07:49 -0700 Alex Chiang wrote:
>
> > <stdin>:1519:2: warning: #warning syscall perf_event_open not implemented
> > <stdin>:1523:2: warning: #warning syscall recvmmsg not implemented
> > <stdin>:1527:2: warning: #warning syscall fanotify_init not implemented
> > <stdin>:1531:2: warning: #warning syscall fanotify_mark not implemented
> > make -f scripts/Makefile.build obj=scripts
> > make -f scripts/Makefile.build obj=scripts/genksyms
> > make -f scripts/Makefile.build obj=scripts/mod
> > mkdir -p .tmp_versions
> > make KBUILD_MODULES=1 \
> > -f scripts/Makefile.build obj=Documentation/vm
> > (cat /dev/null; ) > Documentation/vm/modules.order
> > gcc -Wp,-MD,Documentation/vm/.page-types.d -Wall
> > -Wmissing-prototypes -Wstrict-prototypes -O2
> > -fomit-frame-pointer -o Documentation/vm/page-types
> > Documentation/vm/page-types.c
>
> Try adding in Documentation/vm/Makefile something like:
>
> HOSTCFLAGS_page-types.o += -I$(objtree)/usr/include
>
> or
>
> HOSTCFLAGS_page-types.o += $(LINUXINCLUDE)

Thanks Randy, that got it.

/ac

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/