From 37183be69ce68e3f9ecaf12ce668d7e21229d8f0 Mon Sep 17 00:00:00 2001 From: Mustapha Senhaji Date: Fri, 20 Feb 2009 23:14:09 +0000 Subject: FS#9901 by Joshua Simmons for the Goban plugin: Goban overlay for the Archos targets. This is a first try to enable this plugin for low memory targets like our old archoses :) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20069 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/goban/goban.make | 40 +++++++++++++++++++++++++++++++++------- 1 file changed, 33 insertions(+), 7 deletions(-) (limited to 'apps/plugins/goban/goban.make') diff --git a/apps/plugins/goban/goban.make b/apps/plugins/goban/goban.make index f3f96ff5c6..b8866fbc4f 100644 --- a/apps/plugins/goban/goban.make +++ b/apps/plugins/goban/goban.make @@ -8,15 +8,41 @@ # -GOBANSRCDIR := $(APPSDIR)/plugins/goban -GOBANBUILDDIR := $(BUILDDIR)/apps/plugins/goban +GOBAN_SRCDIR := $(APPSDIR)/plugins/goban +GOBAN_BUILDDIR := $(BUILDDIR)/apps/plugins/goban -ROCKS += $(GOBANBUILDDIR)/goban.rock - - -GOBAN_SRC := $(call preprocess, $(GOBANSRCDIR)/SOURCES) +GOBAN_SRC := $(call preprocess, $(GOBAN_SRCDIR)/SOURCES) GOBAN_OBJ := $(call c2obj, $(GOBAN_SRC)) OTHER_SRC += $(GOBAN_SRC) -$(GOBANBUILDDIR)/goban.rock: $(GOBAN_OBJ) +ifndef SIMVER +ifneq (,$(strip $(foreach tgt,RECORDER ONDIO,$(findstring $(tgt),$(TARGET))))) + ### archos recorder targets + GOBAN_INLDS := $(GOBAN_SRCDIR)/archos.lds + ROCKS += $(GOBAN_BUILDDIR)/goban.ovl +else + ### all other targets + GOBAN_INLDS := $(APPSDIR)/plugins/plugin.lds + ROCKS += $(GOBAN_BUILDDIR)/goban.rock +endif + GOBAN_OVLFLAGS = -T$(GOBAN_OUTLDS) -Wl,--gc-sections -Wl,-Map,$(basename $@).map + GOBAN_OUTLDS = $(GOBAN_BUILDDIR)/goban.lds +else + ### simulator + ROCKS += $(GOBAN_BUILDDIR)/goban.rock + GOBAN_OVLFLAGS = $(SHARED_FLAG) # <-- from Makefile +endif + +$(GOBAN_OUTLDS): $(GOBAN_INLDS) $(GOBAN_OBJ) + $(call PRINTS,PP $(