ppc: Use config file to enable RTAS

RTAS had to be enabled via EXTRACFLAGS=-DUSE_RTAS.
Use the config file instead.

Signed-off-by: Andreas Färber <andreas.faerber@web.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@909 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Andreas Färber
2010-10-16 17:36:22 +00:00
committed by Blue Swirl
parent 31289f3544
commit cffdefa19e
7 changed files with 13 additions and 12 deletions

View File

@@ -85,7 +85,7 @@ setenv( char *env, char *value )
void void
arch_of_init( void ) arch_of_init( void )
{ {
#if USE_RTAS #if CONFIG_RTAS
phandle_t ph; phandle_t ph;
#endif #endif
int autoboot; int autoboot;
@@ -98,7 +98,7 @@ arch_of_init( void )
ob_pci_init(); ob_pci_init();
#endif #endif
#if USE_RTAS #if CONFIG_RTAS
if( !(ph=find_dev("/rtas")) ) if( !(ph=find_dev("/rtas")) )
printk("Warning: No /rtas node\n"); printk("Warning: No /rtas node\n");
else { else {

View File

@@ -28,7 +28,7 @@
/* RTAS (run-time abstraction services) */ /* RTAS (run-time abstraction services) */
/************************************************************************/ /************************************************************************/
#ifdef USE_RTAS #ifdef CONFIG_RTAS
DECLARE_NODE( rtas, INSTALL_OPEN, 0, "+/rtas" ); DECLARE_NODE( rtas, INSTALL_OPEN, 0, "+/rtas" );
/* ( physbase -- rtas_callback ) */ /* ( physbase -- rtas_callback ) */
@@ -321,7 +321,7 @@ NODE_METHODS( mmu_ciface ) = {
void void
node_methods_init( void ) node_methods_init( void )
{ {
#ifdef USE_RTAS #ifdef CONFIG_RTAS
REGISTER_NODE( rtas ); REGISTER_NODE( rtas );
#endif #endif
REGISTER_NODE( vfd_stdout ); REGISTER_NODE( vfd_stdout );

View File

@@ -88,7 +88,7 @@ setenv( char *env, char *value )
void void
arch_of_init( void ) arch_of_init( void )
{ {
#if USE_RTAS #if CONFIG_RTAS
phandle_t ph; phandle_t ph;
#endif #endif
int autoboot; int autoboot;
@@ -104,7 +104,7 @@ arch_of_init( void )
node_methods_init(); node_methods_init();
init_video(); init_video();
#if USE_RTAS #if CONFIG_RTAS
if( !(ph=find_dev("/rtas")) ) if( !(ph=find_dev("/rtas")) )
printk("Warning: No /rtas node\n"); printk("Warning: No /rtas node\n");
else { else {

View File

@@ -28,7 +28,7 @@
/* RTAS (run-time abstraction services) */ /* RTAS (run-time abstraction services) */
/************************************************************************/ /************************************************************************/
#ifdef USE_RTAS #ifdef CONFIG_RTAS
DECLARE_NODE( rtas, INSTALL_OPEN, 0, "+/rtas" ); DECLARE_NODE( rtas, INSTALL_OPEN, 0, "+/rtas" );
/* ( physbase -- rtas_callback ) */ /* ( physbase -- rtas_callback ) */
@@ -317,7 +317,7 @@ NODE_METHODS( mmu_ciface ) = {
void void
node_methods_init( void ) node_methods_init( void )
{ {
#ifdef USE_RTAS #ifdef CONFIG_RTAS
REGISTER_NODE( rtas ); REGISTER_NODE( rtas );
#endif #endif
REGISTER_NODE( video_stdout ); REGISTER_NODE( video_stdout );

View File

@@ -582,7 +582,7 @@ static void kvm_of_init(void)
void void
arch_of_init( void ) arch_of_init( void )
{ {
#ifdef USE_RTAS #ifdef CONFIG_RTAS
phandle_t ph; phandle_t ph;
#endif #endif
uint64_t ram_size; uint64_t ram_size;
@@ -740,7 +740,7 @@ arch_of_init( void )
ofmem_register(find_dev("/memory"), find_dev(buf)); ofmem_register(find_dev("/memory"), find_dev(buf));
node_methods_init(buf); node_methods_init(buf);
#ifdef USE_RTAS #ifdef CONFIG_RTAS
if( !(ph=find_dev("/rtas")) ) if( !(ph=find_dev("/rtas")) )
printk("Warning: No /rtas node\n"); printk("Warning: No /rtas node\n");
else { else {

View File

@@ -30,7 +30,7 @@
/* RTAS (run-time abstraction services) */ /* RTAS (run-time abstraction services) */
/************************************************************************/ /************************************************************************/
#ifdef USE_RTAS #ifdef CONFIG_RTAS
DECLARE_NODE( rtas, INSTALL_OPEN, 0, "+/rtas" ); DECLARE_NODE( rtas, INSTALL_OPEN, 0, "+/rtas" );
/* ( physbase -- rtas_callback ) */ /* ( physbase -- rtas_callback ) */
@@ -303,7 +303,7 @@ void
node_methods_init( const char *cpuname ) node_methods_init( const char *cpuname )
{ {
phandle_t chosen, ph; phandle_t chosen, ph;
#ifdef USE_RTAS #ifdef CONFIG_RTAS
REGISTER_NODE( rtas ); REGISTER_NODE( rtas );
#endif #endif
REGISTER_NODE( ciface ); REGISTER_NODE( ciface );

View File

@@ -58,6 +58,7 @@
<!-- Miscellaneous --> <!-- Miscellaneous -->
<option name="CONFIG_LINUXBIOS" type="boolean" value="false"/> <option name="CONFIG_LINUXBIOS" type="boolean" value="false"/>
<option name="CONFIG_RTAS" type="boolean" value="false"/>
<!-- Drivers --> <!-- Drivers -->
<option name="CONFIG_DRIVER_PCI" type="boolean" value="true"/> <option name="CONFIG_DRIVER_PCI" type="boolean" value="true"/>