1d121e8c08
SUPPORTED SERIES: - NWZ-E450 - NWZ-E460 - NWZ-E470 - NWZ-E580 - NWZ-A10 NOTES: - bootloader makefile convert an extra font to be installed alongside the bootloader since sysfont is way too small - the toolsicon bitmap comes from the Oxygen iconset - touchscreen driver is untested TODO: - implement audio routing driver (pcm is handled by pcm-alsa) - fix playback: it crashes on illegal instruction in DEBUG builds - find out why the browser starts at / instead of /contents - implement radio support - implement return to OF for usb handling - calibrate battery curve (NB: of can report a battery level on a 0-5 scale but probabl don't want to use that ?) - implement simulator build (we need a nice image of the player) - figure out if we can detect jack removal POTENTIAL TODOS: - try to build a usb serial gadget and gdbserver Change-Id: Ic77d71e0651355d47cc4e423a40fb64a60c69a80
128 lines
4.4 KiB
C
128 lines
4.4 KiB
C
/***************************************************************************
|
|
* __________ __ ___.
|
|
* 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__ */
|
|
|
|
#if !defined(APPLICATION) || defined(SAMSUNG_YPR0) || defined(SAMSUNG_YPR1) || \
|
|
defined(DX50) || defined(DX90) || defined(SONY_NWZ_LINUX)
|
|
|
|
#if defined(SAMSUNG_YPR0) || defined(SAMSUNG_YPR1)
|
|
#define HOME_DIR "/mnt/media0"
|
|
#elif defined(SONY_NWZ_LINUX)
|
|
#define HOME_DIR "/contents"
|
|
#elif defined(DX50) || defined(DX90)
|
|
/* Where to put save files like recordings, playlists, screen dumps ...*/
|
|
#define HOME_DIR "/mnt/sdcard"
|
|
#else
|
|
#define HOME_DIR "/"
|
|
#endif
|
|
|
|
/* 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"
|
|
|
|
#else /* APPLICATION */
|
|
|
|
#define HOME_DIR "<HOME>" /* replaced at runtime */
|
|
|
|
#define PLUGIN_DIR ROCKBOX_LIBRARY_PATH "/rockbox/rocks"
|
|
#if (CONFIG_PLATFORM & PLATFORM_ANDROID)
|
|
#define CODECS_DIR ROCKBOX_BINARY_PATH
|
|
#else
|
|
#define CODECS_DIR ROCKBOX_LIBRARY_PATH "/rockbox/codecs"
|
|
#endif
|
|
|
|
#endif /* !APPLICATION || SAMSUNG_YPR0 */
|
|
|
|
#define HOME_DIR_LEN (sizeof(HOME_DIR)-1)
|
|
|
|
#define REC_BASE_DIR HOME_DIR
|
|
#define PLAYLIST_CATALOG_DEFAULT_DIR HOME_DIR "/Playlists"
|
|
|
|
#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"
|
|
|
|
#if defined(APPLICATION) && !(defined(SAMSUNG_YPR0) || defined(SAMSUNG_YPR1) || \
|
|
defined(DX50) || defined(DX90) || defined(SONY_NWZ_LINUX))
|
|
#define PLUGIN_DATA_DIR ROCKBOX_DIR "/rocks.data"
|
|
#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
|
|
|
|
#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"
|
|
|
|
#endif /* __PATHS_H__ */
|