Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/uboot-tools: create /var/lock directory for fw_printenv
@ 2020-10-04 12:55 Anton Leontiev
  2020-10-14 21:55 ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Anton Leontiev @ 2020-10-04 12:55 UTC (permalink / raw)
  To: buildroot

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@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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-10-15 13:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-04 12:55 [Buildroot] [PATCH] package/uboot-tools: create /var/lock directory for fw_printenv Anton Leontiev
2020-10-14 21:55 ` Thomas Petazzoni
2020-10-15 12:42   ` Norbert Lange
2020-10-15 13:46     ` Michael Nosthoff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox