[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 09/25] PPC: e500: require libfdt
From: |
Alexander Graf |
Subject: |
[Qemu-ppc] [PATCH 09/25] PPC: e500: require libfdt |
Date: |
Wed, 30 May 2012 13:00:30 +0200 |
Now that we're moving all of the device tree generation from an external
pre-execution generated blob to runtime generation using libfdt, we absolutely
must have libfdt around.
This requirement was there before already, as the only way to not require libfdt
with e500 was to not use -kernel, which was the only way to boot the mpc8544ds
machine. This patch only manifests said requirement in the build system.
Signed-off-by: Alexander Graf <address@hidden>
---
Makefile.target | 2 +-
hw/ppce500_mpc8544ds.c | 5 -----
2 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/Makefile.target b/Makefile.target
index 1582904..19a2990 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -248,7 +248,7 @@ obj-ppc-$(CONFIG_PSERIES) += spapr_pci.o device-hotplug.o
pci-hotplug.o
obj-ppc-y += ppc4xx_devs.o ppc4xx_pci.o ppc405_uc.o ppc405_boards.o
obj-ppc-y += ppc440_bamboo.o
# PowerPC E500 boards
-obj-ppc-y += ppce500_mpc8544ds.o mpc8544_guts.o ppce500_spin.o
+obj-ppc-$(CONFIG_FDT) += ppce500_mpc8544ds.o mpc8544_guts.o ppce500_spin.o
# PowerPC 440 Xilinx ML507 reference board.
obj-ppc-y += virtex_ml507.o
obj-ppc-$(CONFIG_KVM) += kvm_ppc.o
diff --git a/hw/ppce500_mpc8544ds.c b/hw/ppce500_mpc8544ds.c
index 42a63aa..f162cd3 100644
--- a/hw/ppce500_mpc8544ds.c
+++ b/hw/ppce500_mpc8544ds.c
@@ -68,7 +68,6 @@ static int mpc8544_load_device_tree(CPUPPCState *env,
const char *kernel_cmdline)
{
int ret = -1;
-#ifdef CONFIG_FDT
uint32_t mem_reg_property[] = {0, cpu_to_be32(ramsize)};
char *filename;
int fdt_size;
@@ -173,7 +172,6 @@ static int mpc8544_load_device_tree(CPUPPCState *env,
ret = fdt_size;
out:
-#endif
return ret;
}
@@ -386,9 +384,6 @@ static void mpc8544ds_init(ram_addr_t ram_size,
struct boot_info *boot_info;
int dt_size;
-#ifndef CONFIG_FDT
- cpu_abort(env, "Compiled without FDT support - can't load kernel\n");
-#endif
dt_base = (loadaddr + kernel_size + DTC_LOAD_PAD) & ~DTC_PAD_MASK;
dt_size = mpc8544_load_device_tree(env, dt_base, ram_size, initrd_base,
initrd_size, kernel_cmdline);
--
1.6.0.2
- [Qemu-ppc] [PATCH 00/25] PPC: mpc8544ds: Create device tree dynamically, Alexander Graf, 2012/05/30
- [Qemu-ppc] [PATCH 04/25] dt: temporarily disable subtree creation failure check, Alexander Graf, 2012/05/30
- [Qemu-ppc] [PATCH 17/25] PPC: e500: dt: create mpic node dynamically, Alexander Graf, 2012/05/30
- [Qemu-ppc] [PATCH 01/25] dt: allow add_subnode to create root subnodes, Alexander Graf, 2012/05/30
- [Qemu-ppc] [PATCH 09/25] PPC: e500: require libfdt,
Alexander Graf <=
- [Qemu-ppc] [PATCH 03/25] dt: add helper for phandle references, Alexander Graf, 2012/05/30
- [Qemu-ppc] [PATCH 05/25] dt: add helper for phandle enumeration, Alexander Graf, 2012/05/30
- [Qemu-ppc] [PATCH 08/25] dt: add helper for 64bit cell adds, Alexander Graf, 2012/05/30
- [Qemu-ppc] [PATCH 10/25] PPC: e500: dt: create memory node dynamically, Alexander Graf, 2012/05/30
- [Qemu-ppc] [PATCH 13/25] PPC: e500: dt: create / node dynamically, Alexander Graf, 2012/05/30
- [Qemu-ppc] [PATCH 02/25] dt: add helpers for 2, 3 and 4 cell adds, Alexander Graf, 2012/05/30
- [Qemu-ppc] [PATCH 12/25] PPC: e500: dt: create /hypervisor node dynamically, Alexander Graf, 2012/05/30
- [Qemu-ppc] [PATCH 24/25] PPC: e500: enable manual loading of dtb blob, Alexander Graf, 2012/05/30
- [Qemu-ppc] [PATCH 14/25] PPC: e500: dt: create /chosen node dynamically, Alexander Graf, 2012/05/30