[eepro100] Compiling pci-scan and merging into source tree

Dave Worthy dave_worthy@hp.com
Mon May 20 22:15:00 2002


Hello all,

I'm trying to add the pci-scan.c source into my kernel (2.4.14) tree
such that a 'make modules' will pick up not only the eepro100, but
pci-scan also.  Then the 'make modules_install' would automatically pick
up this module and the dependency.

I saw some directions at this site:
http://www.scyld.com/network/updates.html#single under the heading
"Installing Individual Driversl"....and this all seems to work but
needing to remember to manually move pci-scan may be difficult to
remember when/if recompiling this kernel....especially if someone else
has to do it.   A nice big README should work, but looking for the
smoother answer.

[make modules output]

make -C net modules
make[2]: Entering directory `/usr/src/linux-2.4.14/drivers/net'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.14/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=i686 -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.14/include/linux/modversions.h   -c -o eepro100.o
eepro100.c
make[2]: Leaving directory `/usr/src/linux-2.4.14/drivers/net'

[make modules_install]

mkdir -p pcmcia; \
find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{}
pcmcia
if [ -r System.map ]; then /sbin/depmod -ae -F System.map  2.4.14acenic;
fi
depmod: *** Unresolved symbols in
/lib/modules/2.4.14acenic/kernel/drivers/net/eepro100.o
depmod:         acpi_set_pwr_state
depmod:         pci_drv_unregister
depmod:         pci_drv_register
make: *** [_modinst_post] Error 1


[ ls -al drivers/net/eepro100* drivers/net/pci-scan* ]
[ note the timestamps for .o files aren't the same]
-rw-r--r--    1 root     root        67041 May 17 21:24
drivers/net/eepro100.c
-rw-r--r--    1 root     root        21664 May 20 22:02
drivers/net/eepro100.o
-rw-r--r--    1 root     root        17856 May 20 10:38
drivers/net/pci-scan.c
-rw-r--r--    1 root     root         2990 May 20 10:38
drivers/net/pci-scan.h
-rw-r--r--    1 root     root         6532 May 20 10:50
drivers/net/pci-scan.o

I'm guessing something in the Makefile needs tweaked, but that all looks
greek to me right now.   If this is something easy I've overlooked,
apologies in advance.

Thanks

Dave Worthy