This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#8482 - Build languages before main binary
Attached to Project:
Rockbox
Opened by Jonas Häggqvist (rasher) - Sunday, 20 January 2008, 02:57 GMT+1
Last edited by Daniel Stenberg (bagder) - Monday, 18 February 2008, 13:32 GMT+1
Opened by Jonas Häggqvist (rasher) - Sunday, 20 January 2008, 02:57 GMT+1
Last edited by Daniel Stenberg (bagder) - Monday, 18 February 2008, 13:32 GMT+1
|
DetailsThis patch makes the build system build languages before it starts building the main binary. It also generates a file "max_language_size.h" in the build dir, containing the size of the largest language for the selected target.
Unfortunately, my build-fu is not quite strong enough to use this inside of language.h, which is the motivation for this change since it'd bring a few nice benefits: 1. We'd no longer have to keep increasing the language buffer manually each time a language grows too large. 2. The language buffer will be no larger than it needs to be. This is especially important on Archos, where this could potentially save around 10kb on the player, and less (but still significant) on the other targets. |
This task depends upon
Closed by Daniel Stenberg (bagder)
Monday, 18 February 2008, 13:32 GMT+1
Reason for closing: Accepted
Additional comments about closing: This work is now in SVN!
Monday, 18 February 2008, 13:32 GMT+1
Reason for closing: Accepted
Additional comments about closing: This work is now in SVN!
The biggest annoyance right now is our automatic generation of dependency-files as they go nuts when we #include non-existing files and the generated ones of course are non-existing before they're made...
(For some reason I tend to get make errors on sysfont.h with this patch applied)
Still an error before the genlang lines: cc1: error: config.h: No such file or directory
This v8 version fixes the latter part, does not include the genlang fix from Jonas' v7 (it is better committed separately) but has not got the bootloader builds fixed. I'll get to it later unless someone else does it!