buildsystem: ensure directory exists before use
In some cases we request mktemp to create a temporary file in $(obj)/mainboard/... before it exists. Let's make sure the directory exists Change-Id: I51f0065c30b1f25eb501a6fd5edefb3f4c15d0ab Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com> Reviewed-on: http://review.coreboot.org/1532 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones <marcj303@gmail.com>
This commit is contained in:
parent
14b248b4a2
commit
16c7ad7921
|
@ -126,7 +126,7 @@ cbfs-files-handler= \
|
||||||
$(eval tmp-cbfs-file:= $($(2)-file))) \
|
$(eval tmp-cbfs-file:= $($(2)-file))) \
|
||||||
$(if $(tmp-cbfs-method), \
|
$(if $(tmp-cbfs-method), \
|
||||||
$(eval tmp-old-cbfs-file:=$(tmp-cbfs-file)) \
|
$(eval tmp-old-cbfs-file:=$(tmp-cbfs-file)) \
|
||||||
$(eval tmp-cbfs-file:=$(shell mktemp $(obj)/mainboard/$(MAINBOARDDIR)/cbfs-file.XXXXXX).out) \
|
$(eval tmp-cbfs-file:=$(shell mkdir -p $(obj)/mainboard/$(MAINBOARDDIR); mktemp $(obj)/mainboard/$(MAINBOARDDIR)/cbfs-file.XXXXXX).out) \
|
||||||
$(call cbfs-files-processor-$(tmp-cbfs-method),$(tmp-old-cbfs-file),$(tmp-cbfs-file))) \
|
$(call cbfs-files-processor-$(tmp-cbfs-method),$(tmp-old-cbfs-file),$(tmp-cbfs-file))) \
|
||||||
$(eval cbfs-files += $(tmp-cbfs-file)|$(2)|$($(2)-type)|$($(2)-compression)|$($(2)-position)) \
|
$(eval cbfs-files += $(tmp-cbfs-file)|$(2)|$($(2)-type)|$($(2)-compression)|$($(2)-position)) \
|
||||||
$(eval $(2)-name:=) \
|
$(eval $(2)-name:=) \
|
||||||
|
|
Loading…
Reference in New Issue