summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2019-08-17 19:44:43 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-09-02 16:06:19 +0200
commit9ecc872d620c80e6c6c834276058f74d62ffc3cd (patch)
tree7d98123014f383beec4fde44066231a203baf343
parent81a2c49caccb89a2c3b3447dacb2e16a8893d0f3 (diff)
downloadOSELAS.Toolchain-9ecc872d620c80e6c6c834276058f74d62ffc3cd.tar.gz
cross-toolchain: cleanup
Simplify using 'install' and don't create 'toolchain-install-dir'. It has not been used for a long time. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/cross-toolchain.make14
1 files changed, 4 insertions, 10 deletions
diff --git a/rules/cross-toolchain.make b/rules/cross-toolchain.make
index c95f895..b9777a0 100644
--- a/rules/cross-toolchain.make
+++ b/rules/cross-toolchain.make
@@ -19,18 +19,12 @@ CROSS_TOOLCHAIN_LICENSE := ignore
# Install
# ----------------------------------------------------------------------------
+CROSS_TOOLCHAIN_PTXCONFIG := \
+ $(PTXDIST_SYSROOT_CROSS)$(PTXCONF_PREFIX_CROSS)/bin/ptxconfig
+
$(STATEDIR)/cross-toolchain.install:
@$(call targetinfo)
- @if [ -e "${PTXCONF_SYSROOT_CROSS}/bin/ptxconfig" ]; then \
- rm -rf "${PTXCONF_SYSROOT_CROSS}/bin/ptxconfig"; \
- fi
- @cp ${PTXDIST_PTXCONFIG} ${PTXCONF_SYSROOT_CROSS}/bin/ptxconfig
-
- @if [ -e "$(STATEDIR)/toolchain-install-dir" ]; then \
- rm -rf "$(STATEDIR)/toolchain-install-dir"; \
- fi
- @ln -s ${PTXCONF_SYSROOT_CROSS} $(STATEDIR)/toolchain-install-dir
-
+ @install -vD -m644 $(PTXDIST_PTXCONFIG) $(CROSS_TOOLCHAIN_PTXCONFIG)
@$(call touch)
# vim: syntax=make