# -*- makefile -*-
#
# arch/arm/MCONFIG
#
# Special rules for this architecture.  Note that this is actually
# included from the main Makefile, and that pathnames should be
# accordingly.
#

THUMB    = n
CPU_ARCH := armv4
CPU_TUNE := strongarm

KLIBCOPTFLAGS = -Os -march=$(CPU_ARCH) -mtune=$(CPU_TUNE)
KLIBCBITSIZE  = 32
KLIBCREQFLAGS = -fno-exceptions -mno-thumb-interwork

ifeq ($(CONFIG_KLIBC_THUMB),y)
CPU_ARCH := $(CPU_ARCH)t
KLIBCOPTFLAGS += -mthumb
KLIBCLDFLAGS  += --thumb-entry _start
endif

# Extra linkflags when building the shared version of the library
# This address needs to be reachable using normal inter-module
# calls, and work on the memory models for this architecture
KLIBCSHAREDFLAGS = -Ttext 0x01000200
