summaryrefslogtreecommitdiffstats
path: root/rbutil/mkamsboot/Makefile
AgeCommit message (Collapse)AuthorFilesLines
2011-12-16libtools.make: add rule to build a DLL.Dominik Riebeling1-0/+7
This only works for Windows, so you need to use it on Windows or set CROSS accordingly. Update mkamsboot to make mkamsboot.dll build and link against ucl.dll. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31333 a1c6a512-1295-4272-9138-f99709370657
2011-12-15mkamsboot: convert to use libtools.make.Dominik Riebeling1-91/+5
As a result building mkamsboot for Rockbox Utility will now respect BUILD_DIR, which should eliminate all possibly remaining issues with dualboot.o. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31283 a1c6a512-1295-4272-9138-f99709370657
2011-09-26Prevent unnecessary rebuilding of libs.Dominik Riebeling1-8/+16
- When building for Rockbox Utility the called Makefiles would rebuild the libs every time. Change dependencies a bit to allow make to properly detect if the lib is already up to date. - Remove dependency on output folder in some cases to avoid unnecessary rebuilds. - Add standard Rockbox header to files lacking it. - Make make calls from qmake silent. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30608 a1c6a512-1295-4272-9138-f99709370657
2010-12-23Tweak Makefiles a bit to allow cross compiling Rockbox Utility.Dominik Riebeling1-1/+1
- pass AR to the lib Makefiles to make sure the correct one gets used. - create an archive index for archives. - simplify ucl Makefile a bit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28883 a1c6a512-1295-4272-9138-f99709370657
2010-05-27Use build dir and respect TARGET_DIR when building mkamsboot.Dominik Riebeling1-2/+4
libmkamsboot still did put files into its source folder when building for Rockbox Utility out-of-tree. As with the other libraries use the specified build folder. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26335 a1c6a512-1295-4272-9138-f99709370657
2010-05-24mkamsboot/rbutil/amsinfo : do not try to detect the model of a given Sansa ↵Rafaël Carré1-3/+3
AMS OF The field we thought was representative of the model is not, it has changed in the past for fuzev1 and fuzev2. For example the value 0x23 is found in 2 old fuzev1 OF versions, and in the c200v2 OF The only reliable way to detect the model of a given OF is by using the built-in list of md5sums. Modify mkamsboot and rbutilqt to load the rockbox bootloader first, and then check if the model in the bootloader corresponds to the model of the known md5sum of the given OF. That way we can continue to present the user with a list of known OF versions in case the OF is unknown to mkamsboot Also explicit the dependency of main.c on mkamsboot.h in case the prototypes change Correct the header's description not updated in r21648 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26248 a1c6a512-1295-4272-9138-f99709370657
2010-05-05fix mkamsboot compilation on systems where 'make' is not 'GNU make' (FreeBSD ↵Marcoen Hirschberg1-1/+1
for example) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25825 a1c6a512-1295-4272-9138-f99709370657
2010-02-25mkamsboot: make sure files depending on dualboot.h are updatedRafaël Carré1-0/+4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24915 a1c6a512-1295-4272-9138-f99709370657
2010-02-22mkamsboot: use version.sh properlyRafaël Carré1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24843 a1c6a512-1295-4272-9138-f99709370657
2010-02-19Tweaked dependencies a bitBjörn Stenberg1-14/+10
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24770 a1c6a512-1295-4272-9138-f99709370657
2010-02-19Revert r24763 : LIBOBJS is already included in OBJSRafaël Carré1-1/+1
The problem seems related to dependency on a directory git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24765 a1c6a512-1295-4272-9138-f99709370657
2010-02-19mkamsboot binary depends on the same object files than libmkamsbootRafaël Carré1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24763 a1c6a512-1295-4272-9138-f99709370657
2009-12-13Make lipo calls silent.Dominik Riebeling1-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23982 a1c6a512-1295-4272-9138-f99709370657
2009-12-06Remove special lib Makefile targets that aren't used anymore.Dominik Riebeling1-5/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23871 a1c6a512-1295-4272-9138-f99709370657
2009-11-28Fix building universal binaries.Dominik Riebeling1-1/+0
When building various libraries for Rockbox Utility make sure they use the same compiler as Qt. Pass Qt's CC instead of explicitly setting it. This fixes issues linking on OS X (with recent XCode building universal binaries requires the use of gcc-4-0 while the default one is 4.2). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23779 a1c6a512-1295-4272-9138-f99709370657
2009-11-28Handle TARGET_DIR in universal library building.Dominik Riebeling1-3/+3
Building universal libraries needs to take TARGET_DIR into account as when set the individual libraries are placed into the build output folder and didn't got found anymore. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23778 a1c6a512-1295-4272-9138-f99709370657
2009-11-08mkamsboot: fix linking (typo from r23520)Rafaël Carré1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23571 a1c6a512-1295-4272-9138-f99709370657
2009-11-04Remove unused variable.Dominik Riebeling1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23523 a1c6a512-1295-4272-9138-f99709370657
2009-11-04Clean up mkamsboot building. No functional changes.Dominik Riebeling1-23/+22
- split out standalone functions to a separate file. - adjust and clean up Makefile. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23520 a1c6a512-1295-4272-9138-f99709370657
2009-11-03Fix building of Rockbox Utility by restoring object list for libmkamsboot.aDominik Riebeling1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23505 a1c6a512-1295-4272-9138-f99709370657
2009-10-31FS#10741 - rbutil: Fix mkamsboot Makefile dependanciesTomer Shalev1-11/+14
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23443 a1c6a512-1295-4272-9138-f99709370657
2009-10-11mkamsboot: allow the version string to be overridden from the commandline - ↵Dave Chapman1-0/+2
e.g. "make APPVERSION=v1.1 mkamsboot". git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23097 a1c6a512-1295-4272-9138-f99709370657
2009-10-09mkamsboot: build and package (dmg) an universal OSX binaryRafaël Carré1-4/+20
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23034 a1c6a512-1295-4272-9138-f99709370657
2009-10-08Don't warn if the archive has to be created.Dominik Riebeling1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23013 a1c6a512-1295-4272-9138-f99709370657
2009-09-05Make mkamsboot Makefile operate silent per default.Dominik Riebeling1-7/+13
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22629 a1c6a512-1295-4272-9138-f99709370657
2009-09-04rbutil: modify buildsystem so you can build outside of the rbutilqt ↵Dominik Wenger1-13/+12
directoy. (similar to the normal buildsystem). Attention: Spaces in the path will cause errors. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22624 a1c6a512-1295-4272-9138-f99709370657
2009-09-04Explicitly set CC to prevent make trying to use cc instead. Fixes build ↵Dominik Riebeling1-0/+1
issues on w32. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22623 a1c6a512-1295-4272-9138-f99709370657
2009-08-15Make mkamsboot Makefile more silent.Dominik Riebeling1-2/+7
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22320 a1c6a512-1295-4272-9138-f99709370657
2009-08-15mkamsboot: move intermediate files into a build directory and allow building ↵Dominik Wenger1-14/+38
of a universal lib (for macs) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22318 a1c6a512-1295-4272-9138-f99709370657
2009-07-05Change to versioning for mkamsboot to <rXXXXX>-<DATE> for svn builds. A ↵Thomas Martitz1-1/+4
fixed number like 1.1 can (and should) be used for releases. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21652 a1c6a512-1295-4272-9138-f99709370657
2009-05-28FS#10253 : mkamsboot v1.0mkamsboot_1.0Rafaël Carré1-74/+32
- Bump version to 1.0 - Add Clipv2 target - Make mkamsboot work as a library (work by domonoky : FS#10185, with a few modifications by me) . Use a macro with variadic arguments for error cases in functions which might error. . Add detailed descriptions to functions exported by the library (in the header file) - modify bin2c.c to produce only one pair of .c/.h files with several files embedded in it - move files needing to be built by an ARM cross compiler into dualboot/ - commit produced .c/.h files (containing nrv2e_d8.S and dualboot.S built for Clip, Fuze, e200v2, c200v2, m200v4, Clipv2) - Write a real README file - cosmetics: indent dualboot.S properly, remove trailing spaces, limit lines to 80 characters - comments: add/correct comments in dualboot.S and mkamsboot.c - move back extract_fw.c to utils/AMS/hacking git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21118 a1c6a512-1295-4272-9138-f99709370657
2008-12-24Commit updated mkamsboot for c200v2 patching. Tested and seems to be ↵Michael Giacomelli1-3/+10
working using USB for dualboot. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19575 a1c6a512-1295-4272-9138-f99709370657
2008-11-14Clean up the Makefile a little - no functional changes.Dave Chapman1-99/+45
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19106 a1c6a512-1295-4272-9138-f99709370657
2008-11-10"mv m200v2 m200v4"Daniel Stenberg1-16/+16
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19060 a1c6a512-1295-4272-9138-f99709370657
2008-10-30mkamsboot: supports Fuze firmwaresRafaël Carré1-3/+23
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18936 a1c6a512-1295-4272-9138-f99709370657
2008-10-30Add MD5 checksumming of the original firmware images - for extra safety, and ↵Dave Chapman1-6/+9
also because some Fuze firmwares have the same ID (or what we thought was the ID) as the M200 firmwares. Plus a few minor cleanups. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18927 a1c6a512-1295-4272-9138-f99709370657
2008-10-28mkamsboot: Fix makefile rules for e200v2 and m200v2Rafaël Carré1-3/+3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18898 a1c6a512-1295-4272-9138-f99709370657
2008-10-19add sansa m200v2 support to mkamsboot.Dominik Wenger1-5/+25
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18840 a1c6a512-1295-4272-9138-f99709370657
2008-10-11Major rework of mkamsboot, extending work done by Rafael Carre. We now ↵Dave Chapman1-30/+68
build one "dualboot.bin" mini-bootloader per target and embed it in the mkamsboot binary. The user of mkamsboot just needs to provide an original firmware file, and a Rockbox bootloader file. This code currently supports just the Clip (hardware revision 1) and the E200v2 - button checks are needed for the other V2 targets. NOTE: This is completely untested on-target, and may brick your device. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18767 a1c6a512-1295-4272-9138-f99709370657
2008-10-04Move mkamsboot into the rbutil/mkamsboot/ directory - no other changes, so ↵Dave Chapman1-0/+56
this should still work the same as before. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18706 a1c6a512-1295-4272-9138-f99709370657