summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2016-06-30 09:03:46 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2016-06-30 09:03:46 +0200
commitb09788e39daea59e9ae34136ce07242ac91ff397 (patch)
treeffa1edab8c8ae2d09e6c59c7691deff395223422
parente11df39bf6e77c37692e5473f382f27b06c57dc4 (diff)
downloadOSELAS.Toolchain-b09788e39daea59e9ae34136ce07242ac91ff397.tar.gz
cross-gcc: don't try to filter out PTXCONF_DESTDIR if it's not set
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/cross-gcc.make2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules/cross-gcc.make b/rules/cross-gcc.make
index 00da7a0..a3372eb 100644
--- a/rules/cross-gcc.make
+++ b/rules/cross-gcc.make
@@ -193,8 +193,10 @@ $(STATEDIR)/cross-gcc.install: $(STATEDIR)/cross-gcc.report
done
@find $(PTXCONF_SYSROOT_CROSS) -name "*.la" -print0 | xargs -0 rm -v -f
+ifneq ($(call remove_quotes,$(PTXCONF_DESTDIR)),)
sed -i -e 's;$(call remove_quotes,$(PTXCONF_DESTDIR));;' \
$(PTXCONF_SYSROOT_CROSS)/lib/gcc/$(PTXCONF_GNU_TARGET)/$(CROSS_GCC_VERSION)/install-tools/mkheaders.conf
+endif
@$(call touch)