diff --git a/ipc-linux.mak b/ipc-linux.mak
index 788a5a254b2ebde52603a2e13e261ec375e4008d..58a9ceac6c9cf3b5d97c1cec18808d2b4b5a70c5 100644 (file)
--- a/ipc-linux.mak
+++ b/ipc-linux.mak
#
-# Copyright (c) 2012-2013, Texas Instruments Incorporated
+# Copyright (c) 2012-2015 Texas Instruments Incorporated - http://www.ti.com
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
.PHONY: config config-static config-shared
+# If you need to add any compile flags to the build of IPC user
+# libraries, you can use the CFLAGS option to the configure script.
+# For example, to following would add preprocessor define called
+# PRIORITY with a value of 5.
+#
+# CFLAGS="-DPRIORITY=5"
+
+# If the user set DESTDIR (e.g. in products.mak), pass that value via
+# --prefix= option. If DESTDIR is not set, --prefix is not thrown and
+# configure's defaults are used.
+
+ifeq ($(DESTDIR),)
+PREFIX_OPTION=
+else
+PREFIX_OPTION=--prefix=$(DESTDIR)
+endif
+
config:
@echo "Configuring Linux Ipc ..."
./configure --host=$(TOOLCHAIN_LONGNAME) \
+ $(PREFIX_OPTION) \
CC=$(TOOLCHAIN_PREFIX)gcc \
PLATFORM=$(PLATFORM) \
CMEM_INSTALL_DIR=$(CMEM_INSTALL_DIR) \
KERNEL_INSTALL_DIR=$(KERNEL_INSTALL_DIR) \
- DRM_PREFIX=$(DRM_PREFIX)
+ DRM_PREFIX=$(DRM_PREFIX) \
+ AF_RPMSG=$(AF_RPMSG)
config-static:
@echo "Configuring Linux Ipc static only libaries ..."
./configure --host=$(TOOLCHAIN_LONGNAME) --disable-shared \
+ $(PREFIX_OPTION) \
CC=$(TOOLCHAIN_PREFIX)gcc \
PLATFORM=$(PLATFORM) \
CMEM_INSTALL_DIR=$(CMEM_INSTALL_DIR) \
KERNEL_INSTALL_DIR=$(KERNEL_INSTALL_DIR) \
- DRM_PREFIX=$(DRM_PREFIX)
+ DRM_PREFIX=$(DRM_PREFIX) \
+ AF_RPMSG=$(AF_RPMSG)
config-shared:
@echo "Configuring Linux Ipc shared (dynamic) only libaries ..."
./configure --host=$(TOOLCHAIN_LONGNAME) --disable-static \
+ $(PREFIX_OPTION) \
CC=$(TOOLCHAIN_PREFIX)gcc \
PLATFORM=$(PLATFORM) \
CMEM_INSTALL_DIR=$(CMEM_INSTALL_DIR) \
KERNEL_INSTALL_DIR=$(KERNEL_INSTALL_DIR) \
- DRM_PREFIX=$(DRM_PREFIX)
+ DRM_PREFIX=$(DRM_PREFIX) \
+ AF_RPMSG=$(AF_RPMSG)