summaryrefslogtreecommitdiffstats
path: root/rbutil/mkamsboot
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2009-08-15 13:04:21 +0000
committerDominik Wenger <domonoky@googlemail.com>2009-08-15 13:04:21 +0000
commita66dfa4ab7d09e0826dcf11cd366ea4200fb9c28 (patch)
tree45e4a3321d2d0ecf83e7b2f2fab10feca42069fa /rbutil/mkamsboot
parent2ae585273ef025f597f5aaffa5e9ea193db49f0d (diff)
downloadrockbox-a66dfa4ab7d09e0826dcf11cd366ea4200fb9c28.tar.gz
rockbox-a66dfa4ab7d09e0826dcf11cd366ea4200fb9c28.tar.bz2
rockbox-a66dfa4ab7d09e0826dcf11cd366ea4200fb9c28.zip
rbutil: add ams sansa targets. (FS#10185)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22317 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/mkamsboot')
-rw-r--r--rbutil/mkamsboot/mkamsboot.c5
-rw-r--r--rbutil/mkamsboot/mkamsboot.h13
2 files changed, 18 insertions, 0 deletions
diff --git a/rbutil/mkamsboot/mkamsboot.c b/rbutil/mkamsboot/mkamsboot.c
index fb0e3cb034..71bc4868ad 100644
--- a/rbutil/mkamsboot/mkamsboot.c
+++ b/rbutil/mkamsboot/mkamsboot.c
@@ -216,6 +216,11 @@ static struct md5sums sansasums[] = {
#define NUM_MD5S (sizeof(sansasums)/sizeof(sansasums[0]))
+int firmware_revision(int model)
+{
+ return fw_revisions[model];
+}
+
static off_t filesize(int fd)
{
struct stat buf;
diff --git a/rbutil/mkamsboot/mkamsboot.h b/rbutil/mkamsboot/mkamsboot.h
index a14b320685..3e58341884 100644
--- a/rbutil/mkamsboot/mkamsboot.h
+++ b/rbutil/mkamsboot/mkamsboot.h
@@ -139,4 +139,17 @@ void patch_firmware(
int total_size(int model, int rb_packedsize, int of_packedsize);
+/* firmware_revision()
+ *
+ * returns the firmware revision for a particular model
+ *
+ * ARGUMENTS
+ *
+ * model : firmware model (MODEL_XXX)
+ *
+ * RETURN VALUE
+ * firmware version
+*/
+int firmware_revision(int model);
+
#endif