mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-20 21:37:39 +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
|
||||||
LIBTYPE ?= shared
|
ifeq ($(TARGET_TRIPLET),arm-none-eabi)
|
||||||
|
LIBTYPE ?= static
|
||||||
|
else
|
||||||
|
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)
|
||||||
|
|
@ -289,7 +296,7 @@ ifeq ($(USE_GFILTER),true)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(USE_PROJECT_LIB),true)
|
ifeq ($(USE_PROJECT_LIB),true)
|
||||||
PROJECTLIB_LDFLAGS += -L$(TOPDIR)/lib -l$(LIBNAME)
|
PROJECTLIB_LDFLAGS += -L$(TOPDIR)/lib -l$(LIBNAME)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(filter jw-build,$(PREREQ_BUILD)),)
|
ifneq ($(filter jw-build,$(PREREQ_BUILD)),)
|
||||||
|
|
@ -409,7 +416,7 @@ ifeq ($(USE_STACK_CHECK),true)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(USE_COMPILER_DEBUG_OPTS),true)
|
ifeq ($(USE_COMPILER_DEBUG_OPTS),true)
|
||||||
#BUILD_EXTRA_DEBUG_FLAGS += -gdwarf-2
|
#BUILD_EXTRA_DEBUG_FLAGS += -gdwarf-2
|
||||||
BUILD_CFLAGS += -g3 $(BUILD_EXTRA_DEBUG_FLAGS)
|
BUILD_CFLAGS += -g3 $(BUILD_EXTRA_DEBUG_FLAGS)
|
||||||
BUILD_CPPFLAGS += -g3 $(BUILD_EXTRA_DEBUG_FLAGS)
|
BUILD_CPPFLAGS += -g3 $(BUILD_EXTRA_DEBUG_FLAGS)
|
||||||
BUILD_LDFLAGS += -g3 $(BUILD_EXTRA_DEBUG_FLAGS)
|
BUILD_LDFLAGS += -g3 $(BUILD_EXTRA_DEBUG_FLAGS)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue