Create the sfs root directory if missing
Signed-off-by: Junjie Mao <junjie.mao@hotmail.com>
This commit is contained in:
parent
b20d96a599
commit
2d1c2001f5
1
.gitignore
vendored
1
.gitignore
vendored
@ -18,3 +18,4 @@ a.out
|
|||||||
*.log
|
*.log
|
||||||
*.exe
|
*.exe
|
||||||
chytesting
|
chytesting
|
||||||
|
disk0
|
@ -273,6 +273,9 @@ $(foreach p,$(USER_BINS),$(eval $(call fscopy,$(p),$(SFSROOT)$(SLASH))))
|
|||||||
$(SFSROOT):
|
$(SFSROOT):
|
||||||
if [ ! -d "$(SFSROOT)" ]; then mkdir $(SFSROOT); fi
|
if [ ! -d "$(SFSROOT)" ]; then mkdir $(SFSROOT); fi
|
||||||
|
|
||||||
|
$(SFSROOT):
|
||||||
|
$(V)$(MKDIR) $@
|
||||||
|
|
||||||
$(SFSIMG): $(SFSROOT) $(SFSBINS) | $(call totarget,mksfs)
|
$(SFSIMG): $(SFSROOT) $(SFSBINS) | $(call totarget,mksfs)
|
||||||
$(V)dd if=/dev/zero of=$@ bs=1M count=128
|
$(V)dd if=/dev/zero of=$@ bs=1M count=128
|
||||||
@$(call totarget,mksfs) $@ $(SFSROOT)
|
@$(call totarget,mksfs) $@ $(SFSROOT)
|
||||||
|
@ -261,6 +261,9 @@ endef
|
|||||||
|
|
||||||
$(foreach p,$(USER_BINS),$(eval $(call fscopy,$(p),$(SFSROOT)$(SLASH))))
|
$(foreach p,$(USER_BINS),$(eval $(call fscopy,$(p),$(SFSROOT)$(SLASH))))
|
||||||
|
|
||||||
|
$(SFSROOT):
|
||||||
|
$(V)$(MKDIR) $@
|
||||||
|
|
||||||
$(SFSIMG): $(SFSROOT) $(SFSBINS) | $(call totarget,mksfs)
|
$(SFSIMG): $(SFSROOT) $(SFSBINS) | $(call totarget,mksfs)
|
||||||
$(V)dd if=/dev/zero of=$@ bs=1M count=128
|
$(V)dd if=/dev/zero of=$@ bs=1M count=128
|
||||||
@$(call totarget,mksfs) $@ $(SFSROOT)
|
@$(call totarget,mksfs) $@ $(SFSROOT)
|
||||||
|
Loading…
Reference in New Issue
Block a user