forked from len0rd/rockbox
Automated version string handling in the boot loader
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7152 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
05012ac9f7
commit
a2e8cf713e
2 changed files with 8 additions and 1 deletions
|
@ -26,6 +26,10 @@ ifdef APPEXTRA
|
||||||
INCLUDES += -I$(APPEXTRA)
|
INCLUDES += -I$(APPEXTRA)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifndef VERSION
|
||||||
|
VERSION=$(shell date +%y%m%d-%H%M)
|
||||||
|
endif
|
||||||
|
|
||||||
CFLAGS = $(GCCOPTS) $(INCLUDES) $(TARGET) $(DEFINES) \
|
CFLAGS = $(GCCOPTS) $(INCLUDES) $(TARGET) $(DEFINES) \
|
||||||
-DAPPSVERSION=\"$(VERSION)\" $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE}
|
-DAPPSVERSION=\"$(VERSION)\" $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE}
|
||||||
|
|
||||||
|
|
|
@ -51,6 +51,8 @@ int usb_screen(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
char version[] = APPSVERSION;
|
||||||
|
|
||||||
static void usb_enable(bool on)
|
static void usb_enable(bool on)
|
||||||
{
|
{
|
||||||
and_l(~0x01000000, &GPIO_OUT); /* GPIO24 is the Cypress chip power */
|
and_l(~0x01000000, &GPIO_OUT); /* GPIO24 is the Cypress chip power */
|
||||||
|
@ -216,7 +218,8 @@ void main(void)
|
||||||
|
|
||||||
lcd_setfont(FONT_SYSFIXED);
|
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();
|
lcd_update();
|
||||||
|
|
||||||
sleep(HZ/50); /* Allow the button driver to check the buttons */
|
sleep(HZ/50); /* Allow the button driver to check the buttons */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue