mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-28 07:43:55 +01:00
Add more default flags for arm-none-eabi:
LIBTYPE ?= static BUILD_CPPFLAGS += -fno-exceptions -fno-rtti Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
0657d2104e
commit
714cf468f3
1 changed files with 10 additions and 3 deletions
|
|
@ -3,7 +3,11 @@
|
||||||
COMPILER_SUITE ?= gcc
|
COMPILER_SUITE ?= gcc
|
||||||
CPP_STANDARD_VERSION ?= 17
|
CPP_STANDARD_VERSION ?= 17
|
||||||
C_STANDARD_VERSION ?= 11
|
C_STANDARD_VERSION ?= 11
|
||||||
|
ifeq ($(TARGET_TRIPLET),arm-none-eabi)
|
||||||
|
LIBTYPE ?= static
|
||||||
|
else
|
||||||
LIBTYPE ?= shared
|
LIBTYPE ?= shared
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(COMPILER_SUITE),gcc)
|
ifeq ($(COMPILER_SUITE),gcc)
|
||||||
DEBUGGER ?= gdb
|
DEBUGGER ?= gdb
|
||||||
|
|
@ -127,8 +131,11 @@ ifeq ($(TARGET_ARCH),x86_64)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(TARGET_TRIPLET),arm-none-eabi)
|
ifeq ($(TARGET_TRIPLET),arm-none-eabi)
|
||||||
|
USE_DISABLE_COMPILER_OPTIMISATION_OPTS = false
|
||||||
BUILD_CFLAGS += -mcpu=cortex-m3 -mthumb
|
BUILD_CFLAGS += -mcpu=cortex-m3 -mthumb
|
||||||
BUILD_CPPFLAGS += -mcpu=cortex-m3 -mthumb
|
BUILD_CPPFLAGS += -mcpu=cortex-m3 -mthumb
|
||||||
|
BUILD_CPPFLAGS += -fno-exceptions
|
||||||
|
BUILD_CPPFLAGS += -fno-rtti
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(COMPILER_SUITE),gcc)
|
ifeq ($(COMPILER_SUITE),gcc)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue