Re: Linux 2.6 Build System and Binary Modules

From: Larry Reaves (larry_at_moonshinecomputers.com)
Date: 02/29/04

  • Next message: Robbert Haarman: "Re: Linux 2.6 Build System and Binary Modules"
    To: Robbert Haarman <lkml@inglorion.net>
    Date:	Sun, 29 Feb 2004 14:20:01 -0500
    
    

    I am trying to do exactly the same thing... unfortunately I have not had
    much success getting it to work. I have, however, solved your problem.
    What I did was 'touch -B 9999999 priv_part.c' which creates an empty
    file with a timestamp of the current time minus 9999999 seconds.
    Because make will only recompile if the source is newer than the .o, it
    will assume it is already compiled and it will just link it in. I am
    new to kernel development, so I haven't made much progress beyond
    getting the module to compile without errors. If you are able to get it
    to work, please let me know.

    On Sun, 2004-02-29 at 13:31, Robbert Haarman wrote:
    > Hello list,
    >
    > Excuse me for not finding this if it has been asked before. Please Cc any answers, as I am not subscribed to this list.
    >
    > I am trying to port a driver for the Realtek 8180 wireless ehternet controller from 2.4 to 2.6. The module comes as a binary-only object file with some sources that can be adapted to fit the specific kernel. My problem is that I can't figure out how to get the 2.6 kernel to include the binary part (it's in a .o file). The new build system does a little too much magic - compiling the module from source to .ko without giving me a chance to sneak in the binary code. How do I get it to link in the .o file, without making it look for the like-named .c file?
    >
    > Cheers,
    >
    > Robbert Haarman
    >
    > ---
    > "UNIX was not designed to stop you from doing stupid things, because that
    > would also stop you from doing clever things."
    > --Doug Gwyn

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

  • Next message: Robbert Haarman: "Re: Linux 2.6 Build System and Binary Modules"

    Relevant Pages

    • Re: [PATCH 1/3] Add disk hotswap support to libata RESEND #5
      ... > Did you actually compile and test this? ... No. ata_device_add returns nonzero on success; ... failure all of the data structures allocated in that method stick ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Possible dcache BUG
      ... During the compile, the above line output this warning: ... Copyright 2004 by Maurice Eugene Heskett, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Linux GPL and binary module exception clause?
      ... of them for every exported symbol in turn, ... hacked -E:) we don't need to compile for this, ... `...some suburbanite DSL customer who thinks kernel patches are some ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [patch, 2.6.10-rc2] sched: fix ->nr_uninterruptible handling bugs
      ... > it, run lmbench, then compile a SMP kernel, and run it again. ... The Athlon64 really shines doing atomic ops though, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Compiling cardbus devices monolithic doesnt work?
      ... I should compile a monolithic 2.4 kernel and see what it does...) ... > IIRC hermes provides the low level interface to the device, ... > provides a bridge between the PCMCIA subsystem and orinoco. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)