Hello,
 
I try to compile the madwifi drivers for a DWL-G520 pci cards.
I patch the linux kernel with madwifi drivers.
the target is a powerpc architecture.
 
 
linux kernel 2.6.12 compilation
make -C $(KERNEL_PATH) ARCH=ppc CROSS_COMPILE=/mnt/disk2/buildroot/build_powerpc/staging_dir/bin/powerpc-linux-uclibc- vmlinux uImage
 
modules compilation
make -C $(KERNEL_PATH) ARCH=ppc CROSS_COMPILE=/mnt/disk2/buildroot/build_powerpc/staging_dir/bin/powerpc-linux-uclibc- CFLAGS+=-DAH_BYTE_ORDER=AH_BIG_ENDIAN CFLAGS+=-DTARGET=powerpc-be-eabi CFLAGS+=-DTOOLPREFIX=""   modules  V=1
 
--------------
  Building modules, stage 2.
make -rR -f /mnt/disk2/kernel/S600_kernel/scripts/Makefile.modpost
  scripts/mod/modpost -m -a -o /mnt/disk2/kernel/S600_kernel/Module.symvers vmlinux drivers/net/wireless/_ath_hal/ath_hal.o drivers/net/wireless/_ath_rate/ath_rate_onoe.o
drivers/net/wireless/ath/ath_pci.o drivers/net/wireless/net80211/wlan.o drivers/net/wireless/net80211/wlan_acl.o drivers/net/wireless/net80211/wlan_ccmp.o drivers/net/wireless/net80211/wlan_tkip.o drivers/net/wireless/net80211/wlan_wep.o drivers/net/wireless/net80211/wlan_xauth.o
Warning: could not find drivers/net/wireless/_ath_hal/.hal.o.cmd for drivers/net/wireless/_ath_hal/hal.o
*** Warning: "htons" [drivers/net/wireless/net80211/wlan.ko] undefined!
*** Warning: "get_order" [drivers/net/wireless/ath/ath_pci.ko] undefined!
*** Warning: "ath_hal_reg_read" [drivers/net/wireless/_ath_hal/ath_hal.ko] undefined!
*** Warning: "ath_hal_reg_write" [drivers/net/wireless/_ath_hal/ath_hal.ko] undefined!
---------------
 
Is there any other compilation options to define?
 
Thanks.
-----------------
Thierry