forked from len0rd/rockbox
Build overlay plugins for all targets with PLUGIN_BUFFER <= 0x10000 bytes
Bring Clipv1 & m200v4 plugin buffer down to this limit zxbox, chessbox and rockboy build on the clip rockboy doesn't build on m200v4 due to not enough buttons to make a keymap Some gameboy roms won't run on Clipv1: tetris does but not pokemon for example git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26144 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6e15b710c0
commit
681cedb4d8
11 changed files with 17 additions and 27 deletions
9
apps/plugins/BUILD_OVERLAY
Normal file
9
apps/plugins/BUILD_OVERLAY
Normal file
|
@ -0,0 +1,9 @@
|
|||
#include "config.h"
|
||||
|
||||
/* this file is processed by makefiles
|
||||
* they will grep for "YES" to see if overlay plugins must be built
|
||||
*/
|
||||
|
||||
#if PLUGIN_BUFFER_SIZE <= 0x10000 && !defined(SIMULATOR)
|
||||
YES
|
||||
#endif
|
|
@ -70,7 +70,8 @@ iriverify.c
|
|||
/* Overlays loaders */
|
||||
#if PLUGIN_BUFFER_SIZE <= 0x10000 && defined(HAVE_LCD_BITMAP)
|
||||
|
||||
#if CONFIG_KEYPAD != ONDIO_PAD /* not enough buttons for rockboy */
|
||||
#if CONFIG_KEYPAD != ONDIO_PAD && CONFIG_KEYPAD != SANSA_M200_PAD
|
||||
/* not enough buttons for rockboy */
|
||||
rockboy.c
|
||||
#endif
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@ clock
|
|||
#ifdef HAVE_LCD_BITMAP
|
||||
|
||||
#if (CONFIG_KEYPAD != ONDIO_PAD) /* not enough buttons */ \
|
||||
&& (CONFIG_KEYPAD != SANSA_M200_PAD) /* not enough buttons */ \
|
||||
&& (LCD_PIXELFORMAT != HORIZONTAL_PACKING) /* TODO */ \
|
||||
&& (LCD_PIXELFORMAT != VERTICAL_INTERLEAVED) /* TODO */ \
|
||||
&& (defined(HAVE_LCD_COLOR) || (LCD_HEIGHT == 64) && (LCD_DEPTH == 1) || \
|
||||
|
|
|
@ -22,8 +22,6 @@
|
|||
****************************************************************************/
|
||||
#include "plugin.h"
|
||||
|
||||
#if MEM <= 8 && !defined(SIMULATOR)
|
||||
|
||||
#include "lib/overlay.h"
|
||||
|
||||
PLUGIN_HEADER
|
||||
|
@ -33,4 +31,3 @@ enum plugin_status plugin_start(const void* parameter)
|
|||
{
|
||||
return run_overlay(parameter, PLUGIN_GAMES_DIR "/chessbox.ovl", "ChessBox");
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -15,18 +15,12 @@ CHESSBOX_OBJ := $(call c2obj, $(CHESSBOX_SRC))
|
|||
|
||||
OTHER_SRC += $(CHESSBOX_SRC)
|
||||
|
||||
ifndef SIMVER
|
||||
ifneq (,$(strip $(foreach tgt,RECORDER ONDIO,$(findstring $(tgt),$(TARGET)))))
|
||||
ifeq ($(findstring YES, $(call preprocess, $(APPSDIR)/plugins/BUILD_OVERLAY)), YES)
|
||||
### lowmem targets
|
||||
ROCKS += $(CHESSBOX_OBJDIR)/chessbox.ovl
|
||||
CHESSBOX_OUTLDS = $(CHESSBOX_OBJDIR)/chessbox.link
|
||||
CHESSBOX_OVLFLAGS = -T$(CHESSBOX_OUTLDS) -Wl,--gc-sections -Wl,-Map,$(basename $@).map
|
||||
else
|
||||
### all other targets
|
||||
ROCKS += $(CHESSBOX_OBJDIR)/chessbox.rock
|
||||
endif
|
||||
else
|
||||
### simulator
|
||||
ROCKS += $(CHESSBOX_OBJDIR)/chessbox.rock
|
||||
endif
|
||||
|
||||
|
|
|
@ -22,8 +22,6 @@
|
|||
****************************************************************************/
|
||||
#include "plugin.h"
|
||||
|
||||
#if MEM <= 8 && !defined(SIMULATOR)
|
||||
|
||||
#include "lib/overlay.h"
|
||||
|
||||
PLUGIN_HEADER
|
||||
|
@ -33,4 +31,3 @@ enum plugin_status plugin_start(const void* parameter)
|
|||
{
|
||||
return run_overlay(parameter, VIEWERS_DIR "/rockboy.ovl", "RockBoy");
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -16,18 +16,12 @@ ROCKBOY_OBJ := $(call c2obj, $(ROCKBOY_SRC))
|
|||
|
||||
OTHER_SRC += $(ROCKBOY_SRC)
|
||||
|
||||
ifndef SIMVER
|
||||
ifneq (,$(findstring RECORDER,$(TARGET)))
|
||||
ifeq ($(findstring YES, $(call preprocess, $(APPSDIR)/plugins/BUILD_OVERLAY)), YES)
|
||||
## lowmem targets
|
||||
ROCKS += $(ROCKBOY_OBJDIR)/rockboy.ovl
|
||||
ROCKBOY_OUTLDS = $(ROCKBOY_OBJDIR)/rockboy.link
|
||||
ROCKBOY_OVLFLAGS = -T$(ROCKBOY_OUTLDS) -Wl,--gc-sections -Wl,-Map,$(basename $@).map
|
||||
else
|
||||
### all other targets
|
||||
ROCKS += $(ROCKBOY_OBJDIR)/rockboy.rock
|
||||
endif
|
||||
else
|
||||
### simulator
|
||||
ROCKS += $(ROCKBOY_OBJDIR)/rockboy.rock
|
||||
endif
|
||||
|
||||
|
|
|
@ -19,8 +19,6 @@
|
|||
****************************************************************************/
|
||||
#include "plugin.h"
|
||||
|
||||
#if MEM <= 8 && !defined(SIMULATOR)
|
||||
|
||||
#include "lib/overlay.h"
|
||||
|
||||
PLUGIN_HEADER
|
||||
|
@ -30,4 +28,3 @@ enum plugin_status plugin_start(const void* parameter)
|
|||
{
|
||||
return run_overlay(parameter, VIEWERS_DIR "/zxbox.ovl", "ZXBox");
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -16,7 +16,7 @@ ZXBOX_OBJ := $(call c2obj, $(ZXBOX_SRC))
|
|||
OTHER_SRC += $(ZXBOX_SRC)
|
||||
|
||||
ifndef SIMVER
|
||||
ifneq (,$(strip $(foreach tgt,RECORDER ONDIO,$(findstring $(tgt),$(TARGET)))))
|
||||
ifeq ($(findstring YES, $(call preprocess, $(APPSDIR)/plugins/BUILD_OVERLAY)), YES)
|
||||
## lowmem targets
|
||||
ROCKS += $(ZXBOX_OBJDIR)/zxbox.ovl
|
||||
ZXBOX_OUTLDS = $(ZXBOX_OBJDIR)/zxbox.link
|
||||
|
|
|
@ -111,7 +111,7 @@
|
|||
#define CODEC_SIZE 0x48000 /* in IRAM */
|
||||
|
||||
/* The number of bytes reserved for loadable plugins */
|
||||
#define PLUGIN_BUFFER_SIZE 0x18000
|
||||
#define PLUGIN_BUFFER_SIZE 0x10000
|
||||
|
||||
#define AB_REPEAT_ENABLE 1
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@
|
|||
#define CODEC_SIZE 0x48000 /* in IRAM */
|
||||
|
||||
/* The number of bytes reserved for loadable plugins */
|
||||
#define PLUGIN_BUFFER_SIZE 0x45000
|
||||
#define PLUGIN_BUFFER_SIZE 0x10000
|
||||
|
||||
#define AB_REPEAT_ENABLE 1
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue