Rockbox mail archiveSubject: Re: use MEM variable in source - how?
Re: use MEM variable in source - how?
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 3 Mar 2003 12:23:30 +0100 (CET)
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
> 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/Received on 2003-03-03