summaryrefslogtreecommitdiff
path: root/tools (follow)
Commit message (Collapse)AuthorAge
* duke3d: misc stuff (DON'T PUSH)Franklin Wei2018-01-05
| | | | | | | | Mostly debugging output to the FPS line. Also changes tools/configure to always cross-compile a 32-bit simulator to support duke's horrendous pointer casting. Please don't push this. Change-Id: I3df6c633b5af017f33055dc4f9257738aaf66cfb
* nwz: enable plugins on all targets except NWZ-A860Amaury Pouly2017-11-14
| | | | | | Keymap might be suboptimal. Change-Id: Ibaf51e91cf935c96b7f419647fe1147dee6cc8be
* nwzlinux: add support for radioAmaury Pouly2017-11-06
| | | | | | | None of the Sony up to A15 seem to support RDS (they use either Si4702 or Si4708), thus I did not add any code to support RDS. Change-Id: I64838993b9705b36b94665f8470c7a89c772c961
* Add NWZ-E350 as unstableAmaury Pouly2017-09-17
| | | | Change-Id: I13cb173b2e0eee8799469c6b9a7029cb965dc2dd
* Add support for the NWZ-E350Amaury Pouly2017-09-17
| | | | | | | | Strangely it has the SAME encryption key as the E450. Either they didn't bother changing it or more likely they have exactly the same internals and a slightly different case. Change-Id: I39ab88845b3e40db34160c2e61dde421f391df44
* Add support for the Sony NWZ-S750Amaury Pouly2017-09-17
| | | | Change-Id: I9050129949809b3dbe9f4f9e816f8980c4f3a904
* Add NWZ-A860 as unstableAmaury Pouly2017-09-17
| | | | Change-Id: Iba944551d7bf4e1f24ffbd4f2a0be82eee395651
* Add support for the NWZ-A860Amaury Pouly2017-09-17
| | | | Change-Id: Ibf0c5168ac31d4ba2aeaa86cbeca37a1011b75fa
* fix yellowsAmaury Pouly2017-09-06
| | | | Change-Id: Ie27d3aa7d2485b4eb053af48ba34ad6526bf6472
* Add NWZ-E450/E460/E470/E580/A10/A20 as unstableAmaury Pouly2017-09-06
| | | | Change-Id: If4e20893e77f1f0e7b1d38ce21a8e945b7930463
* Add support for Sony NW-A20Johannes Rauh2017-09-06
| | | | | | Add original author to CREDITS Change-Id: I7a0159635c7896e2b5521c078ef62618f568d89e
* Initial commit for the Sony NWZ linux portAmaury Pouly2017-09-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Modernize toolchain script and add generic arm toolchainAmaury Pouly2017-09-04
| | | | | | | | | | | | | | | | | | | I did some cleanup of redudant stuff, simplify some logic, also switch to bash because sh in the pain when ones want to locally define variables for functions calls. I also added support to download more stuff like alsa-lib and more recent gccs that use a different naming convention, as well as linux kernels. I also add some build to build linux toolchains without ct-ng. The biggest problem with ct-ng is that they regularly drop support for old stuff and as a result it rots really quickly for old toolchains. I add a new toolchain for generic linux arm with the minimum requirements, it works fine on Sony NWZ and also on YP-R0. Finally, rockboxdev.sh now understand options on its command line (see --help). Notably --target to give the list of targets (useful for noninteractive scripts), --restart to restart at a step, --makeflags and others (instead of the environment variables) Change-Id: I869760c1faeb00ab381796a4cda82ffbc9637123
* Implement warning silencing in a cleaner wayFranklin Wei2017-08-27
| | | | Change-Id: Iae6356c7e9e04f4e975b1995f77a35f6252293a4
* Revert "Silence GCC 7.x warnings when building simulator"Franklin Wei2017-08-27
| | | | This reverts commit b13f6e5b67abda2e466731f39d221eec2c9eb576.
* Silence GCC 7.x warnings when building simulatorFranklin Wei2017-08-23
| | | | | | | Adds -Wno-expansion-to-defined and -Wimplicit-fallthrough=0 to sim opts. Change-Id: I62148e392446ae6a3fbe4c4d55770b72962e393d
* Fix formatting in configureAmaury Pouly2017-05-16
| | | | Change-Id: Ie877121bb60df6fb1fed4f778cc9aa0f5c426ed8
* Fix unsafe substitutions in Makefile.Amaury Pouly2017-05-12
| | | | | | Strange things can happen in the (unlikely) case that ROOTDIR=/rockbox Change-Id: I085f928fd859b307667e8fccf40b29a9c325f7ae
* fix nano status (3=stable)Franklin Wei2017-04-30
| | | | Change-Id: I6e86e6ef0894f28c6583eca8273fadf51028e924
* N2G is stable and 6G is unstableFranklin Wei2017-04-30
| | | | Change-Id: Ib5b939debb1db838907d33563784d336fdad3444
* Actually bump version to 3.14Franklin Wei2017-04-30
| | | | This reverts commit e59197f07869d63bfc90dbce000d6af9c0fb73de.
* Revert "Bump version to 3.14"Franklin Wei2017-04-30
| | | | This reverts commit 42115ffab8c36ee9f1dead8f20a6da93bb7298db.
* Bump version to 3.14Franklin Wei2017-04-30
| | | | Change-Id: I839e90638d55782d0ce330808051842de581a0bd
* Fix typo in configureAmaury Pouly2017-01-16
| | | | Change-Id: I142822983bf1144ab265caf5e9a488c5e423da4f
* Fix path handling snafu for CheckWPS toolMichael Sevakis2017-01-16
| | | | | | | | | Somehow it got hooked to simulator file functions when it should be (and was) using raw OS functions. Credit: Frank Gevaerts Change-Id: Iac02fed1067830a432183632a047e00dfd03d3c2
* Fix configure for windows simulator builds in cygwin / mingw cross-compiling ↵Matthias Mohr2017-01-15
| | | | | | | | | | | | | | | | | environments. Fixes and Changes to configure the Windows simulator builds mostly for cygwin / mingw cross-compiling environments: - fix CROSS_COMPILE values including detection for old and newer mingw environments - fix detection of sdl-config by searching inside CROSS_COMPILE sys-root - fix call of sdl-config and use correct (found) version - add possibility to build a 64-bit simulator - added several -Wno- options to GCCOPTS to prevent annoying compiler warnings - use cross-compiler as HOST_CC if no "native" HOST_CC is available Change-Id: Ib5dd288c3f9a11be9b66e53e3406eadfa65f7604
* rockoxdev.sh: fix compilation of ARM toolchainAmaury Pouly2016-12-04
| | | | | | This will breaks mips but mips is already super hard to build anyway. Change-Id: Ia481a22440758fe72a87e2808f4fb8d31c49cb53
* Fix makefile not rebuilding rbversion.h in some casesAmaury Pouly2016-09-23
| | | | | | For example when running make VERSION="bla" Change-Id: I8f8833f0fb200828346ed0a6842a9340e3653932
* Mark Philips GoGear players as stable.Szymon Dziok2016-09-22
| | | | Change-Id: Id1f22488724d3ada5fa6efffc87e444add86400d
* Mark Samsung YH players as stable.Szymon Dziok2016-09-22
| | | | Change-Id: I4a0e8b7042ca54bf653ff2ce46a93f87000b0b2d
* Move ZEN X-Fi/X-Fi3/X-Fi Style/Mozaic, NWZ-E360/E370/E380 and Fuze+ to stable.Amaury Pouly2016-09-21
| | | | | | Move ZEN and ZEN X-Fi2 to unstable. Change-Id: I432d99b4fa976d93e2db883869995802a41186b6
* Print make version in configure output.Frank Gevaerts2016-08-21
| | | | | | This should make it easier to figure out random build issues. Change-Id: Ic037ecc94a3c8386043349db1573c3587d7e1fda
* Silence newer toolchains a bitFrank Gevaerts2016-08-12
| | | | | | | | Newer toolchains (both gcc and libc related) add a lot of warnings. While these can be useful and correct, cleaning them up woult be a lot of work and isn't likely to actually happen any time soon. Change-Id: I8c4e8cd3dc92f9afa4bf003c63ca65e895e3ef00
* Fix broken simulator build with weird sdl-configFranklin Wei2016-06-01
| | | | | | | | * --static-libs isn't supported on some (possibly newer) SDL installs, falls back to --libs if this is the case Patch mostly by Amaury Pouly. Change-Id: I6dd2f4847f2a2d1de7b2d287c0af6651cec461ff
* Use an actually reliable method to determine 32 vs 64 bitFrank Gevaerts2016-05-25
| | | | Change-Id: Idba256ae66e67efa7a03f3817bc588e0b4ccd4ba
* configure: statically link sdl on win32 cross compileAmaury Pouly2016-05-13
| | | | Change-Id: If9115da0470e2c301589329af67433f7260d24d3
* configure: allow for compiler toolchain override (with warnings)Amaury Pouly2016-02-02
| | | | | | | | | | | | | | The current configure script unfortunately does not allow one to use another toolchain than the one hardwire in the script. Although this is good to ensure working builds, it can be burden when one wants to either test other compilers, does not want to have to multiple redundant compilers or when the compiler install script fails for unknown reasons (MIPS I'm looking at you). The syntax is simple, for example: /path/to/configure --compiler-prefix arm-none-eabi- Also 'make reconf' will properly keep the prefix. Change-Id: I5ee3bc61afa10193586ddd3aef694a8ac08854e2
* Fix rebuilding librbspeex on OS X and make rm work on Windows.Dominik Riebeling2015-06-20
| | | | | | | | | OS X ar operates on fat libaries and cannot update existing archives. Remove it first to avoid this. Use a make function when removing files to allow calling the correct command on Windows, which doesn't know about rm. Change-Id: Ia0c13ef7907239a1e6f4abc26bb08238a226c476
* configure: harden arch autodetected a bitThomas Martitz2015-04-19
| | | | | | | Some arm gcc versions have multiple cpp symbols beginning with __ARM_ARCH, but want only the one that contains the arch version. Change-Id: I6792572e29200fc4e62ba07bdd63dc722356c2bb
* iBasso DX50/DX90 added as "unstable" to builds.pmSimon Rothen2015-02-21
| | | | Change-Id: If6c906c363341aa8c80b6c5010274ce07daef4c8
* Prevent configure from being run in the root of the tree, fix a typo in the ↵Franklin Wei2015-02-15
| | | | | | configure script Change-Id: I61205c2f00edbdcd726ca455a67c810fafe3ca92
* iBasso DX50/DX90: Major code cleanup and reorganization.Udo Schläpfer2015-02-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Multiple variables for 'my' need to be in parenthesisThomas Jarosch2015-01-03
| | | | | | | | | | | | | | | perl -wc reported: Parentheses missing around "my" list at sims.pl line 9. Useless use of a variable in void context at sims.pl line 9. Useless use of a variable in void context at sims.pl line 9. Useless use of a variable in void context at sims.pl line 9. Useless use of a variable in void context at sims.pl line 9. Name "main::doonly" used only once: possible typo at sims.pl line 9. -> now it's happy. Change-Id: I3b3685d6918ddb77e47c58bade931897075c6e04
* Don't build sims twiceThomas Jarosch2015-01-03
| | | | | | Some of those builds are already in the 'builds' list. Change-Id: I6985702d50ff00e166463384d78f823f6fad9873
* mkzenboot: Fix double close of bootfd on errorThomas Jarosch2014-12-20
| | | | | | | cppcheck reported: [rockbox/tools/mkzenboot.c:1176]: (error) Used file that is not opened. Change-Id: Ibbf7ab2910c7f43b547fef25c62e0b4d19ff9551
* Introducing Targets iBasso DX50 & iBasso DX90Simon Rothen2014-09-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The port to for this two targets has been entirely developped by Ilia Sergachev (alias Il or xzcc). His source can be found at https://bitbucket.org/isergachev/rockbox . The few necesary modifications for the DX90 port was done by headwhacker form head-fi.org. Unfortunately i could not try out the final state of the DX90 port. The port is hosted on android (without java) as standalone app. The official Firmware is required to run this port. Ilia did modify the source files for the "android" target in the rockbox source to make the DX port work. The work I did was to separate the code for DX50 (&DX90) from the android target. On this Target Ilia used source from tinyalsa from AOSP. I did not touch that part of the code because I do not understand it. What else I changed from Ilias sources besides the separation from the target "android": * removed a dirty hack to keep backlight off * changed value battery meter to voltage battery meter * made all plugins compile (named target as "standalone") and added keymaps * i added the graphics for the manual but did not do anything else for the manual yet * minor optimizations known bugs: * timers are slowed donw when playback is active (tinyalsa related?) * some minor bugs Things to do: * The main prolem will be how to install the app correctly. A guy called DOC2008 added a CWM (by androtab.info) to the official firmware and Ilia made a CWM installation script and a dualboot selector (rbutils/ibassoboot, build with ndk-build). We will have to find a way to install rockbox in a proper way without breaking any copyrights. Maybe ADB is an option but it is not enable with OF by default. Patching the OF is probably the way to go. * All the wiki and manual to build: needed: android ndk installed, android sdk installed with additional build-tools 19.1.0 installed ./tools/configure select iBasso DX50 or iBasso DX90 make -j apk the content of rockbox.zip/.rockbox needs to be copied to /system/rockbox/app_rockbox/rockbox/ (rockbox app not needed) the content of libs/armeabi to /system/rockbox/lib/ (rockbox app needed) The boot selector is needed as /system/bin/MangoPlayer and the iBasso app as /system/bin/MangoPlayer_original. There is also the "vold" file. The one from OF does not work with DX50 rockbox (DX90 works!?), the one from Ilia is necessary. Until we have found a proper way to install it, it can only be installed following the instructions of Ilia on his bitbucket page, using the CWM-OF and his installation script package. Change-Id: Ic4faaf84824c162aabcc08e492cee6e0068719d0 Reviewed-on: http://gerrit.rockbox.org/941 Tested: Chiwen Chang <rock1104.tw@yahoo.com.tw> Reviewed-by: Michael Giacomelli <giac2000@hotmail.com>
* Rewrite filesystem code (WIP)Michael Sevakis2014-08-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch redoes the filesystem code from the FAT driver up to the clipboard code in onplay.c. Not every aspect of this is finished therefore it is still "WIP". I don't wish to do too much at once (haha!). What is left to do is get dircache back in the sim and find an implementation for the dircache indicies in the tagcache and playlist code or do something else that has the same benefit. Leaving these out for now does not make anything unusable. All the basics are done. Phone app code should probably get vetted (and app path handling just plain rewritten as environment expansions); the SDL app and Android run well. Main things addressed: 1) Thread safety: There is none right now in the trunk code. Most of what currently works is luck when multiple threads are involved or multiple descriptors to the same file are open. 2) POSIX compliance: Many of the functions behave nothing like their counterparts on a host system. This leads to inconsistent code or very different behavior from native to hosted. One huge offender was rename(). Going point by point would fill a book. 3) Actual running RAM usage: Many targets will use less RAM and less stack space (some more RAM because I upped the number of cache buffers for large memory). There's very little memory lying fallow in rarely-used areas (see 'Key core changes' below). Also, all targets may open the same number of directory streams whereas before those with less than 8MB RAM were limited to 8, not 12 implying those targets will save slightly less. 4) Performance: The test_disk plugin shows markedly improved performance, particularly in the area of (uncached) directory scanning, due partly to more optimal directory reading and to a better sector cache algorithm. Uncached times tend to be better while there is a bit of a slowdown in dircache due to it being a bit heavier of an implementation. It's not noticeable by a human as far as I can say. Key core changes: 1) Files and directories share core code and data structures. 2) The filesystem code knows which descriptors refer to same file. This ensures that changes from one stream are appropriately reflected in every open descriptor for that file (fileobj_mgr.c). 3) File and directory cache buffers are borrowed from the main sector cache. This means that when they are not in use by a file, they are not wasted, but used for the cache. Most of the time, only a few of them are needed. It also means that adding more file and directory handles is less expensive. All one must do in ensure a large enough cache to borrow from. 4) Relative path components are supported and the namespace is unified. It does not support full relative paths to an implied current directory; what is does support is use of "." and "..". Adding the former would not be very difficult. The namespace is unified in the sense that volumes may be specified several times along with relative parts, e.g.: "/<0>/foo/../../<1>/bar" :<=> "/<1>/bar". 5) Stack usage is down due to sharing of data, static allocation and less duplication of strings on the stack. This requires more serialization than I would like but since the number of threads is limited to a low number, the tradoff in favor of the stack seems reasonable. 6) Separates and heirarchicalizes (sic) the SIM and APP filesystem code. SIM path and volume handling is just like the target. Some aspects of the APP file code get more straightforward (e.g. no path hashing is needed). Dircache: Deserves its own section. Dircache is new but pays homage to the old. The old one was not compatible and so it, since it got redone, does all the stuff it always should have done such as: 1) It may be update and used at any time during the build process. No longer has one to wait for it to finish building to do basic file management (create, remove, rename, etc.). 2) It does not need to be either fully scanned or completely disabled; it can be incomplete (i.e. overfilled, missing paths), still be of benefit and be correct. 3) Handles mounting and dismounting of individual volumes which means a full rebuild is not needed just because you pop a new SD card in the slot. Now, because it reuses its freed entry data, may rebuild only that volume. 4) Much more fundamental to the file code. When it is built, it is the keeper of the master file list whether enabled or not ("disabled" is just a state of the cache). Its must always to ready to be started and bind all streams opened prior to being enabled. 5) Maintains any short filenames in OEM format which means that it does not need to be rebuilt when changing the default codepage. Miscellaneous Compatibility: 1) Update any other code that would otherwise not work such as the hotswap mounting code in various card drivers. 2) File management: Clipboard needed updating because of the behavioral changes. Still needs a little more work on some finer points. 3) Remove now-obsolete functionality such as the mutex's "no preempt" flag (which was only for the prior FAT driver). 4) struct dirinfo uses time_t rather than raw FAT directory entry time fields. I plan to follow up on genericizing everything there (i.e. no FAT attributes). 5) unicode.c needed some redoing so that the file code does not try try to load codepages during a scan, which is actually a problem with the current code. The default codepage, if any is required, is now kept in RAM separarately (bufalloced) from codepages specified to iso_decode() (which must not be bufalloced because the conversion may be done by playback threads). Brings with it some additional reusable core code: 1) Revised file functions: Reusable code that does things such as safe path concatenation and parsing without buffer limitations or data duplication. Variants that copy or alter the input path may be based off these. To do: 1) Put dircache functionality back in the sim. Treating it internally as a different kind of file system seems the best approach at this time. 2) Restore use of dircache indexes in the playlist and database or something effectively the same. Since the cache doesn't have to be complete in order to be used, not getting a hit on the cache doesn't unambiguously say if the path exists or not. Change-Id: Ia30f3082a136253e3a0eae0784e3091d138915c8 Reviewed-on: http://gerrit.rockbox.org/566 Reviewed-by: Michael Sevakis <jethead71@rockbox.org> Tested: Michael Sevakis <jethead71@rockbox.org>
* Prevent spurious recompiles on account of changed version.Michael Sevakis2014-08-28
| | | | | | | | | | | | | | After a local commit, any file that included version.h would have to be recompiled on account of the changed version string. This changes version.h in the build directory to rbversion.h and includes the preprocessor macro from rbversion.h in firmware/common/version.c so that only that one file needs to be recompiled after a local commit rather than a whole slew of them. Change-Id: I900d97e3a24a0610698283416d97b4fa3a3a2cf6 Reviewed-on: http://gerrit.rockbox.org/937 Reviewed-by: Michael Sevakis <jethead71@rockbox.org> Tested: Michael Sevakis <jethead71@rockbox.org>
* Fix up some more redMichael Sevakis2014-08-05
| | | | | | | find_first_set_bit() becomes a small inline on ARMv5+ and checkwps now gets made with -std=gnu99 (it eats all the GCCOPTS) like the rest of things. Change-Id: Ie6039b17fec057a3dcb0f453d8fd5efac984df89
* Make crosstool-ng build with gnu make 4.0Frank Gevaerts2014-07-30
| | | | Change-Id: Id3a5a310e6fa53e690c92f420994875cb1bfff43