[layer23] Header file for last commit
[osmocom-bb.git] / src / Makefile
index 3619d49..6d16b7d 100644 (file)
@@ -8,7 +8,9 @@ CROSS_TOOL_PREFIX=arm-elf-
 
 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
 
@@ -33,8 +35,10 @@ shared/libosmocore/build-target:
        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