blob: 867fd397db79e026767ea59fb1aed0bdae2e93a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
$(info ZEPHYR_SYSROOT:${ZEPHYR_SYSROOT})
LIBGCC_DIR = $(shell dirname `$(CC) -print-libgcc-file-name`)
$(info LIBGCCDIR:${LIBGCC_DIR} )
#NEWLIB_DIR = $(shell `$(CC) -print-multi-directory`)
#$(info NEWLIB_DIR:${NEWLIB_DIR})
LIB_INCLUDE_DIR += -L $(LIBGCC_DIR) -L $(ZEPHYR_SYSROOT)/usr/lib/$(NEWLIB_DIR)
$(info LIB_INCLUDE_DIR:${LIB_INCLUDE_DIR})
TOOLCHAIN_CFLAGS = -I$(ZEPHYR_SYSROOT)/usr/include
$(info TOOLCHAIN_CFLAGS:${TOOLCHAIN_CFLAGS})
TOOLCHAIN_LIBS = gcc
export LIB_INCLUDE_DIR CROSS_COMPILE TOOLCHAIN_LIBS TOOLCHAIN_CFLAGS
|