Linux: Update autotools to require KERNEL path
authorArnie Reynoso <ariner@ti.com>
Wed, 16 Oct 2013 17:14:10 +0000 (10:14 -0700)
committerChris Ring <cring@ti.com>
Thu, 17 Oct 2013 18:03:12 +0000 (11:03 -0700)
The IPC Linx-side build now requires KERNEL path to be set to
build all libraries and test applications redardless of platform.

This change is needed since rpmsg has been made Linux kernel version
aware.

configure.ac
ipc-linux.mak
linux/src/api/Makefile.am
linux/src/api/Makefile.in
linux/src/daemon/Makefile.am
linux/src/daemon/Makefile.in
linux/src/tests/Makefile.am
linux/src/tests/Makefile.in
linux/src/utils/Makefile.am
linux/src/utils/Makefile.in
products.mak

index 355d2286af777878544bb4c6f9024494121699bd..69454178995c7eb56498a4ae3fb30bfe5cefef4e 100644 (file)
@@ -89,6 +89,10 @@ AS_IF([test "x$PLATFORM" = "xomapl138"],
   [AC_MSG_NOTICE([PLATFORM is not set. All supported platforms will be built ....])],
   [AC_MSG_ERROR([PLATFORM is set to "${PLATFORM}": run ./configure --help for available PLATFORM options])])])])])])])])
 
+# Test for required KERNEL path
+AS_IF([test "x$KERNEL_INSTALL_DIR" = "x"],
+  [AC_MSG_ERROR([Kernel path for ${PLATFORM} is not set])])
+
 # Ignore KERNEL path when no platform is set
 AS_IF([test "x$PLATFORM" = "x"], [KERNEL_INSTALL_DIR=])
 AS_IF([test "x$PLATFORM" = "x"], [DRM_PREFIX=])
index 788a5a254b2ebde52603a2e13e261ec375e4008d..b0813e779a16ecd7e06ff0081e1a008a65c76d2b 100644 (file)
@@ -35,6 +35,18 @@ include products.mak
 
 .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, in the very rare case where your kernel's AF_RPMSG
+# definition isn't correctly detected by IPC (see
+# linux/include/net/rpmsg.h), you can provide your kernel's definition
+# of AF_RPMSG by adding this CFLAGS line to the configure commands below
+# to force the value of AF_RPMSG to 42:
+#
+#            CFLAGS="-DAF_RPMSG=42"
+
+
 config:
        @echo "Configuring Linux Ipc ..."
        ./configure --host=$(TOOLCHAIN_LONGNAME) \
index e072f0a6e4cfab09e45cb67568c20711d98e0271..6f03c8ded5802056a0329cae4769225ae385727e 100644 (file)
@@ -33,7 +33,8 @@
 
 # additional include paths necessary to compile the library
 AM_CFLAGS = -I$(top_srcdir)/linux/include -I$(top_srcdir)/hlos_common/include \
-        -I$(top_srcdir)/packages -D_GNU_SOURCE -Wall @AM_CFLAGS@
+        -I$(top_srcdir)/packages -I$(KERNEL_INSTALL_DIR)/include/generated/uapi\
+        -D_GNU_SOURCE -Wall @AM_CFLAGS@
 
 ###############################################################################
 # THE LIBRARIES TO BUILD
index 75fef243aa83b0a3f7cbf56c63fc7b048474fc90..82e9d943655ad79ba26bc9c6e9ab450e152f8211 100644 (file)
@@ -85,7 +85,8 @@ AMTAR = @AMTAR@
 
 # additional include paths necessary to compile the library
 AM_CFLAGS = -I$(top_srcdir)/linux/include -I$(top_srcdir)/hlos_common/include \
-        -I$(top_srcdir)/packages -D_GNU_SOURCE -Wall @AM_CFLAGS@
+        -I$(top_srcdir)/packages -I$(KERNEL_INSTALL_DIR)/include/generated/uapi\
+        -D_GNU_SOURCE -Wall @AM_CFLAGS@
 
 AM_LDFLAGS = @AM_LDFLAGS@
 AR = @AR@
index 32af0a0e528012d403b77e37e941f72ffceeea29..4634d64b8a73a2149e15b42efeda4e2c39b46322 100644 (file)
@@ -33,7 +33,8 @@
 
 # additional include paths necessary to compile the program
 AM_CFLAGS = -I$(top_srcdir)/linux/include -I$(top_srcdir)/hlos_common/include \
-        -I$(top_srcdir)/packages -D_GNU_SOURCE -Wall @AM_CFLAGS@
+        -I$(top_srcdir)/packages -I$(KERNEL_INSTALL_DIR)/include/generated/uapi\
+        -D_GNU_SOURCE -Wall @AM_CFLAGS@
 
 ###############################################################################
 # THE PROGRAMS TO BUILD
index 169d63b95480fbd1ba74df359d324b0f677c1559..440ae4ec2255b05e1e5562c152c64453c43c0177 100644 (file)
@@ -126,7 +126,8 @@ AMTAR = @AMTAR@
 
 # additional include paths necessary to compile the program
 AM_CFLAGS = -I$(top_srcdir)/linux/include -I$(top_srcdir)/hlos_common/include \
-        -I$(top_srcdir)/packages -D_GNU_SOURCE -Wall @AM_CFLAGS@
+        -I$(top_srcdir)/packages -I$(KERNEL_INSTALL_DIR)/include/generated/uapi\
+        -D_GNU_SOURCE -Wall @AM_CFLAGS@
 
 AM_LDFLAGS = @AM_LDFLAGS@
 AR = @AR@
index fbbf52b82598224872ca96456084d3b45e5a87f9..b064b6b846b3aca203989540f4fab4c792ba994b 100644 (file)
@@ -34,6 +34,7 @@
 # additional include paths necessary to compile the program
 AM_CFLAGS = -I$(top_srcdir)/linux/include -I$(top_srcdir)/hlos_common/include \
         -I$(top_srcdir)/packages -I$(CMEM_INSTALL_DIR)/include \
+        -I$(KERNEL_INSTALL_DIR)/include/generated/uapi \
         -I$(DRM_PREFIX)/usr/include \
         -I$(DRM_PREFIX)/usr/include/libdrm \
         -I$(DRM_PREFIX)/usr/include/omap \
index c806d3369ede88a65677cc9918ee5f673acc4c47..ab106ae019b9724493e4aa97312f4c0a07a8fae1 100644 (file)
@@ -147,6 +147,7 @@ AMTAR = @AMTAR@
 # additional include paths necessary to compile the program
 AM_CFLAGS = -I$(top_srcdir)/linux/include -I$(top_srcdir)/hlos_common/include \
         -I$(top_srcdir)/packages -I$(CMEM_INSTALL_DIR)/include \
+        -I$(KERNEL_INSTALL_DIR)/include/generated/uapi \
         -I$(DRM_PREFIX)/usr/include \
         -I$(DRM_PREFIX)/usr/include/libdrm \
         -I$(DRM_PREFIX)/usr/include/omap \
index 6fdf887f781a99867b44f03fa890e38689f79de3..3c14ffc598bbab4212f3d3f5fd407739fab0e08c 100644 (file)
@@ -33,7 +33,8 @@
 
 # additional include paths necessary to compile the library
 AM_CFLAGS = -I$(top_srcdir)/linux/include -I$(top_srcdir)/hlos_common/include \
-        -I$(top_srcdir)/packages -D_GNU_SOURCE -Wall @AM_CFLAGS@
+        -I$(top_srcdir)/packages -I$(KERNEL_INSTALL_DIR)/include/generated/uapi\
+        -D_GNU_SOURCE -Wall @AM_CFLAGS@
 
 ###############################################################################
 # THE LIBRARIES TO BUILD
index 575707aaa2c13e796906515e4b918459dc7a7935..8df54c9447a3b424522e72d7a3a4eea69ca3e2f2 100644 (file)
@@ -94,7 +94,8 @@ AMTAR = @AMTAR@
 
 # additional include paths necessary to compile the library
 AM_CFLAGS = -I$(top_srcdir)/linux/include -I$(top_srcdir)/hlos_common/include \
-        -I$(top_srcdir)/packages -D_GNU_SOURCE -Wall @AM_CFLAGS@
+        -I$(top_srcdir)/packages -I$(KERNEL_INSTALL_DIR)/include/generated/uapi\
+        -D_GNU_SOURCE -Wall @AM_CFLAGS@
 
 AM_LDFLAGS = @AM_LDFLAGS@
 AR = @AR@
index 58418dfad4a1f4d979309549acce12aa4049c251..44f84310254f7872d0198d8392710275c44572bb 100644 (file)
@@ -56,8 +56,7 @@ TOOLCHAIN_LONGNAME ?= arm-none-linux-gnueabi
 TOOLCHAIN_INSTALL_DIR ?= $(DEPOT)/_your_arm_code_gen_install_
 TOOLCHAIN_PREFIX ?= $(TOOLCHAIN_INSTALL_DIR)/bin/$(TOOLCHAIN_LONGNAME)-
 
-# Optional: Path to Linux Kernel - needed to build the MmRpc user libraries
-# (for devices that support it)
+# Path to Linux Kernel - needed to build the IPC user libraries
 #
 KERNEL_INSTALL_DIR ?=