mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
simulator: Fully simulate external storage.
The external storage will be created during make install, as simext folder in the build directory. Upon pressing the e key the sim will mount (virtually ) this into the root directory. It can be accessed in the same way as an sd/mmc card on real targets. This requires quite some path trickery in io.c. Change-Id: I2fa9070a3146101ec5655b5b4115ca349d1d4bf4
This commit is contained in:
parent
0f928f8785
commit
46137ebd4d
4 changed files with 72 additions and 21 deletions
|
@ -355,19 +355,23 @@ voice: voicetools $(BUILDDIR)/apps/features
|
|||
endif
|
||||
|
||||
ifeq (,$(findstring android, $(APP_TYPE)))
|
||||
|
||||
simext:
|
||||
$(SILENT)mkdir -p $@
|
||||
|
||||
bininstall: $(BUILDDIR)/$(BINARY)
|
||||
@echo "Installing your rockbox binary in your '$(RBPREFIX)' dir"
|
||||
$(SILENT)cp $(BINARY) "$(RBPREFIX)/.rockbox/"
|
||||
|
||||
install:
|
||||
install: simext
|
||||
@echo "Installing your build in your '$(RBPREFIX)' dir"
|
||||
$(SILENT)$(TOOLSDIR)/buildzip.pl $(VERBOSEOPT) --app=$(APPLICATION) -m "$(MODELNAME)" -i "$(TARGET_ID)" $(INSTALL) -z "zip -r0" -r "$(ROOTDIR)" --rbdir="$(RBDIR)" -f 0 $(TARGET) $(BINARY)
|
||||
|
||||
fullinstall:
|
||||
fullinstall: simext
|
||||
@echo "Installing a full setup in your '$(RBPREFIX)' dir"
|
||||
$(SILENT)$(TOOLSDIR)/buildzip.pl $(VERBOSEOPT) --app=$(APPLICATION) -m "$(MODELNAME)" -i "$(TARGET_ID)" $(INSTALL) -z "zip -r0" -r "$(ROOTDIR)" --rbdir="$(RBDIR)" -f 2 $(TARGET) $(BINARY)
|
||||
|
||||
symlinkinstall:
|
||||
symlinkinstall: simext
|
||||
@echo "Installing a full setup with links in your '$(RBPREFIX)' dir"
|
||||
$(SILENT)$(TOOLSDIR)/buildzip.pl $(VERBOSEOPT) --app=$(APPLICATION) -m "$(MODELNAME)" -i "$(TARGET_ID)" $(INSTALL) -z "zip -r0" -r "$(ROOTDIR)" --rbdir="$(RBDIR)" -f 2 $(TARGET) $(BINARY) -l
|
||||
endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue