package/open-plc-utils: install packages to /usr/bin
authorAdam Duskett <Aduskett@gmail.com>
Wed, 17 Jun 2020 22:21:59 +0000 (15:21 -0700)
committerYann E. MORIN <yann.morin.1998@free.fr>
Thu, 18 Jun 2020 19:39:48 +0000 (21:39 +0200)
By default, open-plc-utils installs all of the compiled binaries to
/usr/local/bin which is not in the default path provided by Buildroot.

Passing BIN="$(TARGET_DIR)/usr/bin" to make install forces open-plc-utils to
install the compiled binaries to /usr/bin.

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/open-plc-utils/open-plc-utils.mk

index e1e66bf7e0ff3ea3e66e81fb96ee4ccdd91c1f6e..3030301f7d9eecfc081fd1f84541103ca53fa6cc 100644 (file)
@@ -26,7 +26,8 @@ define OPEN_PLC_UTILS_BUILD_CMDS
 endef
 
 define OPEN_PLC_UTILS_INSTALL_TARGET_CMDS
-       $(TARGET_MAKE_ENV) $(MAKE) ROOTFS=$(TARGET_DIR) -C $(@D) install
+       $(TARGET_MAKE_ENV) $(MAKE) ROOTFS=$(TARGET_DIR) \
+               BIN="$(TARGET_DIR)/usr/bin" -C $(@D) install
 endef
 
 $(eval $(generic-package))