File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 44
44
# virtio-fs
45
45
ENABLE_VIRTIOFS ?= 1
46
46
$(call set-feature, VIRTIOFS)
47
+ MOUNT_FOLDER ?= ./shared
47
48
ifeq ($(call has, VIRTIOFS) , 1)
48
49
OBJS_EXTRA += virtio-fs.o
49
- OPTS += -s ./shared
50
+ OPTS += -s $( MOUNT_FOLDER )
50
51
endif
51
52
52
53
NETDEV ?= tap
@@ -205,7 +206,14 @@ ext4.img:
205
206
$(Q ) dd if=/dev/zero of=$@ bs=4k count=600
206
207
$(Q )$(MKFS_EXT4 ) -F $@
207
208
208
- check : $(BIN ) minimal.dtb $(KERNEL_DATA ) $(INITRD_DATA ) $(DISKIMG_FILE )
209
+ .PHONY : $(MOUNT_FOLDER )
210
+ $(MOUNT_FOLDER ) :
211
+ @if [ ! -d $@ ]; then \
212
+ echo " Creating mount folder: $@ " ; \
213
+ mkdir -p $@ ; \
214
+ fi
215
+
216
+ check : $(BIN ) minimal.dtb $(KERNEL_DATA ) $(INITRD_DATA ) $(DISKIMG_FILE ) $(MOUNT_FOLDER )
209
217
@$(call notice, Ready to launch Linux kernel. Please be patient.)
210
218
$(Q ) ./$(BIN ) -k $(KERNEL_DATA ) -c $(SMP ) -b minimal.dtb -i $(INITRD_DATA ) -n $(NETDEV ) $(OPTS )
211
219
You can’t perform that action at this time.
0 commit comments