Re: how to build a single module in the tree?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 4 Sep 2007, Adrian Bunk wrote:

> On Tue, Sep 04, 2007 at 04:53:35PM -0400, Robert P. J. Day wrote:
> >
> > with the latest git tree, i do:
> >
> > $ make distclean
> > $ make defconfig
> > $ make drivers/usb/serial/visor.ko
> >...
> >   CC      drivers/usb/serial/visor.o
> >   MODPOST 0 modules
> > $
> >
> >   and the result?
> >...
> > [rpjday@localhost git]$ find . -name *.ko
> > [rpjday@localhost git]$
> >
> >   ok, so where's my visor.ko module file?  the book certainly suggests
> > i should have one at this point.  ah, but the i386 defconfig
> > doesn't select the handspring module,
>
> There are no .ko files for statically built code.
>
> > so i'll do a clean, go back into
> > menuconfig, select visor as a module and try again:
> >
> > $ make drivers/usb/serial/visor.ko
> >   HOSTLD  scripts/kconfig/conf
> > scripts/kconfig/conf -s arch/i386/Kconfig
> >...
> >   CC [M]  drivers/usb/serial/visor.o
> > /bin/sh: .tmp_versions/visor.mod: No such file or directory
> >   MODPOST 0 modules
> > $
> >
> >   ok, so what's the trick here?  are you actually getting a .ko file?
>
> The latter works if you had built the module before and recompile it.
>
> But I think in theory it should also work the way you tried it. Sam?

as oleg pointed out in another post, the failure is that the directory
.tmp_versions is not created by the make -- specifically the "make
modules_prepare"?  creating that directory manually solves the problem
but, obviously, it should be part of the build process.

rday

p.s.  as you point out, once a module is built and .tmp_versions
exists, all further builds should work.

-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://crashcourse.ca
========================================================================

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux