mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
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:
committed by
Blue Swirl
parent
31289f3544
commit
cffdefa19e
@@ -85,7 +85,7 @@ setenv( char *env, char *value )
|
||||
void
|
||||
arch_of_init( void )
|
||||
{
|
||||
#if USE_RTAS
|
||||
#if CONFIG_RTAS
|
||||
phandle_t ph;
|
||||
#endif
|
||||
int autoboot;
|
||||
@@ -98,7 +98,7 @@ arch_of_init( void )
|
||||
ob_pci_init();
|
||||
#endif
|
||||
|
||||
#if USE_RTAS
|
||||
#if CONFIG_RTAS
|
||||
if( !(ph=find_dev("/rtas")) )
|
||||
printk("Warning: No /rtas node\n");
|
||||
else {
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
/* RTAS (run-time abstraction services) */
|
||||
/************************************************************************/
|
||||
|
||||
#ifdef USE_RTAS
|
||||
#ifdef CONFIG_RTAS
|
||||
DECLARE_NODE( rtas, INSTALL_OPEN, 0, "+/rtas" );
|
||||
|
||||
/* ( physbase -- rtas_callback ) */
|
||||
@@ -321,7 +321,7 @@ NODE_METHODS( mmu_ciface ) = {
|
||||
void
|
||||
node_methods_init( void )
|
||||
{
|
||||
#ifdef USE_RTAS
|
||||
#ifdef CONFIG_RTAS
|
||||
REGISTER_NODE( rtas );
|
||||
#endif
|
||||
REGISTER_NODE( vfd_stdout );
|
||||
|
||||
@@ -88,7 +88,7 @@ setenv( char *env, char *value )
|
||||
void
|
||||
arch_of_init( void )
|
||||
{
|
||||
#if USE_RTAS
|
||||
#if CONFIG_RTAS
|
||||
phandle_t ph;
|
||||
#endif
|
||||
int autoboot;
|
||||
@@ -104,7 +104,7 @@ arch_of_init( void )
|
||||
node_methods_init();
|
||||
init_video();
|
||||
|
||||
#if USE_RTAS
|
||||
#if CONFIG_RTAS
|
||||
if( !(ph=find_dev("/rtas")) )
|
||||
printk("Warning: No /rtas node\n");
|
||||
else {
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
/* RTAS (run-time abstraction services) */
|
||||
/************************************************************************/
|
||||
|
||||
#ifdef USE_RTAS
|
||||
#ifdef CONFIG_RTAS
|
||||
DECLARE_NODE( rtas, INSTALL_OPEN, 0, "+/rtas" );
|
||||
|
||||
/* ( physbase -- rtas_callback ) */
|
||||
@@ -317,7 +317,7 @@ NODE_METHODS( mmu_ciface ) = {
|
||||
void
|
||||
node_methods_init( void )
|
||||
{
|
||||
#ifdef USE_RTAS
|
||||
#ifdef CONFIG_RTAS
|
||||
REGISTER_NODE( rtas );
|
||||
#endif
|
||||
REGISTER_NODE( video_stdout );
|
||||
|
||||
@@ -582,7 +582,7 @@ static void kvm_of_init(void)
|
||||
void
|
||||
arch_of_init( void )
|
||||
{
|
||||
#ifdef USE_RTAS
|
||||
#ifdef CONFIG_RTAS
|
||||
phandle_t ph;
|
||||
#endif
|
||||
uint64_t ram_size;
|
||||
@@ -740,7 +740,7 @@ arch_of_init( void )
|
||||
ofmem_register(find_dev("/memory"), find_dev(buf));
|
||||
node_methods_init(buf);
|
||||
|
||||
#ifdef USE_RTAS
|
||||
#ifdef CONFIG_RTAS
|
||||
if( !(ph=find_dev("/rtas")) )
|
||||
printk("Warning: No /rtas node\n");
|
||||
else {
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
/* RTAS (run-time abstraction services) */
|
||||
/************************************************************************/
|
||||
|
||||
#ifdef USE_RTAS
|
||||
#ifdef CONFIG_RTAS
|
||||
DECLARE_NODE( rtas, INSTALL_OPEN, 0, "+/rtas" );
|
||||
|
||||
/* ( physbase -- rtas_callback ) */
|
||||
@@ -303,7 +303,7 @@ void
|
||||
node_methods_init( const char *cpuname )
|
||||
{
|
||||
phandle_t chosen, ph;
|
||||
#ifdef USE_RTAS
|
||||
#ifdef CONFIG_RTAS
|
||||
REGISTER_NODE( rtas );
|
||||
#endif
|
||||
REGISTER_NODE( ciface );
|
||||
|
||||
@@ -58,6 +58,7 @@
|
||||
|
||||
<!-- Miscellaneous -->
|
||||
<option name="CONFIG_LINUXBIOS" type="boolean" value="false"/>
|
||||
<option name="CONFIG_RTAS" type="boolean" value="false"/>
|
||||
|
||||
<!-- Drivers -->
|
||||
<option name="CONFIG_DRIVER_PCI" type="boolean" value="true"/>
|
||||
|
||||
Reference in New Issue
Block a user