diff options
author | Thomas Martitz <kugel@rockbox.org> | 2014-02-22 23:17:16 +0100 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2014-02-23 20:23:52 +0100 |
commit | 46137ebd4d59d7a91d0b8d98d846a3fd2ec70f5c (patch) | |
tree | f7e9762b88973d363f17a0758da5aa3beeb8dc27 /tools/root.make | |
parent | 0f928f87850153a38c7e6cfafd283ce4f52a0666 (diff) | |
download | rockbox-46137ebd4d59d7a91d0b8d98d846a3fd2ec70f5c.tar.gz rockbox-46137ebd4d59d7a91d0b8d98d846a3fd2ec70f5c.zip |
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
Diffstat (limited to 'tools/root.make')
-rw-r--r-- | tools/root.make | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/root.make b/tools/root.make index 20e1ce3b53..4d58e26e8e 100644 --- a/tools/root.make +++ b/tools/root.make | |||
@@ -355,19 +355,23 @@ voice: voicetools $(BUILDDIR)/apps/features | |||
355 | endif | 355 | endif |
356 | 356 | ||
357 | ifeq (,$(findstring android, $(APP_TYPE))) | 357 | ifeq (,$(findstring android, $(APP_TYPE))) |
358 | |||
359 | simext: | ||
360 | $(SILENT)mkdir -p $@ | ||
361 | |||
358 | bininstall: $(BUILDDIR)/$(BINARY) | 362 | bininstall: $(BUILDDIR)/$(BINARY) |
359 | @echo "Installing your rockbox binary in your '$(RBPREFIX)' dir" | 363 | @echo "Installing your rockbox binary in your '$(RBPREFIX)' dir" |
360 | $(SILENT)cp $(BINARY) "$(RBPREFIX)/.rockbox/" | 364 | $(SILENT)cp $(BINARY) "$(RBPREFIX)/.rockbox/" |
361 | 365 | ||
362 | install: | 366 | install: simext |
363 | @echo "Installing your build in your '$(RBPREFIX)' dir" | 367 | @echo "Installing your build in your '$(RBPREFIX)' dir" |
364 | $(SILENT)$(TOOLSDIR)/buildzip.pl $(VERBOSEOPT) --app=$(APPLICATION) -m "$(MODELNAME)" -i "$(TARGET_ID)" $(INSTALL) -z "zip -r0" -r "$(ROOTDIR)" --rbdir="$(RBDIR)" -f 0 $(TARGET) $(BINARY) | 368 | $(SILENT)$(TOOLSDIR)/buildzip.pl $(VERBOSEOPT) --app=$(APPLICATION) -m "$(MODELNAME)" -i "$(TARGET_ID)" $(INSTALL) -z "zip -r0" -r "$(ROOTDIR)" --rbdir="$(RBDIR)" -f 0 $(TARGET) $(BINARY) |
365 | 369 | ||
366 | fullinstall: | 370 | fullinstall: simext |
367 | @echo "Installing a full setup in your '$(RBPREFIX)' dir" | 371 | @echo "Installing a full setup in your '$(RBPREFIX)' dir" |
368 | $(SILENT)$(TOOLSDIR)/buildzip.pl $(VERBOSEOPT) --app=$(APPLICATION) -m "$(MODELNAME)" -i "$(TARGET_ID)" $(INSTALL) -z "zip -r0" -r "$(ROOTDIR)" --rbdir="$(RBDIR)" -f 2 $(TARGET) $(BINARY) | 372 | $(SILENT)$(TOOLSDIR)/buildzip.pl $(VERBOSEOPT) --app=$(APPLICATION) -m "$(MODELNAME)" -i "$(TARGET_ID)" $(INSTALL) -z "zip -r0" -r "$(ROOTDIR)" --rbdir="$(RBDIR)" -f 2 $(TARGET) $(BINARY) |
369 | 373 | ||
370 | symlinkinstall: | 374 | symlinkinstall: simext |
371 | @echo "Installing a full setup with links in your '$(RBPREFIX)' dir" | 375 | @echo "Installing a full setup with links in your '$(RBPREFIX)' dir" |
372 | $(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 | 376 | $(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 |
373 | endif | 377 | endif |