@@ -20,6 +20,13 @@ Main git repository:
For cross compiling set up appropriate CC:
make CC=armeb-linux-gnueabihf-gcc
+ Make command options:
+ ODP_RELOC compile library with position independent code;
+ VERBOSE turn on compilation debug;
+ ODP_DEBUG_PRINT (default is yes) more debug information;
+ DEBUG compile gdb friendly code;
+ ODP_HAVE_NETMAP (linux-generic only) turn on netmap packet i/o
+
ODP patches for 3-rd party applications:
git://git.linaro.org/lng/odp-apps.git
@@ -38,7 +38,9 @@ EXTRA_CFLAGS += -I./include/api
# Option for shared libraries.
# Decreases performance with static libraries.
-# EXTRA_CFLAGS += -fPIC
+ifeq ($(ODP_RELOC),yes)
+EXTRA_CFLAGS += -fpic
+endif
ifeq ($(ODP_HAVE_NETMAP),yes)
EXTRA_CFLAGS += -DODP_HAVE_NETMAP
@@ -13,6 +13,12 @@ DOC_DIR = ./doc
LINUX_GENERIC_DIR = ../linux-generic
+# Option for shared libraries.
+# Decreases performance with static libraries.
+ifeq ($(ODP_RELOC),yes)
+EXTRA_CFLAGS += -fpic
+endif
+
MY_PLATFORM = DEVICE_K2K
PLAT_CFLAGS = -D$(MY_PLATFORM)
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> --- README | 7 +++++++ platform/linux-generic/Makefile | 4 +++- platform/linux-keystone2/Makefile | 6 ++++++ 3 files changed, 16 insertions(+), 1 deletion(-)