Unified setup...

Stefan Reinauer stepan at suse.de
Tue Sep 2 12:39:01 CEST 2003


* YhLu <YhLu at tyan.com> [030902 18:18]:
> Then, the setup scripts tool should include that support and should have
> support for auto.c too.
> 
> YH
> 
> southbridge amd/amd8131 "amd8131"
>         register "bus0" = "5"
> end
> 
> southbridge amd/amd8151 "amd8151"
>         register "bus0" = "3"
> end

currently the code that is generated (static.c) consists all of global
structs that are not directly usable with romcc code.
looking at the needs of auto.c it might be worth it adding a new
writeromccstructs definition that dumps into the right files and is only
called "on architectures that have romcc support" ;)

When i.e. generating hypertransport routing tables it would be nice to
have those directly generated in config.g. but then again, this adds up
a lot of cpu dependent magic to the config tool. What about having part 
specific configuration output in src/<type>/<vendor>/<id>/config.py i.e. 
have the opteron northbridge specific code that creates ht tables and 
writes auto.c's mem_controller struct in 
src/northbridge/amd/amdk8/Config.py. 
That would keep the configuration utility reasonably small and enhancable
while have the actual config file creator for each of the components at the 
same place as the other code parts belonging to that component.

Stefan

-- 
Architecture Team
    SuSE Linux AG



More information about the coreboot mailing list