diff options
| author | Alexander Graf | 2011-08-10 14:21:41 +0200 |
|---|---|---|
| committer | Alexander Graf | 2011-10-06 09:48:02 +0200 |
| commit | 0a6b8dde6523a93d263631ddb9a726b2790a3cf8 (patch) | |
| tree | fcbc8b5d80284cd18c9f5d5237fbced451f6d0a4 | |
| parent | PPC: E500: Bump CPU count to 15 (diff) | |
| download | qemu-0a6b8dde6523a93d263631ddb9a726b2790a3cf8.tar.gz qemu-0a6b8dde6523a93d263631ddb9a726b2790a3cf8.tar.xz qemu-0a6b8dde6523a93d263631ddb9a726b2790a3cf8.zip | |
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>
| -rw-r--r-- | Makefile.target | 6 | ||||
| -rwxr-xr-x | configure | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/Makefile.target b/Makefile.target index ff3efa430c..fc3dfaabe5 100644 --- a/Makefile.target +++ b/Makefile.target @@ -239,10 +239,8 @@ obj-ppc-y += ppc_oldworld.o # NewWorld PowerMac obj-ppc-y += ppc_newworld.o # IBM pSeries (sPAPR) -ifeq ($(CONFIG_FDT)$(TARGET_PPC64),yy) -obj-ppc-y += spapr.o spapr_hcall.o spapr_rtas.o spapr_vio.o -obj-ppc-y += xics.o spapr_vty.o spapr_llan.o spapr_vscsi.o -endif +obj-ppc-$(CONFIG_PSERIES) += 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 # PowerPC 4xx boards obj-ppc-y += ppc4xx_devs.o ppc4xx_pci.o ppc405_uc.o ppc405_boards.o obj-ppc-y += ppc440.o ppc440_bamboo.o @@ -3389,6 +3389,9 @@ case "$target_arch2" in fi fi esac +if test "$target_arch2" = "ppc64" -a "$fdt" = "yes"; then + echo "CONFIG_PSERIES=y" >> $config_target_mak +fi if test "$target_bigendian" = "yes" ; then echo "TARGET_WORDS_BIGENDIAN=y" >> $config_target_mak fi |
