Skip to content

Commit

Permalink
buildsystem: features.kcnf and ARCH_HAS_NEWLIB
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Andrianov <andrew@ncrmnt.org>
  • Loading branch information
nekromant committed Sep 27, 2013
1 parent bf77024 commit ad7dce5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
7 changes: 7 additions & 0 deletions features.kcnf
@@ -0,0 +1,7 @@
config ARCH_HAS_ANTARES_STARTUP
bool

config ARCH_HAS_NEWLIB
bool


4 changes: 2 additions & 2 deletions kcnf
@@ -1,8 +1,8 @@
mainmenu "Antares Firmware Config"

source antares/features.kcnf

menu "Target platform settings"
config ARCH_HAS_ANTARES_STARTUP
bool

choice
prompt "Target architecture"
Expand Down
4 changes: 3 additions & 1 deletion src/arch/arm/stm32/arch.mk
Expand Up @@ -3,7 +3,9 @@
# therefore we can't calc the offsets from kconfig at the runtime.
# I solved that by running gcc preprocessor against an ld file template

ARCH_FEATURES:=ANTARES_STARTUP
ARCH_FEATURES:=\
ANTARES_STARTUP \
NEWLIB

GCC_LDFILE_IN=$(ANTARES_DIR)/src/arch/arm/stm32/generic.lds
GCC_LDFILE=$(TMPDIR)/ldfile.lds
Expand Down
2 changes: 1 addition & 1 deletion src/lib/kcnf
Expand Up @@ -53,7 +53,7 @@ endif


menuconfig LIB_NLIBSTUBS
depends on ARCH_ARM
depends on ARCH_HAS_NEWLIB
bool "Configure newlib stubs"

if LIB_NLIBSTUBS
Expand Down

0 comments on commit ad7dce5

Please sign in to comment.