[Buildroot] [git commit branch/2020.05.x] package/open-plc-utils: install packages to /usr/bin

Peter Korsgaard peter at korsgaard.com
Wed Jul 15 20:47:45 UTC 2020


commit: https://git.buildroot.net/buildroot/commit/?id=37b4bffac5f4b74275c424b4b466007e610eabe3
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2020.05.x

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 at gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
(cherry picked from commit 35bbcde75c2cb0b0d4a823b67f7fb82f305762ca)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/open-plc-utils/open-plc-utils.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/open-plc-utils/open-plc-utils.mk b/package/open-plc-utils/open-plc-utils.mk
index e1e66bf7e0..3030301f7d 100644
--- a/package/open-plc-utils/open-plc-utils.mk
+++ b/package/open-plc-utils/open-plc-utils.mk
@@ -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))


More information about the buildroot mailing list