Cross Compiling 0.22 / wlan_compat.h is in conflict list.h
Marcus Mikolaiczyk <[email protected]> Thu, 01 Dec 2005 09:30:58 +0100
| Newsgroups | gmane.linux.linux-wlan.user |
|---|---|
| Organization | CarMedialab GmbH |
| Message-ID | <[email protected]> |
Dear list-users,
I'm stuck in a problem on crosscompiling linux-wlan-ng for a tricore
(infineon) tc1130 processor.
The ./Configure is working an setting up things correct, as far as I can
see. The first problem I hit is the "not supported CPU" which I tried to
solve in adding kind of CPU related stuff to wlan_compat.h. But the
errors with the redefinition conflict between list.h (kernel source) and
wlan_compat.h still exist. If I comment out the part in wlan_compat.h
I get an even more serious compiler error message.
changes to wlan_compat.h to work with tc1130.
/* WLAN_CPU_FAMILY */
...
#define WLAN_TRICORE 11
/* WLAN_SYSARCH */
...
#define WLAN_TCARCH 13
...
#if defined(__KERNEL__)
...
#elif defined(__tricore__)
#define WLAN_CPU_FAMILY WLAN_TRICORE
#define WLAN_SYSARCH WLAN_TCARCH
...
I would be gratefull for any ideas thanks in advance.
Regards
Marcus
####### Error Message #############
make[4]: Entering directory
`/opt/flea/appsrc/linux-wlan-ng-0.2.2/src/p80211'
tricore-gcc -D__KERNEL__ -I/opt/flea/standard/kernel-002/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -fno-common -pipe
-Werror-implicit-function-declaration -mtc13 -mall-errata -mhard-float
-mcpu9 -mcpu13 -mcpu16 -Wa,-mdmi12 -fno-schedule-insns
-fno-schedule-insns2 -DMODULE
-I/opt/flea/appsrc/linux-wlan-ng-0.2.2/src//include -nostdinc -I
/usr/tricore/Linux.33/lib/gcc-lib/tricore-ht-linux/3.3/include
-DKBUILD_BASENAME=p80211mod -DEXPORT_SYMTAB -c p80211mod.c
In file included from p80211mod.c:73:
/opt/flea/appsrc/linux-wlan-ng-0.2.2/src/include/wlan/wlan_compat.h:136:10:
#error "No CPU identified!"
In file included from p80211mod.c:73:
/opt/flea/appsrc/linux-wlan-ng-0.2.2/src/include/wlan/wlan_compat.h:375:
error: redefinition of `list_move_tail'
/opt/flea/standard/kernel-002/include/linux/list.h:126: error:
`list_move_tail' previously defined here
/opt/flea/appsrc/linux-wlan-ng-0.2.2/src/include/wlan/wlan_compat.h:382:
error: redefinition of `__list_splice'
/opt/flea/standard/kernel-002/include/linux/list.h:142: error:
`__list_splice' previously defined here
/opt/flea/appsrc/linux-wlan-ng-0.2.2/src/include/wlan/wlan_compat.h:395:
error: redefinition of `list_move'
/opt/flea/standard/kernel-002/include/linux/list.h:114: error:
`list_move' previously defined here
/opt/flea/appsrc/linux-wlan-ng-0.2.2/src/include/wlan/wlan_compat.h:402:
error: redefinition of `list_splice_init'
/opt/flea/standard/kernel-002/include/linux/list.h:174: error:
`list_splice_init' previously defined here
make[4]: *** [p80211mod.o] Error 1
make[4]: Leaving directory `/opt/flea/appsrc/linux-wlan-ng-0.2.2/src/p80211'
make[3]: *** [_mod_/opt/flea/appsrc/linux-wlan-ng-0.2.2/src/p80211] Error 2
make[3]: Leaving directory `/opt/flea/standard/kernel-002'
make[2]: *** [default] Error 2
make[2]: Leaving directory `/opt/flea/appsrc/linux-wlan-ng-0.2.2/src/p80211'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/opt/flea/appsrc/linux-wlan-ng-0.2.2/src'
make: *** [all] Error 2