[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 13/46] Rename HAVE_FDT to CONFIG_FDT and define it a
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 13/46] Rename HAVE_FDT to CONFIG_FDT and define it also in Makefile |
Date: |
Fri, 24 Jul 2009 20:30:13 +0200 |
Signed-off-by: Juan Quintela <address@hidden>
---
Makefile.target | 4 ++--
configure | 3 ++-
hw/petalogix_s3adsp1800_mmu.c | 4 ++--
hw/ppc440_bamboo.c | 2 +-
hw/ppce500_mpc8544ds.c | 4 ++--
target-ppc/kvm_ppc.c | 2 +-
6 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/Makefile.target b/Makefile.target
index b2237dd..687648c 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -513,8 +513,8 @@ ifeq ($(TARGET_BASE_ARCH), ppc)
CPPFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE
endif
+obj-ppc-$(CONFIG_FDT) += device_tree.o
ifdef FDT_LIBS
-obj-ppc-y += device_tree.o
LIBS+= $(FDT_LIBS)
endif
@@ -541,8 +541,8 @@ obj-microblaze-y += xilinx_ethlite.o
obj-microblaze-y += pflash_cfi02.o
+obj-microblaze-$(CONFIG_FDT) += device_tree.o
ifdef FDT_LIBS
-obj-microblaze-y += device_tree.o
LIBS+= $(FDT_LIBS)
endif
diff --git a/configure b/configure
index df9ade2..deb62af 100755
--- a/configure
+++ b/configure
@@ -1739,7 +1739,8 @@ if test "$preadv" = "yes" ; then
echo "#define HAVE_PREADV 1" >> $config_host_h
fi
if test "$fdt" = "yes" ; then
- echo "#define HAVE_FDT 1" >> $config_host_h
+ echo "CONFIG_FDT=y" >> $config_host_mak
+ echo "#define CONFIG_FDT 1" >> $config_host_h
echo "FDT_LIBS=-lfdt" >> $config_host_mak
fi
diff --git a/hw/petalogix_s3adsp1800_mmu.c b/hw/petalogix_s3adsp1800_mmu.c
index c2a196f..63f8655 100644
--- a/hw/petalogix_s3adsp1800_mmu.c
+++ b/hw/petalogix_s3adsp1800_mmu.c
@@ -52,14 +52,14 @@ static int petalogix_load_device_tree(target_phys_addr_t
addr,
target_phys_addr_t initrd_size,
const char *kernel_cmdline)
{
-#ifdef HAVE_FDT
+#ifdef CONFIG_FDT
void *fdt;
int r;
#endif
char *path;
int fdt_size;
-#ifdef HAVE_FDT
+#ifdef CONFIG_FDT
/* Try the local "mb.dtb" override. */
fdt = load_device_tree("mb.dtb", &fdt_size);
if (!fdt) {
diff --git a/hw/ppc440_bamboo.c b/hw/ppc440_bamboo.c
index d9ef3ec..bc85646 100644
--- a/hw/ppc440_bamboo.c
+++ b/hw/ppc440_bamboo.c
@@ -32,7 +32,7 @@ static void *bamboo_load_device_tree(target_phys_addr_t addr,
const char *kernel_cmdline)
{
void *fdt = NULL;
-#ifdef HAVE_FDT
+#ifdef CONFIG_FDT
uint32_t mem_reg_property[] = { 0, 0, ramsize };
char *filename;
int fdt_size;
diff --git a/hw/ppce500_mpc8544ds.c b/hw/ppce500_mpc8544ds.c
index c0e367d..5937dac 100644
--- a/hw/ppce500_mpc8544ds.c
+++ b/hw/ppce500_mpc8544ds.c
@@ -46,7 +46,7 @@
#define MPC8544_PCI_IO 0xE1000000
#define MPC8544_PCI_IOLEN 0x10000
-#ifdef HAVE_FDT
+#ifdef CONFIG_FDT
static int mpc8544_copy_soc_cell(void *fdt, const char *node, const char *prop)
{
uint32_t cell;
@@ -77,7 +77,7 @@ static void *mpc8544_load_device_tree(target_phys_addr_t addr,
const char *kernel_cmdline)
{
void *fdt = NULL;
-#ifdef HAVE_FDT
+#ifdef CONFIG_FDT
uint32_t mem_reg_property[] = {0, ramsize};
char *filename;
int fdt_size;
diff --git a/target-ppc/kvm_ppc.c b/target-ppc/kvm_ppc.c
index 10cfdb3..6b7f411 100644
--- a/target-ppc/kvm_ppc.c
+++ b/target-ppc/kvm_ppc.c
@@ -21,7 +21,7 @@
static QEMUTimer *kvmppc_timer;
static unsigned int kvmppc_timer_rate;
-#ifdef HAVE_FDT
+#ifdef CONFIG_FDT
int kvmppc_read_host_property(const char *node_path, const char *prop,
void *val, size_t len)
{
--
1.6.2.5
- [Qemu-devel] [PATCH 07/46] remove CONFIG_ from BLUEZ_{LIBS,FLAGS}, (continued)
- [Qemu-devel] [PATCH 07/46] remove CONFIG_ from BLUEZ_{LIBS,FLAGS}, Juan Quintela, 2009/07/24
- [Qemu-devel] [PATCH 01/46] change HOST_SOLARIS to CONFIG_SOLARIS{_VERSION}, Juan Quintela, 2009/07/24
- [Qemu-devel] [PATCH 09/46] make oss use OSS_LIBS, Juan Quintela, 2009/07/24
- [Qemu-devel] [PATCH 10/46] move printing of config-host.mak variables to end of generation, Juan Quintela, 2009/07/24
- [Qemu-devel] [PATCH 06/46] remove CONFIG_ from VNC_SASL_{LIBS, FLAGS}, Juan Quintela, 2009/07/24
- [Qemu-devel] [PATCH 08/46] make fmod also use FMOD_{LIBS,CFLAGS}, Juan Quintela, 2009/07/24
- [Qemu-devel] [PATCH 15/46] fix indententation, Juan Quintela, 2009/07/24
- [Qemu-devel] [PATCH 20/46] rename HAVE_IOVEC to CONFIG_IOVEC, Juan Quintela, 2009/07/24
- [Qemu-devel] [PATCH 03/46] target_arch2 is redefined unconditionally later, Juan Quintela, 2009/07/24
- [Qemu-devel] [PATCH 16/46] O_LARGEFILE is already set in qemu-common.h, Juan Quintela, 2009/07/24
- [Qemu-devel] [PATCH 13/46] Rename HAVE_FDT to CONFIG_FDT and define it also in Makefile,
Juan Quintela <=
- [Qemu-devel] [PATCH 14/46] Refactor code to remove one #ifdef CONFIG_FDT, Juan Quintela, 2009/07/24
- [Qemu-devel] [PATCH 19/46] rename HAVE_PREADV to CONFIG_PREADV, Juan Quintela, 2009/07/24
- [Qemu-devel] [PATCH 18/46] define MAP_ANONYMOUS if it is not defined in qemu-common.h, Juan Quintela, 2009/07/24
- [Qemu-devel] [PATCH 17/46] rename HOST_BSD to CONFIG_BSD, Juan Quintela, 2009/07/24
- [Qemu-devel] [PATCH 23/46] rename HAVE_BYTESWAP_H to CONFIG_BYTESWAP_H, Juan Quintela, 2009/07/24
- [Qemu-devel] [PATCH 11/46] more specific config.mak can overwrote more general config.mak, Juan Quintela, 2009/07/24
- [Qemu-devel] [PATCH 12/46] Add -static in configure if needed, Juan Quintela, 2009/07/24