Re: [RFC] kbuild: Add a binary only .o file to a module
From: Sam Ravnborg
Date: Mon Mar 01 2004 - 17:23:03 EST
On Mon, Mar 01, 2004 at 10:46:17PM +0100, Sam Ravnborg wrote:
>
> This can be done in several other ways as already suggested in on lkml.
> But none of them were what I consider 'good enough' - introducing
> some spooky rules etc.
Forget it - I realised this is already supported by kbuild in a nice way.
The _shipped functionality can be used here, so the RTL8180 Makefile
now looks like this:
EXTRA_CFLAGS = -DRTL_IO_MAP
obj-m := rtl8180.o
rtl8180-y += r8180_if.o r8180_pci_init.o usercopy.o
rtl8180-y += priv_part.o
And the binary only .o file is named priv_part.o_shipped.
No added complexity to kbuild - but I need to document this somewhere...
Sam
-
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/