targets/arduino_101: Refactor to better support other Zephyr targets.
This adds support for ARM/Thumb2 (Cortex-M) architecture, tested with BOARD=qemu_cortex_m3 (i.e. QEMU with Cortex-M emulation). Should also ease porting to other architectures supported by Zephyr. This uses method of passing external libraries and link options into a Zephyr application using ALL_LIBS and LDFLAGS_zephyr make variables, as suggested by the Zephyr developers: https://gerrit.zephyrproject.org/r/#/c/2476/ , and makes sure to append to them, instead of assigning, to not overwrite important target-specific options set by the Zephyr core. JerryScript-DCO-1.0-Signed-off-by: Paul Sokolovsky paul.sokolovsky@linaro.org
This commit is contained in:
@@ -51,6 +51,11 @@ KBUILD_VERBOSE = $(V)
|
||||
|
||||
APP = main-zephyr.c
|
||||
|
||||
ALL_LIBS += $(USER_LIBS)
|
||||
export ALL_LIBS
|
||||
LDFLAGS_zephyr += $(USER_LIB_INCLUDE_DIR)
|
||||
export LDFLAGS_zephyr
|
||||
|
||||
include ${ZEPHYR_BASE}/Makefile.inc
|
||||
|
||||
.PHONY = showconfig
|
||||
|
||||
Reference in New Issue
Block a user