2010-08-01 16:15:27 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Copyright (C) 2010 Thomas Martitz
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#ifndef __PATHS_H__
|
|
|
|
#define __PATHS_H__
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "autoconf.h"
|
|
|
|
#include "string-extra.h"
|
|
|
|
|
|
|
|
|
|
|
|
/* name of directory where configuration, fonts and other data
|
|
|
|
* files are stored */
|
|
|
|
#ifdef __PCTOOL__
|
|
|
|
#undef WPS_DIR
|
|
|
|
#else
|
|
|
|
|
|
|
|
/* ROCKBOX_DIR is now defined in autoconf.h for flexible build types */
|
|
|
|
#ifndef ROCKBOX_DIR
|
|
|
|
#error ROCKBOX_DIR not defined (should be in autoconf.h)
|
|
|
|
#endif
|
|
|
|
#define ROCKBOX_DIR_LEN (sizeof(ROCKBOX_DIR)-1)
|
|
|
|
#endif /* def __PCTOOL__ */
|
|
|
|
|
2017-02-23 10:33:19 +00:00
|
|
|
#if !defined(APPLICATION) || defined(SAMSUNG_YPR0) || defined(SAMSUNG_YPR1) || \
|
2017-04-27 09:36:40 +00:00
|
|
|
defined(DX50) || defined(DX90) || defined(SONY_NWZ_LINUX) || \
|
2018-11-05 12:01:55 +00:00
|
|
|
defined(AGPTEK_ROCKER) || defined(XDUOO_X3II) || defined(XDUOO_X20)
|
2010-08-01 16:15:27 +00:00
|
|
|
|
2013-09-10 20:48:34 +00:00
|
|
|
#if defined(SAMSUNG_YPR0) || defined(SAMSUNG_YPR1)
|
2011-12-25 20:11:18 +00:00
|
|
|
#define HOME_DIR "/mnt/media0"
|
2017-02-23 10:33:19 +00:00
|
|
|
#elif defined(SONY_NWZ_LINUX)
|
|
|
|
#define HOME_DIR "/contents"
|
iBasso DX50/DX90: Major code cleanup and reorganization.
Reorganization
- Separated iBasso devices from PLATFORM_ANDROID. These are now standlone
hosted targets. Most device specific code is in the
firmware/target/hosted/ibasso directory.
- No dependency on Android SDK, only the Android NDK is needed.
32 bit Android NDK and Android API Level 16.
- Separate implementation for each device where feasible.
Code cleanup
- Rewrite of existing code, from simple reformat to complete reimplementation.
- New backlight interface, seperating backlight from touchscreen.
- Rewrite of device button handler, removing unneeded code and fixing memory
leaks.
- New Debug messages interface logging to Android adb logcat (DEBUGF, panicf,
logf).
- Rewrite of lcd device handler, removing unneeded code and fixing memory leaks.
- Rewrite of audiohw device handler/pcm interface, removing unneeded code and
fixing memory leaks, enabling 44.1/48kHz pthreaded playback.
- Rewrite of power and powermng, proper shutdown, using batterylog results
(see http://gerrit.rockbox.org/r/#/c/1047/).
- Rewrite of configure (Android NDK) and device specific config.
- Rewrite of the Android NDK specific Makefile.
Misc
- All plugins/games/demos activated.
- Update tinyalsa to latest from https://github.com/tinyalsa/tinyalsa.
Includes
- http://gerrit.rockbox.org/r/#/c/993/
- http://gerrit.rockbox.org/r/#/c/1010/
- http://gerrit.rockbox.org/r/#/c/1035/
Does not include http://gerrit.rockbox.org/r/#/c/1007/ due to new backlight
interface and new option for hold switch, touchscreen, physical button
interaction.
Rockbox needs the iBasso DX50/DX90 loader for startup, see
http://gerrit.rockbox.org/r/#/c/1099/
The loader expects Rockbox to be installed in /mnt/sdcard/.rockbox/. If
/mnt/sdcard/ is accessed as USB mass storage device, Rockbox will exit
gracefully and the loader will restart Rockbox on USB disconnect.
Tested on iBasso DX50.
Compiled (not tested) for iBasso DX90.
Compiled (not tested) for PLATFORM_ANDROID.
Change-Id: I5f5e22e68f5b4cf29c28e2b40b2c265f2beb7ab7
2015-02-02 20:44:29 +00:00
|
|
|
#elif defined(DX50) || defined(DX90)
|
|
|
|
/* Where to put save files like recordings, playlists, screen dumps ...*/
|
|
|
|
#define HOME_DIR "/mnt/sdcard"
|
2020-08-09 20:15:38 +00:00
|
|
|
#elif defined(AGPTEK_ROCKER) || defined(XDUOO_X3II) || defined(XDUOO_X20)
|
|
|
|
#define HOME_DIR "/mnt/sd_0"
|
2011-12-25 20:11:18 +00:00
|
|
|
#else
|
2012-01-17 17:44:29 +00:00
|
|
|
#define HOME_DIR "/"
|
2011-12-25 20:11:18 +00:00
|
|
|
#endif
|
|
|
|
|
2010-08-01 16:15:27 +00:00
|
|
|
/* make sure both are the same for native builds */
|
|
|
|
#undef ROCKBOX_LIBRARY_PATH
|
|
|
|
#define ROCKBOX_LIBRARY_PATH ROCKBOX_DIR
|
|
|
|
|
|
|
|
#define PLUGIN_DIR ROCKBOX_DIR "/rocks"
|
|
|
|
#define CODECS_DIR ROCKBOX_DIR "/codecs"
|
|
|
|
|
2011-12-25 20:11:18 +00:00
|
|
|
#else /* APPLICATION */
|
|
|
|
|
|
|
|
#define HOME_DIR "<HOME>" /* replaced at runtime */
|
2010-08-01 16:15:27 +00:00
|
|
|
|
2010-12-06 22:28:14 +00:00
|
|
|
#define PLUGIN_DIR ROCKBOX_LIBRARY_PATH "/rockbox/rocks"
|
2011-05-31 21:26:18 +00:00
|
|
|
#if (CONFIG_PLATFORM & PLATFORM_ANDROID)
|
|
|
|
#define CODECS_DIR ROCKBOX_BINARY_PATH
|
|
|
|
#else
|
2010-12-06 22:28:14 +00:00
|
|
|
#define CODECS_DIR ROCKBOX_LIBRARY_PATH "/rockbox/codecs"
|
2011-05-31 21:26:18 +00:00
|
|
|
#endif
|
2010-08-01 16:15:27 +00:00
|
|
|
|
2011-12-25 20:11:18 +00:00
|
|
|
#endif /* !APPLICATION || SAMSUNG_YPR0 */
|
2010-08-01 16:15:27 +00:00
|
|
|
|
2014-02-07 17:30:50 +00:00
|
|
|
#define HOME_DIR_LEN (sizeof(HOME_DIR)-1)
|
|
|
|
|
2011-12-25 20:16:39 +00:00
|
|
|
#define REC_BASE_DIR HOME_DIR
|
|
|
|
#define PLAYLIST_CATALOG_DEFAULT_DIR HOME_DIR "/Playlists"
|
|
|
|
|
2010-08-01 16:15:27 +00:00
|
|
|
#define LANG_DIR ROCKBOX_DIR "/langs"
|
|
|
|
|
|
|
|
#define PLUGIN_GAMES_DIR PLUGIN_DIR "/games"
|
|
|
|
#define PLUGIN_APPS_DIR PLUGIN_DIR "/apps"
|
|
|
|
#define PLUGIN_DEMOS_DIR PLUGIN_DIR "/demos"
|
|
|
|
#define VIEWERS_DIR PLUGIN_DIR "/viewers"
|
|
|
|
|
2017-02-23 10:33:19 +00:00
|
|
|
#if defined(APPLICATION) && !(defined(SAMSUNG_YPR0) || defined(SAMSUNG_YPR1) || \
|
2020-08-09 20:15:38 +00:00
|
|
|
defined(DX50) || defined(DX90) || defined(SONY_NWZ_LINUX) || defined(AGPTEK_ROCKER) || defined(XDUOO_X3II) || defined(XDUOO_X20))
|
2011-12-25 20:11:18 +00:00
|
|
|
#define PLUGIN_DATA_DIR ROCKBOX_DIR "/rocks.data"
|
2011-03-02 23:43:54 +00:00
|
|
|
#define PLUGIN_GAMES_DATA_DIR PLUGIN_DATA_DIR
|
|
|
|
#define PLUGIN_APPS_DATA_DIR PLUGIN_DATA_DIR
|
|
|
|
#define PLUGIN_DEMOS_DATA_DIR PLUGIN_DATA_DIR
|
|
|
|
#define VIEWERS_DATA_DIR PLUGIN_DATA_DIR
|
|
|
|
#else
|
|
|
|
#define PLUGIN_DATA_DIR PLUGIN_DIR
|
|
|
|
#define PLUGIN_GAMES_DATA_DIR PLUGIN_DIR "/games"
|
|
|
|
#define PLUGIN_APPS_DATA_DIR PLUGIN_DIR "/apps"
|
|
|
|
#define PLUGIN_DEMOS_DATA_DIR PLUGIN_DIR "/demos"
|
|
|
|
#define VIEWERS_DATA_DIR PLUGIN_DIR "/viewers"
|
|
|
|
#endif
|
2010-08-01 16:15:27 +00:00
|
|
|
|
|
|
|
#define WPS_DIR ROCKBOX_DIR "/wps"
|
|
|
|
#define SBS_DIR WPS_DIR
|
|
|
|
#define THEME_DIR ROCKBOX_DIR "/themes"
|
|
|
|
#define FONT_DIR ROCKBOX_DIR "/fonts"
|
|
|
|
#define ICON_DIR ROCKBOX_DIR "/icons"
|
|
|
|
|
|
|
|
#define BACKDROP_DIR ROCKBOX_DIR "/backdrops"
|
|
|
|
#define EQS_DIR ROCKBOX_DIR "/eqs"
|
|
|
|
|
|
|
|
/* need to fix this once the application gets record/radio abilities */
|
|
|
|
#define RECPRESETS_DIR ROCKBOX_DIR "/recpresets"
|
|
|
|
#define FMPRESET_PATH ROCKBOX_DIR "/fmpresets"
|
|
|
|
|
|
|
|
#define DIRCACHE_FILE ROCKBOX_DIR "/dircache.dat"
|
|
|
|
#define CODEPAGE_DIR ROCKBOX_DIR "/codepages"
|
|
|
|
|
|
|
|
#define VIEWERS_CONFIG ROCKBOX_DIR "/viewers.config"
|
|
|
|
#define CONFIGFILE ROCKBOX_DIR "/config.cfg"
|
|
|
|
#define FIXEDSETTINGSFILE ROCKBOX_DIR "/fixed.cfg"
|
|
|
|
|
|
|
|
#define PLAYLIST_CONTROL_FILE ROCKBOX_DIR "/.playlist_control"
|
|
|
|
#define NVRAM_FILE ROCKBOX_DIR "/nvram.bin"
|
|
|
|
#define GLYPH_CACHE_FILE ROCKBOX_DIR "/.glyphcache"
|
2014-02-11 14:27:23 +00:00
|
|
|
|
2010-08-01 16:15:27 +00:00
|
|
|
#endif /* __PATHS_H__ */
|