diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-02-19 07:11:32 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-02-19 07:11:32 +0100 |
commit | 9bed26e23fd8d3aa6e8fd40bcb5b0a25dd9d6a36 (patch) | |
tree | ca71811330fb55b4c2cca8c2808d403dd0829132 /mk | |
parent | 2337c434350a215907e7c91ad8491bc35d8005f2 (diff) |
add thumb2 support as an option for cubox-i
Diffstat (limited to 'mk')
-rw-r--r-- | mk/vars.mk | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/mk/vars.mk b/mk/vars.mk index eacf12395..540d0e03b 100644 --- a/mk/vars.mk +++ b/mk/vars.mk @@ -72,15 +72,24 @@ TARGET_CC:= ${TARGET_COMPILER_PREFIX}gcc TARGET_CXX:= ${TARGET_COMPILER_PREFIX}g++ TARGET_LD:= ${TARGET_COMPILER_PREFIX}ld +MODE_FLAGS:= +ifeq ($(ADK_LINUX_ARM),y) +ifeq ($(ADK_LINUX_ARM_WITH_THUMB),y) +MODE_FLAGS:= -mthumb +else +MODE_FLAGS:= -marm +endif +endif + TARGET_CPPFLAGS:= ifeq ($(ADK_LINUX_MICROBLAZE),y) TARGET_CFLAGS:= $(TARGET_CFLAGS_ARCH) -fwrapv -fno-ident $(ADK_TARGET_ABI_CFLAGS) TARGET_CFLAGS_LIBC:= $(TARGET_CFLAGS_ARCH) -fwrapv -fno-ident $(TARGET_OPTIMIZATION) else -TARGET_CFLAGS:= $(TARGET_CFLAGS_ARCH) -fwrapv -fno-ident -fhonour-copts $(ADK_TARGET_ABI_CFLAGS) +TARGET_CFLAGS:= $(TARGET_CFLAGS_ARCH) -fwrapv -fno-ident -fhonour-copts $(ADK_TARGET_ABI_CFLAGS) $(MODE_FLAGS) TARGET_CFLAGS_LIBC:= $(TARGET_CFLAGS_ARCH) -fwrapv -fno-ident -fhonour-copts $(TARGET_OPTIMIZATION) endif -TARGET_CXXFLAGS:= $(TARGET_CFLAGS_ARCH) -fwrapv -fno-ident +TARGET_CXXFLAGS:= $(TARGET_CFLAGS_ARCH) -fwrapv -fno-ident $(MODE_FLAGS) TARGET_LDFLAGS:= -L$(STAGING_TARGET_DIR)/lib -L$(STAGING_TARGET_DIR)/usr/lib \ -Wl,-O1 -Wl,-rpath -Wl,/usr/lib \ -Wl,-rpath-link -Wl,${STAGING_TARGET_DIR}/usr/lib \ |