1
0
Fork 0
forked from len0rd/rockbox

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

@ -7,23 +7,32 @@ shortcuts
clock
#endif
#if (CONFIG_KEYPAD == RECORDER_PAD) || defined(HAVE_LCD_COLOR) \
|| defined(IRIVER_H100_SERIES) || defined(IAUDIO_M5) /* FIXME */
rockboy
#endif
/* For all targets with a bitmap display */
#ifdef HAVE_LCD_BITMAP
#if (CONFIG_KEYPAD != ONDIO_PAD) /* not enough buttons */ \
&& (LCD_PIXELFORMAT != HORIZONTAL_PACKING) /* TODO */ \
&& (LCD_PIXELFORMAT != VERTICAL_INTERLEAVED) /* TODO */ \
&& (defined(HAVE_LCD_COLOR) || (LCD_HEIGHT == 64) && (LCD_DEPTH == 1) || \
(LCD_HEIGHT == 128) && (LCD_DEPTH == 2)) \
&& (PLUGIN_BUFFER_SIZE >= 0x60000 /* it needs a lot of RAM */ || \
PLUGIN_BUFFER_SIZE <= 0x10000) /* but we can use overlays */
rockboy
#endif
#ifdef HAVE_TAGCACHE
pictureflow
#endif
#if (CONFIG_CODEC == SWCODEC)
#if CONFIG_CODEC == SWCODEC && PLUGIN_BUFFER_SIZE > 0x20000
fft
#endif
#if PLUGIN_BUFFER_SIZE > 0x20000 || PLUGIN_BUFFER_SIZE <= 0x10000 /* overlay */
chessbox
#endif
fractals
imageviewer
sudoku
@ -36,8 +45,10 @@ frotz
#endif
#ifndef OLYMPUS_MROBE_500
#if PLUGIN_BUFFER_SIZE > 0x40000 || PLUGIN_BUFFER_SIZE <= 0x10000 /* overlay */
zxbox
#endif
#endif
#endif /* HAVE_LCD_BITMAP */
@ -56,7 +67,9 @@ doom
/* For all the swcodec targets */
#if CONFIG_CODEC == SWCODEC
#if MEMORYSIZE > 2 /* we need a lot of RAM for instruments */
midi
#endif
/* beatbox */
#if defined(IRIVER_H300_SERIES) || defined(IRIVER_H100_SERIES)
@ -71,6 +84,6 @@ mpegplayer
#endif /* CONFIG_CODEC == SWCODEC */
/* Lua needs at least 160 KB to work in */
#if (PLUGIN_BUFFER_SIZE >= 0x80000)
#if PLUGIN_BUFFER_SIZE >= 0x80000
lua
#endif