Add auto_bridge to top level Makefile
cmm requires auto_bridge.h from auto_bridge package. Install
auto_bridge.h into staging directory as part of auto_bridge install
target. Change Makefiles to reflect that cmm depends on auto_bridge
being installed.
Change-Id: Id389844911b48ea082344f556a0f0de9ddf67d38
diff --git a/Makefile b/Makefile
index a45ac7c..d88d547 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
default: install
AUTOTOOLS_DIRS:=fci/lib cmm
-KMOD_DIRS:=fci pfe_ctrl
+KMOD_DIRS:=fci pfe_ctrl auto_bridge
DIRS:=$(AUTOTOOLS_DIRS) $(KMOD_DIRS) pfe_firmware
show-AUTOTOOLS_DIRS:
@@ -17,6 +17,13 @@
pfe_ctrl/install:
$(MAKE) -C $(LINUX_DIR) $(LINUX_MAKE_FLAGS) M="$(shell /bin/pwd)/pfe_ctrl" modules_install
+auto_bridge/all:
+ $(MAKE) -C auto_bridge $(LINUX_MAKE_FLAGS) KERNEL_SOURCE=$(LINUX_DIR)
+
+auto_bridge/install:
+ $(MAKE) -C $(LINUX_DIR) $(LINUX_MAKE_FLAGS) M="$(shell /bin/pwd)/auto_bridge" modules_install
+ $(MAKE) -C auto_bridge install
+
fci/all:
$(MAKE) -C fci $(LINUX_MAKE_FLAGS) KERNEL_SOURCE=$(LINUX_DIR)
@@ -25,7 +32,7 @@
$(addsuffix /install,$(KMOD_DIRS)): %/install: %/all
-cmm/all: fci/lib/install
+cmm/all: fci/lib/install auto_bridge/install
%/all:
$(MAKE) -C $* all
diff --git a/auto_bridge/Makefile b/auto_bridge/Makefile
index 89dce01..3395d21 100644
--- a/auto_bridge/Makefile
+++ b/auto_bridge/Makefile
@@ -4,3 +4,6 @@
all:
$(MAKE) -C $(KERNEL_SOURCE) ARCH=arm SUBDIRS="$(TOP_DIR)" modules
+
+install:
+ $(INSTALL) -m 644 include/auto_bridge.h $(STAGING_DIR)/usr/include/