[Yaffs] mv problem --> now KBUILD_MODNAME
Charles Manning
manningc2 at actrix.gen.nz
Wed Sep 21 09:27:10 BST 2005
On Wednesday 21 September 2005 19:45, Timofei V. Bondarenko wrote:
> Hi.
>
> Martin Fouts wrote:
> >>BTW, it is NOT a good idea to nail down a yaffs module
> >>configuration with that "moduleconfig.h" file. Less for
> >>compiler complaints it makes the entire weirdo kinda funny
> >>when mututally exclusive options got picked up from that file
> >>and kernel config...
> >
> > moduleconfig.h is only meant to be used when building yaffs2 outside of
> > the kernel tree as a module. I added it in the past few days, as a
> > simple way to get out-of-tree module building working again.
> >
> > If you build in-kernel, then you shouldn't see anything from
> > moduleconfig.h because it is protected by KBUILD_MODNAME, which I
> > _thought_ was only defined when you were building out-of-tree.
> >
> > I will investigate this, and if KBUILD_MODNAME is being defined when
> > building a module in-tree, then I'll find a better guard to use.
>
> It's defined, because the yaffs still a module,
> no matter how it is linked and where is it compiled from.
>
> I could suggest to use "gcc -include moduleconfig.h" in the Makefile.
Marty has applied some fixes for this a few hours ago. Please try that.
-- Charles
More information about the yaffs
mailing list