Patrick Georgi has uploaded this change for review.

View Change

util/nvramtool: Create nvramtool object directories earlier

The existing rule created a potential race condition between creating
the directory and putting files in there, so use our existing
infrastructure for directory creation instead.

Change-Id: If52a9f558c7d9ce85f71ba53232594699c9d357a
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
---
M util/nvramtool/Makefile.inc
1 file changed, 1 insertion(+), 2 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/98/37798/1
diff --git a/util/nvramtool/Makefile.inc b/util/nvramtool/Makefile.inc
index 48f6d86..6974289 100644
--- a/util/nvramtool/Makefile.inc
+++ b/util/nvramtool/Makefile.inc
@@ -36,8 +36,7 @@
nvramtoolobj += win32mmap.o
endif

-$(objutil)/nvramtool $(objutil)/nvramtool/accessors $(objutil)/nvramtool/cli:
- mkdir -p $@
+additional-dirs += $(objutil)/nvramtool/accessors $(objutil)/nvramtool/cli

$(objutil)/nvramtool/%.o: $(top)/util/nvramtool/%.c
printf " HOSTCC $(subst $(objutil)/,,$(@))\n"

To view, visit change 37798. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: If52a9f558c7d9ce85f71ba53232594699c9d357a
Gerrit-Change-Number: 37798
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Georgi <pgeorgi@google.com>
Gerrit-MessageType: newchange