TOPDIR=$(shell pwd)
OSMOCORE_CONFIGURE_ENV= LIBOSMOCORE_LIBS=$(TOPDIR)/shared/libosmocore/build-host/src/.libs/libosmocore.a \
- LIBOSMOCORE_CFLAGS=-I$(TOPDIR)/shared/libosmocore/include
+ LIBOSMOVTY_LIBS=$(TOPDIR)/shared/libosmocore/build-host/src/vty/.libs/libosmovty.a \
+ LIBOSMOCORE_CFLAGS=-I$(TOPDIR)/shared/libosmocore/include \
+ LIBOSMOVTY_CFLAGS=-I$(TOPDIR)/shared/libosmocore/include
all: libosmocore-host libosmocore-target layer23 osmocon firmware
mkdir $@
shared/libosmocore/build-target/Makefile: shared/libosmocore/configure shared/libosmocore/build-target
- cd shared/libosmocore/build-target && ../configure --host=arm-elf-linux --disable-shared \
- CFLAGS="-Os -ffunction-sections"
+ cd shared/libosmocore/build-target && ../configure \
+ --host=arm-elf-linux --disable-vty --enable-panic-infloop \
+ --disable-shared --disable-talloc --disable-tests \
+ CC="$(CROSS_TOOL_PREFIX)gcc" CFLAGS="-Os -ffunction-sections -I../../../../target/firmware/include"
shared/libosmocore/build-target/src/.libs/libosmocore.a: shared/libosmocore/build-target/Makefile
cd shared/libosmocore/build-target && make