mirror of
https://github.com/proski/madwifi
synced 2024-11-29 01:33:22 +03:00
89f9f3ed2a
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
54 lines
1.4 KiB
Makefile
54 lines
1.4 KiB
Makefile
# Calculate ARCH based on the included Linux .config file. This should
|
|
# cover all architectures supported by Linux 2.4 and 2.6 whether they
|
|
# are supported by MadWifi or not. Note that more specific entries must
|
|
# follow less specific ones, e.g. CONFIG_X86_64 overrides CONFIG_X86.
|
|
|
|
ARCH-$(CONFIG_ALPHA) = alpha
|
|
ARCH-$(CONFIG_ARM) = arm
|
|
ARCH-$(CONFIG_ARM26) = arm26
|
|
ARCH-$(CONFIG_CRIS) = cris
|
|
ARCH-$(CONFIG_FRV) = frv
|
|
ARCH-$(CONFIG_H8300) = h8300
|
|
ARCH-$(CONFIG_X86) = i386
|
|
ARCH-$(CONFIG_IA64) = ia64
|
|
ARCH-$(CONFIG_M32R) = m32r
|
|
ARCH-$(CONFIG_M68K) = m68k
|
|
ARCH-$(CONFIG_M68KNOMMU) = m68knommu
|
|
ARCH-$(CONFIG_MIPS) = mips
|
|
ARCH-$(CONFIG_MIPS64) = mips64
|
|
ARCH-$(CONFIG_PARISC) = parisc
|
|
ARCH-$(CONFIG_PPC) = ppc
|
|
ARCH-$(CONFIG_PPC64) = ppc64
|
|
ARCH-$(CONFIG_PPC_MERGE) = powerpc
|
|
ARCH-$(CONFIG_ARCH-S390) = s390
|
|
ARCH-$(CONFIG_ARCH-S390X) = s390x
|
|
ARCH-$(CONFIG_SUPERH) = sh
|
|
ARCH-$(CONFIG_CPU_SH5) = sh64
|
|
ARCH-$(CONFIG_SUPERH64) = sh64
|
|
ARCH-$(CONFIG_SPARC32) = sparc
|
|
ARCH-$(CONFIG_SPARC64) = sparc64
|
|
ARCH-$(CONFIG_UML) = um
|
|
ARCH-$(CONFIG_V850) = v850
|
|
ARCH-$(CONFIG_X86_64) = x86_64
|
|
ARCH-$(CONFIG_XTENSA) = xtensa
|
|
|
|
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)
|
|
else
|
|
ifneq ($(ARCH),$(ARCH-y))
|
|
$(error ARCH mismatch: supplied "$(ARCH)", determined "$(ARCH-y)")
|
|
endif
|
|
endif
|