traceroute: pass INSTALL=$(INSTALL) as install time

As reported by Peter, using cp during the installation isn't correct,
as it follows symbolic links, potentially over-writing the busybox
binary through its traceroute symbolic link. To avoid that, we pass
INSTALL=$(INSTALL) during the installation step.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Thomas Petazzoni 2017-12-17 09:56:04 +01:00
parent 06bbe7f7b8
commit a4e713bf34

View File

@ -23,7 +23,8 @@ endef
define TRACEROUTE_INSTALL_TARGET_CMDS
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
DESTDIR=$(TARGET_DIR) prefix=/usr install -C $(@D)
DESTDIR=$(TARGET_DIR) prefix=/usr install \
INSTALL=$(INSTALL) -C $(@D)
endef
$(eval $(generic-package))