dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re: use MEM variable in source - how?

Re: use MEM variable in source - how?

From: Daniel Stenberg <>
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
> ...
> #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/

 Daniel Stenberg -- --
Received on 2003-03-03

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy