summaryrefslogtreecommitdiffstats
path: root/rules/dosfstools.make
diff options
context:
space:
mode:
authorJuergen Beisert <jbe@pengutronix.de>2012-06-29 15:24:39 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2012-06-29 16:03:10 +0200
commitd668fd06b43f039a336681480dbcce39bf1f2250 (patch)
tree104df0c5e8f0526e22f2534bde4ec69b229508d3 /rules/dosfstools.make
parent26d3b3aeb846150045e5739d3fe17cd657e8d912 (diff)
downloadptxdist-d668fd06b43f039a336681480dbcce39bf1f2250.tar.gz
ptxdist-d668fd06b43f039a336681480dbcce39bf1f2250.tar.xz
dosfstools: Fix missing environment forwarding
With the current rule file, PTXdist does not forward any of the required environment variables. Only the DOSFSTOOLS_MAKEVARS settings are used to build the tools, so at least the correct compiler was used, but not the correct header and library include paths for example. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/dosfstools.make')
-rw-r--r--rules/dosfstools.make25
1 files changed, 16 insertions, 9 deletions
diff --git a/rules/dosfstools.make b/rules/dosfstools.make
index 5b9c52732..28f843286 100644
--- a/rules/dosfstools.make
+++ b/rules/dosfstools.make
@@ -27,21 +27,28 @@ DOSFSTOOLS_SOURCE := $(SRCDIR)/$(DOSFSTOOLS_SRC)
DOSFSTOOLS_DIR := $(BUILDDIR)/$(DOSFSTOOLS)
# ----------------------------------------------------------------------------
-# Prepare
+# Prepare (nothing to be done here)
# ----------------------------------------------------------------------------
-DOSFSTOOLS_PATH := PATH=$(CROSS_PATH)
-DOSFSTOOLS_ENV := $(CROSS_ENV)
+DOSFSTOOLS_CONF_TOOL := NO
-DOSFSTOOLS_MAKEVARS := \
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+DOSFSTOOLS_MAKE_ENV := $(CROSS_ENV)
+DOSFSTOOLS_MAKE_OPT := \
OPTFLAGS='-O2 -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' \
PREFIX=/usr \
- SBINDIR=/sbin \
- $(CROSS_ENV_CC)
+ SBINDIR=/sbin
-$(STATEDIR)/dosfstools.prepare:
- @$(call targetinfo)
- @$(call touch)
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+DOSFSTOOLS_INSTALL_OPT := \
+ $(DOSFSTOOLS_MAKE_OPT) \
+ install
# ----------------------------------------------------------------------------
# Target-Install