POSIX: Added PX4_ROOTFSDIR to file paths

Set a default path relative to current dir for the posix target.

Running make posixrun will create the required directoroes and then run
mainapp from its build location.

PX4_ROOTFSDIR is set to nothing for nuttx.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-06-11 21:36:13 -07:00
parent 0c43803ec7
commit 4d1ae6269b
10 changed files with 25 additions and 14 deletions
+1 -1
View File
@@ -695,7 +695,7 @@ param_reset_excludes(const char *excludes[], int num_excludes)
param_notify_changes();
}
static const char *param_default_file = "/eeprom/parameters";
static const char *param_default_file = PX4_ROOTFSDIR"/eeprom/parameters";
static char *param_user_file = NULL;
int