Revert "arch: arm: set the architecture via Kconfig"

This reverts commit 3f6884902b.

This commit does not work as intended: the part in arch/arm/Makefile
gets ignored and -mcpu=cortex-m3/4 does not get passed to gcc. It seems
that the zephyr toolchain does not care, but the vxworks assembler
chokes if it is missing, and thinks the CPU does not support thumb ISA

Change-Id: I14d11d3e22dac4952bdab3eb9e2d1c36b1a686c2
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
Benjamin Walsh 2016-03-10 16:29:22 -05:00
commit 7708710229
4 changed files with 7 additions and 9 deletions

View file

@ -7,12 +7,6 @@ cflags-$(CONFIG_LTO) += $(call cc-option,-flto,)
KBUILD_CFLAGS += $(cflags-y)
KBUILD_CXXFLAGS += $(cflags-y)
ifeq ($(CONFIG_CPU_CORTEX_M3),y)
arch-cflags += $(call cc-option, -mthumb -mcpu=cortex-m3)
else ifeq ($(CONFIG_CPU_CORTEX_M4),y)
arch-cflags += $(call cc-option, -mthumb -mcpu=cortex-m4)
endif
QEMU_CPU_TYPE_arm = cortex-m3
QEMU_FLAGS_arm = -cpu $(QEMU_CPU_TYPE_arm) \
-machine lm3s6965evb -nographic