summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2019-08-09 15:38:55 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-09-02 16:06:19 +0200
commite3ff697371d51a90c8de6c31d60adfac913efb17 (patch)
treecb8cd1d21d89992746c814a8fc329783e0843c99
parent3bc53c891db1bfc9a093f362a84431cdfe3327f8 (diff)
downloadOSELAS.Toolchain-e3ff697371d51a90c8de6c31d60adfac913efb17.tar.gz
cross-elf2flt: use symlinks instead of hardlinks
This makes it less likely to accidentally duplicate the file. Also, Debian uses symlinks for this as well. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/cross-elf2flt.make7
1 files changed, 7 insertions, 0 deletions
diff --git a/rules/cross-elf2flt.make b/rules/cross-elf2flt.make
index 75dbc61..48afb66 100644
--- a/rules/cross-elf2flt.make
+++ b/rules/cross-elf2flt.make
@@ -43,5 +43,12 @@ CROSS_ELF2FLT_CONF_OPT := \
--with-binutils-build-dir=$(CROSS_BINUTILS_BUILDDIR) \
--with-libbfd="$(CROSS_BINUTILS_BUILDDIR)/bfd/libbfd.a -lz -ldl"
+$(STATEDIR)/cross-elf2flt.install:
+ @$(call targetinfo)
+ @$(call world/install, CROSS_ELF2FLT)
+ @for bin in $(CROSS_ELF2FLT_PKGDIR)$(PTXCONF_PREFIX_CROSS)/$(PTXCONF_GNU_TARGET)/bin/*; do \
+ ln -vsf ../../bin/$(COMPILER_PREFIX)$$(basename $${bin}) $${bin} || break; \
+ done
+ @$(call touch)
# vim: syntax=make