> there is some version check in the beginning of the makefile of some modules
> declared, you might find additional info on the web about how to disable
> that, but I've seen that with some "custom build" modules.
>
> if it has been built already, there is a good chance it will work.
>
Sorry but in Makefile ther isn't any declaration, and when I make it it show:
-------------------
gcc -DMODULE -D__KERNEL__ -DDBG=0 -DT3_JUMBO_RCV_RCB_ENTRY_COUNT=256
-DNICE_SUPPORT -DPCIX_TARGET_WORKAROUND=1 -DINCLUDE_TBI_SUPPORT
-DINCLUDE_5701_AX_FIX=1 -Wall -Wstrict-prototypes
-I/lib/modules/2.4.30-3tr/build/include -O2 -c -o b57um.o b57um.c
gcc -DMODULE -D__KERNEL__ -DDBG=0 -DT3_JUMBO_RCV_RCB_ENTRY_COUNT=256
-DNICE_SUPPORT -DPCIX_TARGET_WORKAROUND=1 -DINCLUDE_TBI_SUPPORT
-DINCLUDE_5701_AX_FIX=1 -Wall -Wstrict-prototypes
-I/lib/modules/2.4.30-3tr/build/include -O2 -c -o b57proc.o
b57proc.c
gcc -DMODULE -D__KERNEL__ -DDBG=0 -DT3_JUMBO_RCV_RCB_ENTRY_COUNT=256
-DNICE_SUPPORT -DPCIX_TARGET_WORKAROUND=1 -DINCLUDE_TBI_SUPPORT
-DINCLUDE_5701_AX_FIX=1 -Wall -Wstrict-prototypes
-I/lib/modules/2.4.30-3tr/build/include -O2 -c -o tigon3.o tigon3.c
tigon3.c: In function `LM_InitializeAdapter':
tigon3.c:2381: warning: dereferencing type-punned pointer will break
strict-aliasing rules
gcc -DMODULE -D__KERNEL__ -DDBG=0 -DT3_JUMBO_RCV_RCB_ENTRY_COUNT=256
-DNICE_SUPPORT -DPCIX_TARGET_WORKAROUND=1 -DINCLUDE_TBI_SUPPORT
-DINCLUDE_5701_AX_FIX=1 -Wall -Wstrict-prototypes
-I/lib/modules/2.4.30-3tr/build/include -O2 -c -o autoneg.o
autoneg.c
gcc -DMODULE -D__KERNEL__ -DDBG=0 -DT3_JUMBO_RCV_RCB_ENTRY_COUNT=256
-DNICE_SUPPORT -DPCIX_TARGET_WORKAROUND=1 -DINCLUDE_TBI_SUPPORT
-DINCLUDE_5701_AX_FIX=1 -Wall -Wstrict-prototypes
-I/lib/modules/2.4.30-3tr/build/include -O2 -c -o 5701rls.o
5701rls.c
gcc -DMODULE -D__KERNEL__ -DDBG=0 -DT3_JUMBO_RCV_RCB_ENTRY_COUNT=256
-DNICE_SUPPORT -DPCIX_TARGET_WORKAROUND=1 -DINCLUDE_TBI_SUPPORT
-DINCLUDE_5701_AX_FIX=1 -Wall -Wstrict-prototypes
-I/lib/modules/2.4.30-3tr/build/include -O2 -c -o tcp_seg.o
tcp_seg.c
gcc -DMODULE -D__KERNEL__ -DDBG=0 -DT3_JUMBO_RCV_RCB_ENTRY_COUNT=256
-DNICE_SUPPORT -DPCIX_TARGET_WORKAROUND=1 -DINCLUDE_TBI_SUPPORT
-DINCLUDE_5701_AX_FIX=1 -Wall -Wstrict-prototypes
-I/lib/modules/2.4.30-3tr/build/include -O2 -c -o b57diag.o
b57diag.c
ld -i b57um.o b57proc.o tigon3.o autoneg.o 5701rls.o tcp_seg.o
b57diag.o -o bcm5700.o
-------------------
.. where references for actual kernel: 2.4.30-3tr are included.
This is part of Makefile....
#!/usr/bin/make
# Makefile for building Linux Broadcom Gigabit ethernet driver as a module.
# $id$
# PREFIX may be set by the RPM build to set the effective root.
PREFIX=
ifeq ($(shell ls /lib/modules/$(shell uname -r)/build > /dev/null 2>&1
&& echo build),)
ifeq ($(shell ls /usr/src/linux > /dev/null 2>&1 && echo linux),)
LINUX=
else
LINUX=/usr/src/linux
endif
else
LINUX=/lib/modules/$(shell uname -r)/build
endif
# check if 2.4 kernel or 2.5+ kernel
BCM_KVER:=$(shell uname -r | cut -c1-3 | sed 's/2\.[56]/2\.6/')
ifeq ($(BCM_KVER), 2.6)
# Makefile for 2.5+ kernel
BCM_DRV = bcm5700.ko
ifneq ($(KERNELRELEASE),)
obj-m += bcm5700.o
bcm5700-objs := b57um.o b57proc.o tigon3.o autoneg.o 5701rls.o
tcp_seg.o b57diag.o
EXTRA_CFLAGS = -DDBG=0 -DT3_JUMBO_RCV_RCB_ENTRY_COUNT=256
-DNICE_SUPPORT -DPCIX_TARGET_WORKAROUND=1 -DINCLUDE_TBI_SUPPORT
-DINCLUDE_5701_AX_FIX=1
else
default:
make -C $(LINUX) SUBDIRS=$(shell pwd) modules
endif
[....]
_______________________________________________
tsl-discuss mailing list
[email protected]
http://lists.trustix.org/mailman/listinfo/tsl-discuss