plugins: changes for targets with small plugin buffer (Clipv1)

- only enable overlays for targets with very small plugin buffer (<=
  0x10000 bytes, i.e. archos)
- change the condition for rockboy to reflect exactly why it can be
  built or not
- Some plugins need a large plugin buffer, only enable them if the
  buffer is big enough (sizes measured on Clipv1)
- disable MIDI if we have 2MB (or less), we won't be able to load the
  instruments in the audio buffer
- remove unusable lua overlay loader
- sokoban code is bigger on clipv1 than on SH, assume it code is 20kB on
  anything but SH so it builds with buffer smaller than 192kB
- reduce the Clipv1 plugin buffer size from 288kB to 96kb, disabling
  zxbox, chessbox, and fft

zxbox and chessbox have overlays which run on archos, we just need to
enable them on other targets. We'll also be able to run rockboy.

fft won't run as it needs a large plugin buffer for greylib

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26141 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-05-18 12:46:53 +00:00
parent dcbd8d74c6
commit a01422c54b
6 changed files with 44 additions and 58 deletions

View file

@ -67,22 +67,19 @@ iriverify.c
#ifndef SIMULATOR /* those plugins only run on hardware */
/* Overlay loaders */
/* Overlays loaders */
#if PLUGIN_BUFFER_SIZE <= 0x10000 && defined(HAVE_LCD_BITMAP)
#if (MEMORYSIZE <= 8)
chessbox.c
#if CONFIG_KEYPAD == RECORDER_PAD
#if CONFIG_KEYPAD != ONDIO_PAD /* not enough buttons for rockboy */
rockboy.c
#endif
zxbox.c
#endif
/* overlay loader for Goban */
#if (PLUGIN_BUFFER_SIZE < 0x10000)
lua.c
zxbox.c
chessbox.c
goban.c
pictureflow.c
#endif
#endif /* PLUGIN_BUFFER_SIZE <= 0x10000 && HAVE_LCD_BITMAP */
#if CONFIG_CODEC != SWCODEC