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



Rockbox mail archive

Subject: Re: use MEM variable in source - how?
From: Daniel Stenberg (daniel_at_haxx.se)
Date: 2003-03-03


On Mon, 3 Mar 2003, Uwe Freese wrote:

> 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?

You need to fiddle with the firmware as well? Ok, yes then you need to fix
how the main Makefile is generated.

You'll also need to edit both the firmware/Makefile and apps/Makefile and set
MEMORYSIZE=$(MEM) in the CFLAGS variable so that you can do conditions in the
style currently used in firmware/app.lds.

-- 
 Daniel Stenberg -- http://rockbox.haxx.se/ -- http://daniel.haxx.se/



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