This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#12027 - Add the Zipit Z2 as an build target.
|
DetailsHere's a patch to version r29143M-110324 that adds the Zipit Z2 as a build target. It requires one new file (also attached) firmware/target/hosted/zipit/powermgmt-zipit-z2.c to monitor the battery.
This is mostly a generic SDL app with a few tweaks for the Zipit buttons and battery monitoring. The patch also includes a few small bug fixes for SDL app builds. I had to fix the labels in the asm section of lcd-16bit.c. There were some missing parenthesis on an #ifdef in button-application.c. And the apps/SOURCES file needs an #ifdef to handle an SDL app build without touchscreen support. |
This task depends upon
This includes a solution for the long (and getting longer) #ifdef lines for various SDL app targets. If you include PLATFORM_SDL with your PLATFORM_X in your CONFIG_PLATFORM setting then you only need CONFIG_SDL on most of the long #ifdef lines. Actually I currently want ALL of the PLATFORM_SDL code for the zipit.
Anyhow, the old fracmul.h code (with macros instead of the inline functions) still works. So here's a small additional patch to get the zipit code to compile. Looks like I also need to replace the HAVE_SIGALTSTACK_THREADS with HAVE_SDL_THREADS in the configure script since I couldn't get that to work with the uclibc on either zipit userland.