Skip to content

Commit be42d5f

Browse files
committed
powerpc: unbreak iSeries compilation again
We don't set CONFIG_PPC_MULTIPLATFORM on iSeries (yet). Avoid compiling in the prom_init stuff on iSeries. Signed-off-by: Paul Mackerras <[email protected]>
1 parent e0fa93d commit be42d5f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

arch/powerpc/kernel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ obj-y += process.o init_task.o time.o \
4949
prom.o traps.o setup-common.o udbg.o
5050
obj-$(CONFIG_PPC32) += entry_32.o setup_32.o misc_32.o systbl.o
5151
obj-$(CONFIG_PPC64) += misc_64.o dma_64.o iommu.o
52-
obj-$(CONFIG_PPC_OF) += prom_init.o
52+
obj-$(CONFIG_PPC_MULTIPLATFORM) += prom_init.o
5353
obj-$(CONFIG_MODULES) += ppc_ksyms.o
5454
obj-$(CONFIG_BOOTX_TEXT) += btext.o
5555
obj-$(CONFIG_6xx) += idle_6xx.o

arch/powerpc/kernel/head_64.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1506,11 +1506,13 @@ _STATIC(__mmu_off)
15061506
*
15071507
*/
15081508
_GLOBAL(__start_initialization_multiplatform)
1509+
#ifdef CONFIG_PPC_MULTIPLATFORM
15091510
/*
15101511
* Are we booted from a PROM Of-type client-interface ?
15111512
*/
15121513
cmpldi cr0,r5,0
15131514
bne .__boot_from_prom /* yes -> prom */
1515+
#endif
15141516

15151517
/* Save parameters */
15161518
mr r31,r3
@@ -1531,6 +1533,7 @@ _GLOBAL(__start_initialization_multiplatform)
15311533
bl .__mmu_off
15321534
b .__after_prom_start
15331535

1536+
#ifdef CONFIG_PPC_MULTIPLATFORM
15341537
_STATIC(__boot_from_prom)
15351538
/* Save parameters */
15361539
mr r31,r3
@@ -1563,6 +1566,7 @@ _STATIC(__boot_from_prom)
15631566
bl .prom_init
15641567
/* We never return */
15651568
trap
1569+
#endif
15661570

15671571
/*
15681572
* At this point, r3 contains the physical address we are running at,

0 commit comments

Comments
 (0)