summaryrefslogtreecommitdiffstats
path: root/rules/i2c-tools.make
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2010-01-20 09:49:05 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2010-01-20 09:52:21 +0100
commitd8d9e503d74712f37b477a033896bb5d37b1b8c5 (patch)
tree48c7789454258fd25fb287867368439e19760b24 /rules/i2c-tools.make
parent85255431b2b5f2d21d84cd0e34028692c0bf7523 (diff)
downloadptxdist-d8d9e503d74712f37b477a033896bb5d37b1b8c5.tar.gz
ptxdist-d8d9e503d74712f37b477a033896bb5d37b1b8c5.tar.xz
[i2c-tools] install headers to non standard location
they collide with the headers comming with the toolchain. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'rules/i2c-tools.make')
-rw-r--r--rules/i2c-tools.make21
1 files changed, 11 insertions, 10 deletions
diff --git a/rules/i2c-tools.make b/rules/i2c-tools.make
index 9ef66f90b..922540355 100644
--- a/rules/i2c-tools.make
+++ b/rules/i2c-tools.make
@@ -37,20 +37,21 @@ $(I2C_TOOLS_SOURCE):
I2C_TOOLS_PATH := PATH=$(CROSS_PATH)
I2C_TOOLS_ENV := $(CROSS_ENV)
-I2C_TOOLS_MAKEVARS := prefix= $(CROSS_ENV_CC)
-$(STATEDIR)/i2c-tools.prepare:
- @$(call targetinfo)
- @$(call touch)
+I2C_TOOLS_MAKE_OPT := \
+ prefix= \
+ KERNELVERSION=$(KERNEL_VERSION) \
+ $(CROSS_ENV_CC)
-# ----------------------------------------------------------------------------
-# Compile
-# ----------------------------------------------------------------------------
+# install the header files to include/i2c-tools
+# this way they don't collide with the toolchain's i2c headers
+I2C_TOOLS_INSTALL_OPT := \
+ $(I2C_TOOLS_MAKE_OPT) \
+ incdir="\$$(prefix)/include/i2c-tools" \
+ install
-$(STATEDIR)/i2c-tools.compile:
+$(STATEDIR)/i2c-tools.prepare:
@$(call targetinfo)
- cd $(I2C_TOOLS_DIR) && \
- $(I2C_TOOLS_PATH) $(MAKE) $(PARALLELMFLAGS) $(I2C_TOOLS_MAKEVARS)
@$(call touch)
# ----------------------------------------------------------------------------