Add support for ARM big-endian toolchains with prefix armeb-
This commit is contained in:
parent
46da8a07ef
commit
6d0650349a
@ -94,15 +94,21 @@ ifeq ($(CONFIG_DEBUG_CUSTOMOPT),y)
|
||||
MAXOPTIMIZATION := $(CONFIG_DEBUG_OPTLEVEL)
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_ENDIAN_BIG),y)
|
||||
TARGET_ARCH := armeb
|
||||
else
|
||||
TARGET_ARCH := arm
|
||||
endif
|
||||
|
||||
# NuttX buildroot under Linux or Cygwin
|
||||
|
||||
ifeq ($(CONFIG_ARMV7A_TOOLCHAIN),BUILDROOT)
|
||||
ifeq ($(CONFIG_ARMV7A_OABI_TOOLCHAIN),y)
|
||||
CROSSDEV ?= arm-nuttx-elf-
|
||||
ARCROSSDEV ?= arm-nuttx-elf-
|
||||
CROSSDEV ?= $(TARGET_ARCH)-nuttx-elf-
|
||||
ARCROSSDEV ?= $(TARGET_ARCH)-nuttx-elf-
|
||||
else
|
||||
CROSSDEV ?= arm-nuttx-eabi-
|
||||
ARCROSSDEV ?= arm-nuttx-eabi-
|
||||
CROSSDEV ?= $(TARGET_ARCH)-nuttx-eabi-
|
||||
ARCROSSDEV ?= $(TARGET_ARCH)-nuttx-eabi-
|
||||
endif
|
||||
MAXOPTIMIZATION ?= -Os
|
||||
endif
|
||||
@ -110,16 +116,16 @@ endif
|
||||
# CodeSourcery under Linux
|
||||
|
||||
ifeq ($(CONFIG_ARMV7A_TOOLCHAIN),CODESOURCERYL)
|
||||
CROSSDEV ?= arm-none-eabi-
|
||||
ARCROSSDEV ?= arm-none-eabi-
|
||||
CROSSDEV ?= $(TARGET_ARCH)-none-eabi-
|
||||
ARCROSSDEV ?= $(TARGET_ARCH)-none-eabi-
|
||||
MAXOPTIMIZATION ?= -O2
|
||||
endif
|
||||
|
||||
# CodeSourcery under Windows
|
||||
|
||||
ifeq ($(CONFIG_ARMV7A_TOOLCHAIN),CODESOURCERYW)
|
||||
CROSSDEV ?= arm-none-eabi-
|
||||
ARCROSSDEV ?= arm-none-eabi-
|
||||
CROSSDEV ?= $(TARGET_ARCH)-none-eabi-
|
||||
ARCROSSDEV ?= $(TARGET_ARCH)-none-eabi-
|
||||
MAXOPTIMIZATION ?= -O2
|
||||
ifneq ($(CONFIG_WINDOWS_NATIVE),y)
|
||||
WINTOOL = y
|
||||
@ -129,8 +135,8 @@ endif
|
||||
# devkitARM under Windows
|
||||
|
||||
ifeq ($(CONFIG_ARMV7A_TOOLCHAIN),DEVKITARM)
|
||||
CROSSDEV ?= arm-eabi-
|
||||
ARCROSSDEV ?= arm-eabi-
|
||||
CROSSDEV ?= $(TARGET_ARCH)-eabi-
|
||||
ARCROSSDEV ?= $(TARGET_ARCH)-eabi-
|
||||
ifneq ($(CONFIG_WINDOWS_NATIVE),y)
|
||||
WINTOOL = y
|
||||
endif
|
||||
@ -139,16 +145,16 @@ endif
|
||||
# Generic GNU EABI toolchain on OS X, Linux or any typical Posix system
|
||||
|
||||
ifeq ($(CONFIG_ARMV7A_TOOLCHAIN),GNU_EABIL)
|
||||
CROSSDEV ?= arm-none-eabi-
|
||||
ARCROSSDEV ?= arm-none-eabi-
|
||||
CROSSDEV ?= $(TARGET_ARCH)-none-eabi-
|
||||
ARCROSSDEV ?= $(TARGET_ARCH)-none-eabi-
|
||||
MAXOPTIMIZATION ?= -Os
|
||||
endif
|
||||
|
||||
# Generic GNU EABI toolchain under Windows
|
||||
|
||||
ifeq ($(CONFIG_ARMV7A_TOOLCHAIN),GNU_EABIW)
|
||||
CROSSDEV ?= arm-none-eabi-
|
||||
ARCROSSDEV ?= arm-none-eabi-
|
||||
CROSSDEV ?= $(TARGET_ARCH)-none-eabi-
|
||||
ARCROSSDEV ?= $(TARGET_ARCH)-none-eabi-
|
||||
MAXOPTIMIZATION ?= -Os
|
||||
ifneq ($(CONFIG_WINDOWS_NATIVE),y)
|
||||
WINTOOL = y
|
||||
|
@ -94,15 +94,21 @@ ifeq ($(CONFIG_DEBUG_CUSTOMOPT),y)
|
||||
MAXOPTIMIZATION := $(CONFIG_DEBUG_OPTLEVEL)
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_ENDIAN_BIG),y)
|
||||
TARGET_ARCH := armeb
|
||||
else
|
||||
TARGET_ARCH := arm
|
||||
endif
|
||||
|
||||
# NuttX buildroot under Linux or Cygwin
|
||||
|
||||
ifeq ($(CONFIG_ARMV7R_TOOLCHAIN),BUILDROOT)
|
||||
ifeq ($(CONFIG_ARMV7R_OABI_TOOLCHAIN),y)
|
||||
CROSSDEV ?= arm-nuttx-elf-
|
||||
ARCROSSDEV ?= arm-nuttx-elf-
|
||||
CROSSDEV ?= $(TARGET_ARCH)-nuttx-elf-
|
||||
ARCROSSDEV ?= $(TARGET_ARCH)-nuttx-elf-
|
||||
else
|
||||
CROSSDEV ?= arm-nuttx-eabi-
|
||||
ARCROSSDEV ?= arm-nuttx-eabi-
|
||||
CROSSDEV ?= $(TARGET_ARCH)-nuttx-eabi-
|
||||
ARCROSSDEV ?= $(TARGET_ARCH)-nuttx-eabi-
|
||||
endif
|
||||
MAXOPTIMIZATION ?= -Os
|
||||
endif
|
||||
@ -110,16 +116,16 @@ endif
|
||||
# CodeSourcery under Linux
|
||||
|
||||
ifeq ($(CONFIG_ARMV7R_TOOLCHAIN),CODESOURCERYL)
|
||||
CROSSDEV ?= arm-none-eabi-
|
||||
ARCROSSDEV ?= arm-none-eabi-
|
||||
CROSSDEV ?= $(TARGET_ARCH)-none-eabi-
|
||||
ARCROSSDEV ?= $(TARGET_ARCH)-none-eabi-
|
||||
MAXOPTIMIZATION ?= -O2
|
||||
endif
|
||||
|
||||
# CodeSourcery under Windows
|
||||
|
||||
ifeq ($(CONFIG_ARMV7R_TOOLCHAIN),CODESOURCERYW)
|
||||
CROSSDEV ?= arm-none-eabi-
|
||||
ARCROSSDEV ?= arm-none-eabi-
|
||||
CROSSDEV ?= $(TARGET_ARCH)-none-eabi-
|
||||
ARCROSSDEV ?= $(TARGET_ARCH)-none-eabi-
|
||||
MAXOPTIMIZATION ?= -O2
|
||||
ifneq ($(CONFIG_WINDOWS_NATIVE),y)
|
||||
WINTOOL = y
|
||||
@ -129,8 +135,8 @@ endif
|
||||
# devkitARM under Windows
|
||||
|
||||
ifeq ($(CONFIG_ARMV7R_TOOLCHAIN),DEVKITARM)
|
||||
CROSSDEV ?= arm-eabi-
|
||||
ARCROSSDEV ?= arm-eabi-
|
||||
CROSSDEV ?= $(TARGET_ARCH)-eabi-
|
||||
ARCROSSDEV ?= $(TARGET_ARCH)-eabi-
|
||||
ifneq ($(CONFIG_WINDOWS_NATIVE),y)
|
||||
WINTOOL = y
|
||||
endif
|
||||
@ -139,16 +145,16 @@ endif
|
||||
# Generic GNU EABI toolchain on OS X, Linux or any typical Posix system
|
||||
|
||||
ifeq ($(CONFIG_ARMV7R_TOOLCHAIN),GNU_EABIL)
|
||||
CROSSDEV ?= arm-none-eabi-
|
||||
ARCROSSDEV ?= arm-none-eabi-
|
||||
CROSSDEV ?= $(TARGET_ARCH)-none-eabi-
|
||||
ARCROSSDEV ?= $(TARGET_ARCH)-none-eabi-
|
||||
MAXOPTIMIZATION ?= -Os
|
||||
endif
|
||||
|
||||
# Generic GNU EABI toolchain under Windows
|
||||
|
||||
ifeq ($(CONFIG_ARMV7R_TOOLCHAIN),GNU_EABIW)
|
||||
CROSSDEV ?= arm-none-eabi-
|
||||
ARCROSSDEV ?= arm-none-eabi-
|
||||
CROSSDEV ?= $(TARGET_ARCH)-none-eabi-
|
||||
ARCROSSDEV ?= $(TARGET_ARCH)-none-eabi-
|
||||
MAXOPTIMIZATION ?= -Os
|
||||
ifneq ($(CONFIG_WINDOWS_NATIVE),y)
|
||||
WINTOOL = y
|
||||
|
Loading…
Reference in New Issue
Block a user