Dominik Riebeling
308f099874
Move bin2c handling to libtools.make
...
Change-Id: I60353bb9f9fd2658d66ba7f352e04f7489c7bf5d
2012-04-28 12:05:50 +02:00
Rafaël Carré
db3afb03a2
Make sure we use POSIX/C99 printf() when building for windows
...
Change-Id: I429ed40dc2b9d4fb238762113bd40936df896df0
Reviewed-on: http://gerrit.rockbox.org/85
Reviewed-by: Dominik Riebeling <Dominik.Riebeling@gmail.com>
2012-02-05 20:36:31 +01:00
Dominik Riebeling
ab49b5e77b
MSVC compatibility adjustments.
...
When using a global variable from a DLL with MSVC special handling is necessary
to avoid going through additional redirection.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31640 a1c6a512-1295-4272-9138-f99709370657
2012-01-08 19:51:11 +00:00
Dominik Riebeling
70837fb1ed
sansapatcher, ipodpatcher: use MinGW C99 version of stdio functions.
...
The MinGW versions know additional format identifiers. Use those versions to
avoid warnings. See also http://article.gmane.org/gmane.comp.gnu.mingw.user/27539/
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31331 a1c6a512-1295-4272-9138-f99709370657
2011-12-16 21:10:21 +00:00
Dominik Riebeling
1828bb8ea3
sansapatcher: allow building without bootloaders.
...
There is no need to always build sansapatcher with embedded bootloaders. Allow
building without similar to ipodpatcher. Interactive mode will obviously not be
available if built without bootloaders.
Fix rules for creating the source files for the embedded bootloaders.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31328 a1c6a512-1295-4272-9138-f99709370657
2011-12-16 20:10:33 +00:00
Dominik Riebeling
472c02d0f7
sansapatcher: use libtools.make.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31327 a1c6a512-1295-4272-9138-f99709370657
2011-12-16 20:10:29 +00:00
Dominik Riebeling
5ffd2f7598
Various adjustments for MSVC.
...
- MSVC uses different namings in some places. Adjust the sources via the
preprocessor if build with MSVC.
- MSVC doesn't know about __func__, use name instead.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31185 a1c6a512-1295-4272-9138-f99709370657
2011-12-08 21:59:13 +00:00
Dominik Riebeling
38f03d4eae
sansapatcher: factor out handling of bundled bootloaders.
...
Instead of handling bundled bootloaders in the sansapatcher functions leave
that to the caller. This removes the need to have Rockbox Utility specific
parts in sansapatcher. sansa_add_bootloader() now operates on an already loaded
bootloader. For loading a convenience function sansa_read_bootloader() is
added. This also introduces a new check on loading to prevent installing an
e200 bootloader on a c200 (and vice versa).
These changes will allow building a libsansapatcher for linking with Rockbox
Utility later.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31144 a1c6a512-1295-4272-9138-f99709370657
2011-12-04 19:40:43 +00:00
Dominik Riebeling
38890ac6dc
sansapatcher: guard platform specific files.
...
Use the preprocessor to make platform specific files compile as empty files if
built for a different platform. This removes the need to distinguish in the
Makefile and simplifies creating a libsansapatcher.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31143 a1c6a512-1295-4272-9138-f99709370657
2011-12-04 19:40:35 +00:00
Torne Wuff
569285794b
Bulk convert all DOS line endings to UNIX.
...
For the git migration we want a nice clean repository with UNIX line
endings. git does not use svn:eol-style, we just need the file contents to be
sane.
Sorry everybody. I know this messes up blame.
Scumbag *NIX developer says migrating to git will make line ending issues go
away; commits giant change to svn which changes line endings anyway. :)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30924 a1c6a512-1295-4272-9138-f99709370657
2011-11-06 22:44:25 +00:00
Dominik Riebeling
271441eb9d
MinGW: prefer C99 compliance by using replacement implementations.
...
This addresses several warnings caused by format modifiers that are not
supported by MSVCRT. MinGW provides replacement functions since mingw-runtime
3.15 so use them. See also
http://article.gmane.org/gmane.comp.gnu.mingw.user/27539/
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28735 a1c6a512-1295-4272-9138-f99709370657
2010-12-05 15:24:10 +00:00
Dominik Riebeling
c3a908f04b
Always format error message using ANSI functions to get rid of type-punning when building with rbutil.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23913 a1c6a512-1295-4272-9138-f99709370657
2009-12-09 19:04:02 +00:00
Dominik Riebeling
3e489c14c1
Rename print_error() in ipodpatcher and sansapatcher.
...
Both patchers use the same function name with one being removed when
building for rbutil. This gets in the way trying to move the patchers to
libraries, and it also results a linking dependency of sansapatcher on
ipodpatcher. Renaming the function makes both more self-contained and
avoids potential issues if the functions happen to not do the same.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23568 a1c6a512-1295-4272-9138-f99709370657
2009-11-08 13:38:10 +00:00
Dave Chapman
34213c388b
Small tweaks to r21778/r21779 - use -p for both mkdir and cp commands in dmg creation rule
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21793 a1c6a512-1295-4272-9138-f99709370657
2009-07-11 22:50:22 +00:00
Rafaël Carré
06cd53bc40
sansapatcher: new sansapatcher.dmg creation rule for OSX
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21778 a1c6a512-1295-4272-9138-f99709370657
2009-07-11 14:46:09 +00:00
Frank Gevaerts
99edc7b075
Also bump version in trunk
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21747 a1c6a512-1295-4272-9138-f99709370657
2009-07-10 16:52:02 +00:00
Dave Chapman
28a2b4514f
Add an explicit rule to compile bin2c - r21272 broke compilation of sansapatcher on at least Linux because Make's implicit rule for compiling bin2c was being used, which uses CC, which was set to i586-mingw32msvc-gcc.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21476 a1c6a512-1295-4272-9138-f99709370657
2009-06-22 23:06:56 +00:00
Dominik Riebeling
73f9bde908
Make bin2c compile with VS2005 and move it to a separate folder as its getting used by different tools now.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21272 a1c6a512-1295-4272-9138-f99709370657
2009-06-13 14:15:50 +00:00
Dominik Riebeling
b22516f995
Make sure the global buffers for ipodpatcher and sansapatcher get allocated and freed only once. Fixes segfaults when the bootloader install class was instanciated multiple times.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20835 a1c6a512-1295-4272-9138-f99709370657
2009-05-01 21:35:06 +00:00
Robert Menes
9928086ece
Bump version number to v0.7 with 5.0 bootloaders. Part of FS#9369.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18868 a1c6a512-1295-4272-9138-f99709370657
2008-10-23 14:36:21 +00:00
Bertrik Sikken
b7219b7e16
Replaced TAB characters by spaces in sansapatcher
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18368 a1c6a512-1295-4272-9138-f99709370657
2008-08-31 09:44:45 +00:00
Bertrik Sikken
9da68f9ed7
Fix missing sansa_close when scanning for sansas in sansapatcher.c
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18367 a1c6a512-1295-4272-9138-f99709370657
2008-08-31 09:30:58 +00:00
Dave Chapman
84d8d83c50
Improved README for sansapatcher, contributed by Ori Avtalion, slightly modified by me.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18169 a1c6a512-1295-4272-9138-f99709370657
2008-08-01 11:42:33 +00:00
Bertrik Sikken
c323d533c2
Redo r18136 a little cleaner
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18141 a1c6a512-1295-4272-9138-f99709370657
2008-07-28 19:43:32 +00:00
Bertrik Sikken
ee00ec33bf
Make sure to always use the initial key for decryption of mi4 files in sansapatcher.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18136 a1c6a512-1295-4272-9138-f99709370657
2008-07-27 20:10:09 +00:00
Bertrik Sikken
95f906d1b0
Added mi4 key for sansa c200 OF version 01.01.07
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18135 a1c6a512-1295-4272-9138-f99709370657
2008-07-27 18:51:56 +00:00
Dominik Riebeling
08a27c1df7
Let sansa_list_images() return the number of mi4 images found.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18074 a1c6a512-1295-4272-9138-f99709370657
2008-07-16 18:46:37 +00:00
Bertrik Sikken
d4e3839f05
Make functions in sansapatcher static and their arguments const if possible.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18037 a1c6a512-1295-4272-9138-f99709370657
2008-07-14 16:43:47 +00:00
Bertrik Sikken
f85d55bb89
Fix FS#9002 - Bootloader on c200 shows "target id: e200"
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18035 a1c6a512-1295-4272-9138-f99709370657
2008-07-14 15:53:29 +00:00
Dominik Riebeling
08574c43d3
When scanning for Ipod / Sansa close the disc handle of every tried disc, not only for successful checks. Fixes "no Sansa found" issues with rbutil on w32 after autodetection was used.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17893 a1c6a512-1295-4272-9138-f99709370657
2008-06-30 19:01:51 +00:00
Daniel Stenberg
2acc0ac542
Updated our source code header to explicitly mention that we are GPL v2 or
...
later. We still need to hunt down snippets used that are not. 1324 modified
files...
http://www.rockbox.org/mail/archive/rockbox-dev-archive-2008-06/0060.shtml
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17847 a1c6a512-1295-4272-9138-f99709370657
2008-06-28 18:10:04 +00:00
Dominik Riebeling
d131a31266
Rename variables sectorbuf and verbose to avoid clashes in rbutil. Cleanup exports a bit.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17730 a1c6a512-1295-4272-9138-f99709370657
2008-06-17 17:52:13 +00:00
Dominik Riebeling
3f65a7051f
Move C linkage binding for c++ to exporting header files instead of includes.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17609 a1c6a512-1295-4272-9138-f99709370657
2008-05-22 17:51:35 +00:00
Dominik Riebeling
850c4f98ba
Make sansapatcher check and report permission denied errors.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17461 a1c6a512-1295-4272-9138-f99709370657
2008-05-11 16:58:02 +00:00
Barry Wardell
386f77b052
Make sansapatcher and ipodpatcher compile on OS X 10.5.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16804 a1c6a512-1295-4272-9138-f99709370657
2008-03-25 19:50:41 +00:00
Dominik Riebeling
ccd8f6cd84
fix sansapatcher mingw build prerequisites.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16173 a1c6a512-1295-4272-9138-f99709370657
2008-01-26 22:19:27 +00:00
Dominik Wenger
4e8d61442d
add Manifests to rbutil, sansapatcher and e200rpatcher to gain needed rights on windows vista.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16120 a1c6a512-1295-4272-9138-f99709370657
2008-01-20 21:19:37 +00:00
Dominik Riebeling
919caf0208
allow building ipodpatcher / sansapatcher with MinGW.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16003 a1c6a512-1295-4272-9138-f99709370657
2008-01-06 11:55:55 +00:00
Dave Chapman
658747827f
Add some brief instructions to compile sansapatcher
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15847 a1c6a512-1295-4272-9138-f99709370657
2007-11-29 17:39:59 +00:00
Magnus Holmgren
5e37895bac
RbUtilQt: Make Sansa bootloader installation work on Windows. (Compiler warnings _are_ useful. :)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15386 a1c6a512-1295-4272-9138-f99709370657
2007-10-31 18:29:38 +00:00
Barry Wardell
4991cd377e
Bump version for release
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15227 a1c6a512-1295-4272-9138-f99709370657
2007-10-20 19:12:16 +00:00
Barry Wardell
d46cf97024
Support database rebuild disabling when USB is connected for all e200 OF versions. Some people may have to update the OF (to any version they want) using sansapatcher before it will work. This just ensures that the NVPARAMS are in a good state and we can be sure where to look for the rebuild flag.The c200 OF doesn't reboot before rebuilding the database, so our trick won't ever work there.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15225 a1c6a512-1295-4272-9138-f99709370657
2007-10-20 17:08:41 +00:00
Barry Wardell
080889a135
Add support for installing/replacing the bootloader in the PPBL section of the firmware partition. Allows installation of the Rockbox bootloader in place of the Sandisk one. This expects a plain bootloader binary with no header. Our Rockbox bootloader successfully boots both Rockbox and the OF when installed in this way. This makes it easy to get to a state where e200tool is required, so care is advised.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15108 a1c6a512-1295-4272-9138-f99709370657
2007-10-14 18:09:40 +00:00
Barry Wardell
40f5bb3702
Bump version for new release with fixed OF loading on e200.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15075 a1c6a512-1295-4272-9138-f99709370657
2007-10-11 09:43:24 +00:00
Dave Chapman
ec6f965d87
Bump version for new release for C200
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14818 a1c6a512-1295-4272-9138-f99709370657
2007-09-22 21:02:49 +00:00
Dave Chapman
359028fd2c
Cosmetic - Change the way the detected type of Sansa is displayed and bump version to 0.4-svn.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14756 a1c6a512-1295-4272-9138-f99709370657
2007-09-19 19:03:09 +00:00
Dave Chapman
8d145a5574
Initial attempt at c200 support - you now need both a "firmware.mi4" file (c200 bootloader) and "PP5022.mi4" file (e200 bootloader) to compile. sansapatcher should detect the device type and install the correct bootloader.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14755 a1c6a512-1295-4272-9138-f99709370657
2007-09-19 18:46:54 +00:00
Björn Stenberg
82e4af6c8e
Allow FAT16 partitions (for c200)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14753 a1c6a512-1295-4272-9138-f99709370657
2007-09-19 12:28:21 +00:00
Daniel Stenberg
15cf32b517
four more keys that are fun
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14752 a1c6a512-1295-4272-9138-f99709370657
2007-09-19 12:21:12 +00:00
Dave Chapman
c720b1bdf0
Bump version to 0.3 and v2 bootloader in preparation for release
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14725 a1c6a512-1295-4272-9138-f99709370657
2007-09-15 23:01:05 +00:00