aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/Kbuild.install
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Kbuild.install')
-rw-r--r--scripts/Kbuild.install7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/Kbuild.install b/scripts/Kbuild.install
index 0788637f8bd33..df02159bf8be0 100644
--- a/scripts/Kbuild.install
+++ b/scripts/Kbuild.install
@@ -27,6 +27,10 @@ quiet_cmd_install = INSTALL $(install-y)
cmd_install = $(install-bin) $(install-y) \
$(INSTALLROOT)$(INSTALLDIR)/$(KLIBCCROSS)bin
+# Link install command
+quiet_cmd_install_links = LN $(install-link-y)
+ cmd_install_links = $(foreach l, $(install-link-y), ln -f $(INSTALLROOT)$(INSTALLDIR)/$(KLIBCCROSS)bin/$(word 2,$(subst =,$(space),$(l))) $(INSTALLROOT)$(INSTALLDIR)/$(KLIBCCROSS)bin/$(word 1,$(subst =,$(space),$(l))) &&) true
+
ifeq ($(KLIBC_INSTALL),1)
# First part - we are descending..
@@ -69,6 +73,9 @@ ifneq ($(install-y),)
else
@:
endif
+ifneq ($(install-link-y),)
+ $(call cmd,install_links)
+endif
# Descending
PHONY += $(subdir-)