From 5a14222cc7ad6f362b10a4af9a170cfc893b11d9 Mon Sep 17 00:00:00 2001 From: nbd Date: Sat, 30 Aug 2008 09:59:00 +0000 Subject: fix madwifi hal target for mips* git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12435 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/madwifi/Makefile | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'package/madwifi/Makefile') diff --git a/package/madwifi/Makefile b/package/madwifi/Makefile index 699a4afd0..adfd418b2 100644 --- a/package/madwifi/Makefile +++ b/package/madwifi/Makefile @@ -54,11 +54,20 @@ ifneq ($(CONFIG_TARGET_ar7)$(CONFIG_TARGET_uml),) BUS:= endif -ifeq ($(ARCH),mips) - HAL_TARGET:=mips-be-elf -endif -ifeq ($(ARCH),mipsel) - HAL_TARGET:=mips-le-elf +ifneq ($(CONFIG_CPU_MIPS32_R2),) + ifeq ($(ARCH),mips) + HAL_TARGET:=mips32r2-be-elf + endif + ifeq ($(ARCH),mipsel) + HAL_TARGET:=mips32r2-le-elf + endif +else + ifeq ($(ARCH),mips) + HAL_TARGET:=mips32-be-elf + endif + ifeq ($(ARCH),mipsel) + HAL_TARGET:=mips32-le-elf + endif endif ifeq ($(ARCH),i386) HAL_TARGET:=i386-elf -- cgit v1.2.3