mirror of
https://github.com/proski/madwifi
synced 2024-11-22 14:31: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
44 lines
1.3 KiB
PHP
44 lines
1.3 KiB
PHP
# Determine HAL target based on the kernel architecture
|
|
|
|
# Make sure ARCH is defined
|
|
ifeq ($(ARCH),)
|
|
$(error ARCH must be defined)
|
|
endif
|
|
|
|
# Determine endianess. Note that it's not indicated for some CPUs at
|
|
# all, so this value is only valid for certain processors.
|
|
ifeq ($(filter-out arm%,$(ARCH)),)
|
|
ENDIAN = le
|
|
endif
|
|
|
|
ifeq ($(filter-out mips%,$(ARCH)),)
|
|
ENDIAN = be
|
|
endif
|
|
|
|
ifneq ($(CONFIG_CPU_BIG_ENDIAN)$(CONFIG_BIG_ENDIAN),)
|
|
ENDIAN = be
|
|
endif
|
|
|
|
ifneq ($(CONFIG_CPU_LITTLE_ENDIAN)$(CONFIG_LITTLE_ENDIAN),)
|
|
ENDIAN = le
|
|
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
|
|
TARGET-$(CONFIG_CPU_R4X00) = mipsisa32-$(ENDIAN)-elf
|
|
TARGET-$(CONFIG_CPU_TX49XX) = mipsisa32-$(ENDIAN)-elf
|
|
TARGET-$(CONFIG_PPC32) = powerpc-be-elf
|
|
TARGET-$(CONFIG_CPU_SH4) = sh4-le-elf
|
|
TARGET-$(CONFIG_SPARC32) = sparc-be-elf
|
|
TARGET-$(CONFIG_SPARC64) = sparc64-be-elf
|
|
TARGET-$(CONFIG_CPU_SA110) = xscale-$(ENDIAN)-elf
|
|
TARGET-$(CONFIG_CPU_SA1100) = xscale-$(ENDIAN)-elf
|
|
TARGET-$(CONFIG_CPU_XSCALE) = xscale-$(ENDIAN)-elf
|
|
|
|
TARGET = $(if $(TARGET-y),$(TARGET-y),$(ARCH)-elf)
|