Merge pull request #44171 from advaitjain:cortex-m4-fpu

PiperOrigin-RevId: 338104490
Change-Id: Id9c5bd6287b3409814c9be67e7f7ecd61bc7f4f3
This commit is contained in:
TensorFlower Gardener 2020-10-20 12:02:21 -07:00
commit 86ea5401c4

View File

@ -8,12 +8,10 @@ GCC_TARGET_ARCH := $(TARGET_ARCH)
ifeq ($(TARGET_ARCH), cortex-m0)
CORE=M0
ARM_LDFLAGS := -Wl,--cpu=Cortex-M0
TARGET_SPECIFIC_FLAGS +=
else ifeq ($(TARGET_ARCH), cortex-m3)
CORE=M3
ARM_LDFLAGS := -Wl,--cpu=Cortex-M3
TARGET_SPECIFIC_FLAGS +=
else ifeq ($(TARGET_ARCH), cortex-m33)
CORE=M33
@ -24,7 +22,6 @@ else ifeq ($(TARGET_ARCH), cortex-m33)
else ifeq ($(TARGET_ARCH), cortex-m33+nodsp)
CORE=M33
ARM_LDFLAGS := -Wl,--cpu=Cortex-M33.no_dsp.no_fp
TARGET_SPECIFIC_FLAGS +=
else ifeq ($(TARGET_ARCH), cortex-m4)
CORE=M4
@ -33,6 +30,7 @@ else ifeq ($(TARGET_ARCH), cortex-m4)
else ifeq ($(TARGET_ARCH), cortex-m4+fp)
CORE=M4
ARM_LDFLAGS := -Wl,--cpu=Cortex-M4
TARGET_SPECIFIC_FLAGS += -D__FPU_PRESENT=1 -mfpu=fpv4-sp-d16
FLOAT=hard
GCC_TARGET_ARCH := cortex-m4
@ -45,7 +43,6 @@ else ifeq ($(TARGET_ARCH), cortex-m55)
else ifeq ($(TARGET_ARCH), cortex-m55+nodsp+nofp)
CORE=M55
ARM_LDFLAGS := -Wl,--cpu=8.1-M.Main.mve.no_dsp.no_fp
TARGET_SPECIFIC_FLAGS +=
else ifeq ($(TARGET_ARCH), cortex-m55+nofp)
CORE=M55