mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
hosted: sanitize handling of HOME_DIR
* HOME_DIR is now either "/" or special "<HOME>" * target-specific "home dir path" is defined solely by PIVOT_ROOT * PIVOT_ROOT path is now defined in toplevel config files * Make Samsung YP-R0/R1 and SONY_NWZ use PIVOT_ROOT too * Do not prepend PIVOT_ROOT path if the path already has it! * Do not play these games for __PCTOOL__ builds Change-Id: I3d51ad902a5f9cafe45ba15ba654f30f1ec6113a
This commit is contained in:
parent
a5add3982b
commit
db6f21e295
16 changed files with 58 additions and 68 deletions
|
|
@ -91,8 +91,14 @@ int rolo_load(const char* filename)
|
|||
lcd_remote_update();
|
||||
#endif
|
||||
|
||||
#ifdef PIVOT_ROOT
|
||||
#define EXECDIR PIVOT_ROOT
|
||||
#else
|
||||
#define EXECDIR ROOT_DIR
|
||||
#endif
|
||||
|
||||
char buf[256];
|
||||
snprintf(buf, sizeof(buf), "%s/%s", HOME_DIR, filename);
|
||||
snprintf(buf, sizeof(buf), "%s/%s", EXECDIR, filename);
|
||||
execl(buf, BOOTFILE, NULL);
|
||||
|
||||
rolo_error("Failed to launch!", strerror(errno));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue