Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: use MEM variable in source - how?

use MEM variable in source - how?

From: Uwe Freese <mail_at_uwe-freese.de>
Date: Mon, 3 Mar 2003 12:08:21 +0100

Hello,

I want to consider having 8MB or not for the battery runtime estimation.
That means some sort of

#if MEM=8
 ...
#endif

How should this preprocessor line look like?

Since powermgmt.c is in /firmware, do I have to add " MEM=$(MEMORYSIZE)"
to the firmware line in the Makefile?

Now it looks like:

firmware:
        $(MAKE) -C $(FIRMDIR) TARGET=$(TARGET) $(DEBUG) OBJDIR=$(THISDIR) EXTRA_DEFINES="$(EXTRA_DEFINES)"

apps:
        $(MAKE) -C $(APPSDIR) TARGET=$(TARGET) $(DEBUG) OBJDIR=$(THISDIR) VERSION=$(VERSION) LANGUAGE=$(LANGUAGE) EXTRA_DEFINES="$(EXTRA_DEFINES)" MEM=$(MEMORYSIZE)

Bye, Uwe.
Received on 2003-03-03

Page was last modified "Sat May 23 08:12:40 2020" The Rockbox Crew