Hi,
I'm still trying to create a madwifing ipkg package for my Asus WL-500g.
When using the OpenWrt SDK it stops with an error that I cant fix :-(

I'm thankfull for every hint !!


<snip>
vab@linux:~/OpenWrt-SDK-Linux-i686-1> make
make[1]: Entering directory `/home/vab/OpenWrt-SDK-Linux-i686-1/package/madwifi-ng'
make[1]: Für das Ziel »prepare« ist nichts zu tun.
make[1]: Leaving directory `/home/vab/OpenWrt-SDK-Linux-i686-1/package/madwifi-ng'
make[1]: Entering directory `/home/vab/OpenWrt-SDK-Linux-i686-1/package/madwifi-ng'
make -C /home/vab/OpenWrt-SDK-Linux-i686-1/build_mipsel/madwifi-ng-current \
        CC=/home/vab/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/bin/mipsel-linux-uclibc-gcc
make[2]: Entering directory `/home/vab/OpenWrt-SDK-Linux-i686-1/build_mipsel/madwifi-ng-current'
Checking requirements... ok.
Checking kernel configuration... ok.
if [ -d .svn ]; then \
        ver=`svnversion -nc . | sed -e 's/^[^:]*://;s/[A-Za-z]//'`; \
elif [ -s SNAPSHOT ]; then \
        ver=`sed -e '/^Revision: */!d;s///;q' SNAPSHOT`; \
else \
        ver=`date +%F`; \
fi; \
echo "#define SVNVERSION \"$ver\"" > svnversion.h
mkdir -p ./symbols
for i in ./ath_hal ./net80211 ath_rate/sample ./ath; do \
        make -C $i || exit 1; \
done
make[3]: Entering directory `/home/vab/OpenWrt-SDK-Linux-i686-1/build_mipsel/madwifi-ng-current/ath_hal'
make -C /lib/modules/2.6.13-15-default/build SUBDIRS=/home/vab/OpenWrt-SDK-Linux-i686-1/build_mipsel/madwifi-ng-current/ath_hal MODVERDIR=/home/vab/OpenWrt-SDK-Linux-i686-1/build_mipsel/madwifi-ng-current/ath_hal/../symbols modules
make[4]: Entering directory `/usr/src/linux-2.6.13-15-obj/i386/default'
make -C ../../../linux-2.6.13-15 O=../linux-2.6.13-15-obj/i386/default modules
  CC [M]  /home/vab/OpenWrt-SDK-Linux-i686-1/build_mipsel/madwifi-ng-current/ath_hal/ah_osdep.o
cc1: error: invalid option `regparm=3'
/home/vab/OpenWrt-SDK-Linux-i686-1/build_mipsel/madwifi-ng-current/ath_hal/ah_osdep.c:1: error: bad value (i586) for -march
Assembler messages:
Error: Bad value (i586) for -march
make[7]: *** [/home/vab/OpenWrt-SDK-Linux-i686-1/build_mipsel/madwifi-ng-current/ath_hal/ah_osdep.o] Error 1
make[6]: *** [_module_/home/vab/OpenWrt-SDK-Linux-i686-1/build_mipsel/madwifi-ng-current/ath_hal] Error 2
make[5]: *** [modules] Error 2
make[4]: *** [modules] Error 2
make[4]: Leaving directory `/usr/src/linux-2.6.13-15-obj/i386/default'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/vab/OpenWrt-SDK-Linux-i686-1/build_mipsel/madwifi-ng-current/ath_hal'
make[2]: *** [modules] Fehler 1
make[2]: Leaving directory `/home/vab/OpenWrt-SDK-Linux-i686-1/build_mipsel/madwifi-ng-current'
make[1]: *** [/home/vab/OpenWrt-SDK-Linux-i686-1/build_mipsel/madwifi-ng-current/.built] Fehler 2
make[1]: Leaving directory `/home/vab/OpenWrt-SDK-Linux-i686-1/package/madwifi-ng'
make: *** [madwifi-ng-compile] Fehler 2
<snap>


here is the make file that i have in /package/madwifi-ng
<snip>
# $Id: Makefile 1146 2005-06-05 13:32:28Z nbd $

include $(TOPDIR)/rules.mk

PKG_NAME:=madwifi-ng
PKG_VERSION:=current
PKG_RELEASE:=1
#PKG_MD5SUM:=28335e15c83456a3db055a0a0efcb4fe
#http://snapshots.madwifi.org/madwifi-ng-current.tar.gz
PKG_SOURCE_URL:=http://snapshots.madwifi.org
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_CAT:=zcat

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)

include $(TOPDIR)/package/rules.mk

$(eval $(call PKG_template,madwifi-ng,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))

$(PKG_BUILD_DIR)/.configured:$(PKG_BUILD_DIR)/.prepared
        touch $@

$(PKG_BUILD_DIR)/.built:
        $(MAKE) -C $(PKG_BUILD_DIR) \
                CC=$(TARGET_CC)
        touch $@

$(IPKG_madwifi-ng):
        mkdir -p $(IDIR_madwifi-ng)/usr/sbin
        cp $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_madwifi-ng)/usr/sbin/
        $(STRIP) $(IDIR_madwifi-ng)/usr/sbin/*
        $(IPKG_BUILD) $(IDIR_madwifi-ng) $(PACKAGE_DIR)

mostlyclean:
        $(MAKE) -C $(PKG_BUILD_DIR) clean
        rm -f $(PKG_BUILD_DIR)/.built

<snap>