[Buildroot] [PATCH] package/uboot-tools: create /var/lock directory for fw_printenv
Anton Leontiev
aleontiev at elvees.com
Sun Oct 4 12:55:38 UTC 2020
fw_setenv/fw_printenv create lock-files in /var/lock. If this directory
doesn't exist tools fail with following error:
Error opening lock file /var/lock/fw_printenv.lock
Signed-off-by: Anton Leontiev <aleontiev at elvees.com>
---
package/uboot-tools/uboot-tools.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/uboot-tools/uboot-tools.mk b/package/uboot-tools/uboot-tools.mk
index a06c25998f..578702f04e 100644
--- a/package/uboot-tools/uboot-tools.mk
+++ b/package/uboot-tools/uboot-tools.mk
@@ -65,6 +65,7 @@ ifeq ($(BR2_PACKAGE_UBOOT_TOOLS_FWPRINTENV),y)
define UBOOT_TOOLS_INSTALL_FWPRINTENV
$(INSTALL) -m 0755 -D $(@D)/tools/env/fw_printenv $(TARGET_DIR)/usr/sbin/fw_printenv
ln -sf fw_printenv $(TARGET_DIR)/usr/sbin/fw_setenv
+ $(INSTALL) -m 0755 -d $(TARGET_DIR)/var/lock
endef
endif
--
2.25.0
More information about the buildroot
mailing list