PPC: Add new target config for pseries
We only support -M pseries when certain prerequisites are met, such as a PPC64 guest and libfdt. To only gather these requirements in a single place, this patch introduces a new CONFIG_PSERIES variable that gets set when all prerequisites are met. Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
a2a674204b
commit
0a6b8dde65
@ -239,10 +239,8 @@ obj-ppc-y += ppc_oldworld.o
|
|||||||
# NewWorld PowerMac
|
# NewWorld PowerMac
|
||||||
obj-ppc-y += ppc_newworld.o
|
obj-ppc-y += ppc_newworld.o
|
||||||
# IBM pSeries (sPAPR)
|
# IBM pSeries (sPAPR)
|
||||||
ifeq ($(CONFIG_FDT)$(TARGET_PPC64),yy)
|
obj-ppc-$(CONFIG_PSERIES) += spapr.o spapr_hcall.o spapr_rtas.o spapr_vio.o
|
||||||
obj-ppc-y += spapr.o spapr_hcall.o spapr_rtas.o spapr_vio.o
|
obj-ppc-$(CONFIG_PSERIES) += xics.o spapr_vty.o spapr_llan.o spapr_vscsi.o
|
||||||
obj-ppc-y += xics.o spapr_vty.o spapr_llan.o spapr_vscsi.o
|
|
||||||
endif
|
|
||||||
# PowerPC 4xx boards
|
# PowerPC 4xx boards
|
||||||
obj-ppc-y += ppc4xx_devs.o ppc4xx_pci.o ppc405_uc.o ppc405_boards.o
|
obj-ppc-y += ppc4xx_devs.o ppc4xx_pci.o ppc405_uc.o ppc405_boards.o
|
||||||
obj-ppc-y += ppc440.o ppc440_bamboo.o
|
obj-ppc-y += ppc440.o ppc440_bamboo.o
|
||||||
|
3
configure
vendored
3
configure
vendored
@ -3389,6 +3389,9 @@ case "$target_arch2" in
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
esac
|
esac
|
||||||
|
if test "$target_arch2" = "ppc64" -a "$fdt" = "yes"; then
|
||||||
|
echo "CONFIG_PSERIES=y" >> $config_target_mak
|
||||||
|
fi
|
||||||
if test "$target_bigendian" = "yes" ; then
|
if test "$target_bigendian" = "yes" ; then
|
||||||
echo "TARGET_WORDS_BIGENDIAN=y" >> $config_target_mak
|
echo "TARGET_WORDS_BIGENDIAN=y" >> $config_target_mak
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user