Patchwork drivers vs. obj

login
register
about
Submitter Myles Watson
Date 2010-02-23 16:28:27
Message ID <2831fecf1002230828r4c523895la0c5b5cf722b4af2@mail.gmail.com>
Download mbox | patch
Permalink /patch/962/
State Not Applicable
Headers show

Comments

Myles Watson - 2010-02-23 16:28:27
On Tue, Feb 23, 2010 at 8:37 AM, Patrick Georgi <patrick@georgi-clan.de>wrote:

> Am 24.09.2009 22:59, schrieb Myles Watson:
> > Based on that, here's a patch that changes drivers that aren't console,
> > pci, or cpu, to obj.
> >
> > The most common one was mainboard.c as a driver.
> >
> > Boot tested with Tyan s2895.
> >
> > Signed-off-by: Myles Watson <mylesgw@gmail.com>
> I updated the patch, with all the boards converted that appeared in
> Kconfig after this patch was made, too. There's not a single driver in
> src/mainboard left.
>
> Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
>

know about m3885.o and ec.o. I'm also not sure about the debug devices.  Are
they considered PCI?  It's been a long time since I thought about this.

Thanks,
Myles

Patch

Index: src/mainboard/roda/rk886ex/Makefile.inc
===================================================================
--- src/mainboard/roda/rk886ex/Makefile.inc    (revision 5149)
+++ src/mainboard/roda/rk886ex/Makefile.inc    (working copy)
@@ -21,10 +21,10 @@ 
 ## This mainboard requires DCACHE_AS_RAM enabled. It won't work without.
 ##

-driver-y += mainboard.o
-driver-y += m3885.o
-driver-y += ec.o
-driver-y += rtl8168.o
+obj-y += mainboard.o
+obj-y += m3885.o
+obj-y += ec.o
+obj-y += rtl8168.o


It looks like rtl8168 should stay a driver, since it's a PCI device. I don't