summaryrefslogtreecommitdiff
path: root/bootloader/main.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-07-15 07:42:25 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-07-15 07:42:25 +0000
commita2e8cf713e13b5e98f711c723bd3e7eff3c6b9b2 (patch)
treebc86a45c1aabcb240c55adcf736f71e7de68c1ef /bootloader/main.c
parent05012ac9f7b531e789aebcd24a02828e78bc810e (diff)
Automated version string handling in the boot loader
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7152 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader/main.c')
-rw-r--r--bootloader/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bootloader/main.c b/bootloader/main.c
index c250815a6e..85ac144875 100644
--- a/bootloader/main.c
+++ b/bootloader/main.c
@@ -51,6 +51,8 @@ int usb_screen(void)
return 0;
}
+char version[] = APPSVERSION;
+
static void usb_enable(bool on)
{
and_l(~0x01000000, &GPIO_OUT); /* GPIO24 is the Cypress chip power */
@@ -216,7 +218,8 @@ void main(void)
lcd_setfont(FONT_SYSFIXED);
- lcd_puts(0, line++, "Rockboot version CVS");
+ snprintf(buf, sizeof(buf), "Rockboot version %s", version);
+ lcd_puts(0, line++, buf);
lcd_update();
sleep(HZ/50); /* Allow the button driver to check the buttons */