+
+ifdef CONFIG_MADWIFI_HAL_DEFAULT
+ ifeq ($(ARCH),mips)
+ HAL_TARGET:=mips-be-elf
+ endif
+ ifeq ($(ARCH),mipsel)
+ HAL_TARGET:=mips-le-elf
+ endif
+ ifeq ($(ARCH),i386)
+ HAL_TARGET:=i386-elf
+ endif
+ ifeq ($(ARCH),i686)
+ HAL_TARGET:=i386-elf
+ endif
+ ifeq ($(BOARD),ixp4xx)
+ HAL_TARGET:=xscale-be-elf
+ endif
+ ifeq ($(BOARD),iop32x)
+ HAL_TARGET:=xscale-le-elf
+ endif
+ ifeq ($(ARCH),powerpc)
+ HAL_TARGET:=powerpc-be-elf
+ endif
+ ifeq ($(BOARD),storm)
+ HAL_TARGET:=armv4-le-elf
+ endif
+ ifneq ($(CONFIG_TARGET_atheros),)
+ HAL_TARGET:=ap51
+ endif
+else
+ ifdef CONFIG_MADWIFI_HAL_MIPS_BE_ELF
+ HAL_TARGET:=mips-be-elf
+ endif
+
+ ifdef CONFIG_MADWIFI_HAL_MIPS_LE_ELF
+ HAL_TARGET:=mips-le-elf
+ endif
+
+ ifdef CONFIG_MADWIFI_HAL_I386_ELF
+ HAL_TARGET:=i386-elf
+ endif
+
+ ifdef CONFIG_MADWIFI_HAL_XSCALE_BE_ELF
+ HAL_TARGET:=xscale-be-elf
+ endif
+
+ ifdef CONFIG_MADWIFI_HAL_XSCALE_LE_ELF
+ HAL_TARGET:=xscale-le-elf
+ endif
+
+ ifdef CONFIG_MADWIFI_HAL_ARMV4_LE_ELF
+ HAL_TARGET:=armv4-le-elf
+ endif
+
+ ifdef CONFIG_MADWIFI_HAL_AP30
+ HAL_TARGET:=ap30
+ endif
+
+ ifdef CONFIG_MADWIFI_HAL_AP43
+ HAL_TARGET:=ap43
+ endif
+
+ ifdef CONFIG_MADWIFI_HAL_AP51
+ HAL_TARGET:=ap51
+ endif
+
+ ifdef CONFIG_MADWIFI_HAL_AP61
+ HAL_TARGET:=ap61
+ endif
+