Thread (42 messages) 42 messages, 8 authors, 2018-09-18

[PATCH 4/9] ARM: add CONFIG_PHYS_OFFSET default values

From: arnd@arndb.de (Arnd Bergmann)
Date: 2016-02-19 16:24:15
Also in: lkml

On Friday 19 February 2016 11:10:22 Nicolas Pitre wrote:
On Fri, 19 Feb 2016, Arnd Bergmann wrote:
quoted
On Thursday 18 February 2016 11:02:33 Nicolas Pitre wrote:
quoted
Acked-by: Nicolas Pitre <redacted>

Is there a way to provide a default for defaults?
...
quoted
and then select one of the bool symbols from each platform.
Would that address your question?
Yes, but the ugliness factor isn't worth it IMHO.

I was wondering if something like this was possible:

config PHYS_OFFSET
        hex "Physical address of main memory" if MMU
        default DRAM_BASE if !MMU
        default 0x10000000 if FOO
        default 0x20000000 if BAR
        default 0x30000000 if BAZ
        default 0x00000000
Ah, that was my previous approach, but Russell didn't like
how it makes it easier to fall back to an incorrect address
instead of forcing a build error when the address is not
configured.

	Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help