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?
From: Uwe Freese (mail_at_uwe-freese.de)
Date: 2003-03-03


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.



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa