Allow ARCH to be set to "x86". That's what it is in Linux 2.6.24 for
authorproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 31 Jan 2008 22:48:42 +0000 (22:48 +0000)
committerproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 31 Jan 2008 22:48:42 +0000 (22:48 +0000)
both i386 and x86_64.  When calculating TARGET for x86 platform, use
CONFIG_X86 and CONFIG_X86_64 rather than ARCH.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3318 0192ed92-7a03-0410-a25b-9323aeb14dbd

ath_hal/ah_target.inc
scripts/get_arch.mk

index 15dbb32f7a8f5c581024df85ad662c885bb55a91..035860e1ee174a7d342eeaf9bd5ea80aa8bacd80 100644 (file)
@@ -25,6 +25,8 @@ endif
 
 # Determine the target (i.e. which HAL to use).
 # The default is $(ARCH)-elf
+TARGET-$(CONFIG_X86) = i386-elf
+TARGET-$(CONFIG_X86_64) = x86_64-elf
 TARGET-$(CONFIG_CPU_32v4) = armv4-$(ENDIAN)-elf
 TARGET-$(CONFIG_CPU_MIPS32_R1) = mips1-$(ENDIAN)-elf
 TARGET-$(CONFIG_CPU_MIPS32_R2) = mips-$(ENDIAN)-elf
index c788041a3687db3d531d66b58c583ce98ce83a72..0a239f0b726c4321e00172b5c05d2e298903f617 100644 (file)
@@ -36,6 +36,13 @@ ifeq (,$(ARCH-y))
 $(Cannot determine ARCH)
 endif
 
+# Allow ARCH to be x86
+ifneq (,$(CONFIG_X86))
+ifeq (x86,$(ARCH))
+ARCH-y = $(ARCH)
+endif
+endif
+
 # Don't allow ARCH to be overridden by a different value.
 ifeq (,$(ARCH))
 ARCH = $(ARCH-y)