* [Qemu-devel] [PATCH 01/19] fix XEN Build
2009-07-02 14:46 [Qemu-devel] [PATCH 00/19] More Build System cleanups (v2) quintela
@ 2009-07-02 14:46 ` quintela
2009-07-02 15:14 ` Anthony Liguori
2009-07-02 14:46 ` [Qemu-devel] [PATCH 02/19] fix sparc not solaris build quintela
` (17 subsequent siblings)
18 siblings, 1 reply; 26+ messages in thread
From: quintela @ 2009-07-02 14:46 UTC (permalink / raw)
To: qemu-devel; +Cc: Juan Quintela
From: Juan Quintela <quintela@redhat.com>
I miss s/yes/y/ in one place
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
Makefile.target | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Makefile.target b/Makefile.target
index a593503..5ca90af 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -543,7 +543,7 @@ endif
# xen backend driver support
obj-$(CONFIG_XEN) += xen_machine_pv.o xen_domainbuild.o
-ifeq ($(CONFIG_XEN), yes)
+ifeq ($(CONFIG_XEN), y)
LIBS += $(XEN_LIBS)
endif
--
1.6.2.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* Re: [Qemu-devel] [PATCH 01/19] fix XEN Build
2009-07-02 14:46 ` [Qemu-devel] [PATCH 01/19] fix XEN Build quintela
@ 2009-07-02 15:14 ` Anthony Liguori
2009-07-02 15:48 ` Avi Kivity
2009-07-02 17:12 ` [Qemu-devel] " Juan Quintela
0 siblings, 2 replies; 26+ messages in thread
From: Anthony Liguori @ 2009-07-02 15:14 UTC (permalink / raw)
To: quintela; +Cc: qemu-devel
quintela@redhat.com wrote:
> From: Juan Quintela <quintela@redhat.com>
>
> I miss s/yes/y/ in one place
>
> Signed-off-by: Juan Quintela <quintela@redhat.com>
>
Is this an update to the series and if so, what's changed?
Regards,
Anthony Liguori
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [Qemu-devel] [PATCH 01/19] fix XEN Build
2009-07-02 15:14 ` Anthony Liguori
@ 2009-07-02 15:48 ` Avi Kivity
2009-07-02 17:12 ` [Qemu-devel] " Juan Quintela
1 sibling, 0 replies; 26+ messages in thread
From: Avi Kivity @ 2009-07-02 15:48 UTC (permalink / raw)
To: Anthony Liguori; +Cc: qemu-devel, quintela
On 07/02/2009 06:14 PM, Anthony Liguori wrote:
> quintela@redhat.com wrote:
>> From: Juan Quintela <quintela@redhat.com>
>>
>> I miss s/yes/y/ in one place
>>
>> Signed-off-by: Juan Quintela <quintela@redhat.com>
>
> Is this an update to the series and if so, what's changed?
>
You probably missed 00/19, which has this information.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Qemu-devel] Re: [PATCH 01/19] fix XEN Build
2009-07-02 15:14 ` Anthony Liguori
2009-07-02 15:48 ` Avi Kivity
@ 2009-07-02 17:12 ` Juan Quintela
1 sibling, 0 replies; 26+ messages in thread
From: Juan Quintela @ 2009-07-02 17:12 UTC (permalink / raw)
To: Anthony Liguori; +Cc: qemu-devel
Anthony Liguori <anthony@codemonkey.ws> wrote:
> quintela@redhat.com wrote:
>> From: Juan Quintela <quintela@redhat.com>
>>
>> I miss s/yes/y/ in one place
>>
>> Signed-off-by: Juan Quintela <quintela@redhat.com>
>>
>
> Is this an update to the series and if so, what's changed?
It is the same series than yesterday with 6 new patches. Only a rebase
to today tree.
Later, Juan.
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Qemu-devel] [PATCH 02/19] fix sparc not solaris build
2009-07-02 14:46 [Qemu-devel] [PATCH 00/19] More Build System cleanups (v2) quintela
2009-07-02 14:46 ` [Qemu-devel] [PATCH 01/19] fix XEN Build quintela
@ 2009-07-02 14:46 ` quintela
2009-07-02 14:46 ` [Qemu-devel] [PATCH 03/19] Remove duplicated definition quintela
` (16 subsequent siblings)
18 siblings, 0 replies; 26+ messages in thread
From: quintela @ 2009-07-02 14:46 UTC (permalink / raw)
To: qemu-devel; +Cc: Juan Quintela
From: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
Makefile.target | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Makefile.target b/Makefile.target
index 5ca90af..6aeea63 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -89,7 +89,7 @@ translate.o: CFLAGS := $(CFLAGS) $(call cc-option, $(CFLAGS), -fno-unit-at-a-tim
endif
ifeq ($(ARCH),sparc)
- ifneq ($(CONFIG_SOLARIS),yes)
+ ifneq ($(CONFIG_SOLARIS),y)
HELPER_CFLAGS+=-ffixed-i0
endif
endif
--
1.6.2.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [Qemu-devel] [PATCH 03/19] Remove duplicated definition
2009-07-02 14:46 [Qemu-devel] [PATCH 00/19] More Build System cleanups (v2) quintela
2009-07-02 14:46 ` [Qemu-devel] [PATCH 01/19] fix XEN Build quintela
2009-07-02 14:46 ` [Qemu-devel] [PATCH 02/19] fix sparc not solaris build quintela
@ 2009-07-02 14:46 ` quintela
2009-07-02 14:46 ` [Qemu-devel] [PATCH 04/19] use block-nested-y for files inside block/ quintela
` (15 subsequent siblings)
18 siblings, 0 replies; 26+ messages in thread
From: quintela @ 2009-07-02 14:46 UTC (permalink / raw)
To: qemu-devel; +Cc: Juan Quintela
From: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
Makefile.target | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/Makefile.target b/Makefile.target
index 6aeea63..f571ff5 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -686,8 +686,6 @@ ifdef CONFIG_SLIRP
CPPFLAGS+=-I$(SRC_PATH)/slirp
endif
-LIBS+=$(PTHREADLIBS)
-LIBS+=$(CLOCKLIBS)
# specific flags are needed for non soft mmu emulator
ifdef CONFIG_STATIC
LDFLAGS+=-static
--
1.6.2.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [Qemu-devel] [PATCH 04/19] use block-nested-y for files inside block/
2009-07-02 14:46 [Qemu-devel] [PATCH 00/19] More Build System cleanups (v2) quintela
` (2 preceding siblings ...)
2009-07-02 14:46 ` [Qemu-devel] [PATCH 03/19] Remove duplicated definition quintela
@ 2009-07-02 14:46 ` quintela
2009-07-02 14:46 ` [Qemu-devel] [PATCH 05/19] use nwfpe-obj-y for consistence quintela
` (14 subsequent siblings)
18 siblings, 0 replies; 26+ messages in thread
From: quintela @ 2009-07-02 14:46 UTC (permalink / raw)
To: qemu-devel; +Cc: Juan Quintela
From: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
Makefile | 20 +++++++++++---------
1 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/Makefile b/Makefile
index 66c28e5..99279c3 100644
--- a/Makefile
+++ b/Makefile
@@ -67,23 +67,25 @@ recurse-all: $(SUBDIR_RULES)
# block-obj-y is code used by both qemu system emulation and qemu-img
block-obj-y = cutils.o cache-utils.o qemu-malloc.o qemu-option.o module.o
-block-obj-y += block/cow.o block/qcow.o aes.o block/vmdk.o block/cloop.o
-block-obj-y += block/dmg.o block/bochs.o block/vpc.o block/vvfat.o
-block-obj-y += block/qcow2.o block/qcow2-refcount.o block/qcow2-cluster.o
-block-obj-y += block/qcow2-snapshot.o
-block-obj-y += block/parallels.o block/nbd.o
-block-obj-y += nbd.o block.o aio.o
+block-obj-y += nbd.o block.o aio.o aes.o
+
+block-nested-y += cow.o qcow.o vmdk.o cloop.o dmg.o bochs.o vpc.o vvfat.o
+block-nested-y += qcow2.o qcow2-refcount.o qcow2-cluster.o qcow2-snapshot.o
+block-nested-y += parallels.o nbd.o
+
ifdef CONFIG_WIN32
-block-obj-y += block/raw-win32.o
+block-nested-y += raw-win32.o
else
ifdef CONFIG_AIO
block-obj-y += posix-aio-compat.o
endif
-block-obj-y += block/raw-posix.o
+block-nested-y += raw-posix.o
endif
-block-obj-$(CONFIG_CURL) += block/curl.o
+block-nested-$(CONFIG_CURL) += curl.o
+
+block-obj-y += $(addprefix block/, $(block-nested-y))
######################################################################
# libqemu_common.a: Target independent part of system emulation. The
--
1.6.2.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [Qemu-devel] [PATCH 05/19] use nwfpe-obj-y for consistence
2009-07-02 14:46 [Qemu-devel] [PATCH 00/19] More Build System cleanups (v2) quintela
` (3 preceding siblings ...)
2009-07-02 14:46 ` [Qemu-devel] [PATCH 04/19] use block-nested-y for files inside block/ quintela
@ 2009-07-02 14:46 ` quintela
2009-07-02 14:46 ` [Qemu-devel] [PATCH 06/19] Remove unused Makefile variable quintela
` (13 subsequent siblings)
18 siblings, 0 replies; 26+ messages in thread
From: quintela @ 2009-07-02 14:46 UTC (permalink / raw)
To: qemu-devel; +Cc: Juan Quintela
From: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
Makefile.target | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/Makefile.target b/Makefile.target
index f571ff5..60754dc 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -335,9 +335,10 @@ ifeq ($(TARGET_ARCH), i386)
obj-y += vm86.o
endif
ifeq ($(TARGET_ARCH), arm)
-obj-y += nwfpe/fpa11.o nwfpe/fpa11_cpdo.o \
-nwfpe/fpa11_cpdt.o nwfpe/fpa11_cprt.o nwfpe/fpopcode.o nwfpe/single_cpdo.o \
- nwfpe/double_cpdo.o nwfpe/extended_cpdo.o arm-semi.o
+nwfpe-obj-y := fpa11.o fpa11_cpdo.o fpa11_cpdt.o fpa11_cprt.o fpopcode.o
+nwfpe-obj-y += single_cpdo.o double_cpdo.o extended_cpdo.o
+obj-y += $(addprefix nwfpe/, $(nwfpe-obj-y))
+obj-y += arm-semi.o
endif
ifeq ($(TARGET_ARCH), m68k)
obj-y += m68k-sim.o m68k-semi.o
--
1.6.2.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [Qemu-devel] [PATCH 06/19] Remove unused Makefile variable
2009-07-02 14:46 [Qemu-devel] [PATCH 00/19] More Build System cleanups (v2) quintela
` (4 preceding siblings ...)
2009-07-02 14:46 ` [Qemu-devel] [PATCH 05/19] use nwfpe-obj-y for consistence quintela
@ 2009-07-02 14:46 ` quintela
2009-07-02 14:46 ` [Qemu-devel] [PATCH 07/19] already defined several lines before in block-obj-y quintela
` (12 subsequent siblings)
18 siblings, 0 replies; 26+ messages in thread
From: quintela @ 2009-07-02 14:46 UTC (permalink / raw)
To: qemu-devel; +Cc: Juan Quintela
From: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
Makefile.target | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Makefile.target b/Makefile.target
index 60754dc..c33f371 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -221,7 +221,7 @@ tcg/tcg.o: cpu.h
# HELPER_CFLAGS is used for all the code compiled with static register
# variables
-op_helper.o: CFLAGS += $(HELPER_CFLAGS) $(I386_CFLAGS)
+op_helper.o: CFLAGS += $(HELPER_CFLAGS)
cpu-exec.o: CFLAGS += $(HELPER_CFLAGS)
--
1.6.2.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [Qemu-devel] [PATCH 07/19] already defined several lines before in block-obj-y
2009-07-02 14:46 [Qemu-devel] [PATCH 00/19] More Build System cleanups (v2) quintela
` (5 preceding siblings ...)
2009-07-02 14:46 ` [Qemu-devel] [PATCH 06/19] Remove unused Makefile variable quintela
@ 2009-07-02 14:46 ` quintela
2009-07-02 14:46 ` [Qemu-devel] [PATCH 08/19] configure already knows what TARGET_BASE_ARCH we need, no need to put the logic in Makefile.target quintela
` (11 subsequent siblings)
18 siblings, 0 replies; 26+ messages in thread
From: quintela @ 2009-07-02 14:46 UTC (permalink / raw)
To: qemu-devel; +Cc: Juan Quintela
From: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Makefile b/Makefile
index 99279c3..ddd4b16 100644
--- a/Makefile
+++ b/Makefile
@@ -108,7 +108,7 @@ obj-y += sd.o ssi-sd.o
obj-y += bt.o bt-host.o bt-vhci.o bt-l2cap.o bt-sdp.o bt-hci.o bt-hid.o usb-bt.o
obj-y += bt-hci-csr.o
obj-y += buffered_file.o migration.o migration-tcp.o net.o qemu-sockets.o
-obj-y += qemu-char.o aio.o net-checksum.o savevm.o cache-utils.o
+obj-y += qemu-char.o aio.o net-checksum.o savevm.o
obj-y += msmouse.o ps2.o
obj-y += qdev.o ssi.o
--
1.6.2.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [Qemu-devel] [PATCH 08/19] configure already knows what TARGET_BASE_ARCH we need, no need to put the logic in Makefile.target
2009-07-02 14:46 [Qemu-devel] [PATCH 00/19] More Build System cleanups (v2) quintela
` (6 preceding siblings ...)
2009-07-02 14:46 ` [Qemu-devel] [PATCH 07/19] already defined several lines before in block-obj-y quintela
@ 2009-07-02 14:46 ` quintela
2009-07-02 14:46 ` [Qemu-devel] [PATCH 09/19] TARGET_ARCH2 is already known at configure time and it is called target_cpu Remove re-construction " quintela
` (10 subsequent siblings)
18 siblings, 0 replies; 26+ messages in thread
From: quintela @ 2009-07-02 14:46 UTC (permalink / raw)
To: qemu-devel; +Cc: Juan Quintela
From: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
Makefile.target | 22 ++--------------------
configure | 8 ++++++++
2 files changed, 10 insertions(+), 20 deletions(-)
diff --git a/Makefile.target b/Makefile.target
index c33f371..4622561 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -1,28 +1,10 @@
include config.mak
include $(SRC_PATH)/rules.mak
+ifndef TARGET_BASE_ARCH
TARGET_BASE_ARCH:=$(TARGET_ARCH)
-ifeq ($(TARGET_ARCH), x86_64)
-TARGET_BASE_ARCH:=i386
-endif
-ifeq ($(TARGET_ARCH), mipsn32)
-TARGET_BASE_ARCH:=mips
-endif
-ifeq ($(TARGET_ARCH), mips64)
-TARGET_BASE_ARCH:=mips
-endif
-ifeq ($(TARGET_ARCH), ppc64)
-TARGET_BASE_ARCH:=ppc
-endif
-ifeq ($(TARGET_ARCH), ppc64h)
-TARGET_BASE_ARCH:=ppc
-endif
-ifeq ($(TARGET_ARCH), ppcemb)
-TARGET_BASE_ARCH:=ppc
-endif
-ifeq ($(TARGET_ARCH), sparc64)
-TARGET_BASE_ARCH:=sparc
endif
+
TARGET_PATH=$(SRC_PATH)/target-$(TARGET_BASE_ARCH)
VPATH=$(SRC_PATH):$(TARGET_PATH):$(SRC_PATH)/hw
CPPFLAGS=-I. -I.. -I$(TARGET_PATH) -I$(SRC_PATH) -MMD -MT $@ -MP -DNEED_CPU_H
diff --git a/configure b/configure
index eb9d73a..a9ce35f 100755
--- a/configure
+++ b/configure
@@ -2000,6 +2000,7 @@ case "$target_cpu" in
;;
x86_64)
echo "TARGET_ARCH=x86_64" >> $config_mak
+ echo "TARGET_BASE_ARCH=i386" >> $config_mak
echo "#define TARGET_ARCH \"x86_64\"" >> $config_h
echo "#define TARGET_I386 1" >> $config_h
echo "#define TARGET_X86_64 1" >> $config_h
@@ -2067,6 +2068,7 @@ case "$target_cpu" in
;;
mipsn32|mipsn32el)
echo "TARGET_ARCH=mipsn32" >> $config_mak
+ echo "TARGET_BASE_ARCH=mips" >> $config_mak
echo "#define TARGET_ARCH \"mipsn32\"" >> $config_h
echo "#define TARGET_MIPS 1" >> $config_h
echo "#define TARGET_ABI_MIPSN32 1" >> $config_h
@@ -2074,6 +2076,7 @@ case "$target_cpu" in
;;
mips64|mips64el)
echo "TARGET_ARCH=mips64" >> $config_mak
+ echo "TARGET_BASE_ARCH=mips" >> $config_mak
echo "#define TARGET_ARCH \"mips64\"" >> $config_h
echo "#define TARGET_MIPS 1" >> $config_h
echo "#define TARGET_MIPS64 1" >> $config_h
@@ -2089,6 +2092,7 @@ case "$target_cpu" in
;;
ppcemb)
echo "TARGET_ARCH=ppcemb" >> $config_mak
+ echo "TARGET_BASE_ARCH=ppc" >> $config_mak
echo "TARGET_ABI_DIR=ppc" >> $config_mak
echo "#define TARGET_ARCH \"ppcemb\"" >> $config_h
echo "#define TARGET_PPC 1" >> $config_h
@@ -2103,6 +2107,7 @@ case "$target_cpu" in
;;
ppc64)
echo "TARGET_ARCH=ppc64" >> $config_mak
+ echo "TARGET_BASE_ARCH=ppc" >> $config_mak
echo "TARGET_ABI_DIR=ppc" >> $config_mak
echo "#define TARGET_ARCH \"ppc64\"" >> $config_h
echo "#define TARGET_PPC 1" >> $config_h
@@ -2112,6 +2117,7 @@ case "$target_cpu" in
;;
ppc64abi32)
echo "TARGET_ARCH=ppc64" >> $config_mak
+ echo "TARGET_BASE_ARCH=ppc" >> $config_mak
echo "TARGET_ABI_DIR=ppc" >> $config_mak
echo "TARGET_ARCH2=ppc64abi32" >> $config_mak
echo "#define TARGET_ARCH \"ppc64\"" >> $config_h
@@ -2137,6 +2143,7 @@ case "$target_cpu" in
;;
sparc64)
echo "TARGET_ARCH=sparc64" >> $config_mak
+ echo "TARGET_BASE_ARCH=sparc" >> $config_mak
echo "#define TARGET_ARCH \"sparc64\"" >> $config_h
echo "#define TARGET_SPARC 1" >> $config_h
echo "#define TARGET_SPARC64 1" >> $config_h
@@ -2145,6 +2152,7 @@ case "$target_cpu" in
;;
sparc32plus)
echo "TARGET_ARCH=sparc64" >> $config_mak
+ echo "TARGET_BASE_ARCH=sparc" >> $config_mak
echo "TARGET_ABI_DIR=sparc" >> $config_mak
echo "TARGET_ARCH2=sparc32plus" >> $config_mak
echo "#define TARGET_ARCH \"sparc64\"" >> $config_h
--
1.6.2.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [Qemu-devel] [PATCH 09/19] TARGET_ARCH2 is already known at configure time and it is called target_cpu Remove re-construction in Makefile.target
2009-07-02 14:46 [Qemu-devel] [PATCH 00/19] More Build System cleanups (v2) quintela
` (7 preceding siblings ...)
2009-07-02 14:46 ` [Qemu-devel] [PATCH 08/19] configure already knows what TARGET_BASE_ARCH we need, no need to put the logic in Makefile.target quintela
@ 2009-07-02 14:46 ` quintela
2009-07-02 14:46 ` [Qemu-devel] [PATCH 10/19] chang ifdefs by obj- quintela
` (9 subsequent siblings)
18 siblings, 0 replies; 26+ messages in thread
From: quintela @ 2009-07-02 14:46 UTC (permalink / raw)
To: qemu-devel; +Cc: Juan Quintela
From: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
Makefile.target | 33 ++++-----------------------------
configure | 9 +++++++--
2 files changed, 11 insertions(+), 31 deletions(-)
diff --git a/Makefile.target b/Makefile.target
index 4622561..81d0c54 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -11,44 +11,19 @@ CPPFLAGS=-I. -I.. -I$(TARGET_PATH) -I$(SRC_PATH) -MMD -MT $@ -MP -DNEED_CPU_H
#CFLAGS+=-Werror
LIBS=
# user emulator name
-ifndef TARGET_ARCH2
-TARGET_ARCH2=$(TARGET_ARCH)
-endif
-ifeq ($(TARGET_ARCH),arm)
- ifeq ($(TARGET_WORDS_BIGENDIAN),yes)
- TARGET_ARCH2=armeb
- endif
-endif
-ifeq ($(TARGET_ARCH),sh4)
- ifeq ($(TARGET_WORDS_BIGENDIAN),yes)
- TARGET_ARCH2=sh4eb
- endif
-endif
-ifeq ($(TARGET_ARCH),mips)
- ifneq ($(TARGET_WORDS_BIGENDIAN),yes)
- TARGET_ARCH2=mipsel
- endif
-endif
-ifeq ($(TARGET_ARCH),mipsn32)
- ifneq ($(TARGET_WORDS_BIGENDIAN),yes)
- TARGET_ARCH2=mipsn32el
- endif
-endif
-ifeq ($(TARGET_ARCH),mips64)
- ifneq ($(TARGET_WORDS_BIGENDIAN),yes)
- TARGET_ARCH2=mips64el
- endif
+ifndef TARGET_CPU
+TARGET_CPU=$(TARGET_ARCH)
endif
ifdef CONFIG_USER_ONLY
# user emulator name
-QEMU_PROG=qemu-$(TARGET_ARCH2)
+QEMU_PROG=qemu-$(TARGET_CPU)
else
# system emulator name
ifeq ($(TARGET_ARCH), i386)
QEMU_PROG=qemu$(EXESUF)
else
-QEMU_PROG=qemu-system-$(TARGET_ARCH2)$(EXESUF)
+QEMU_PROG=qemu-system-$(TARGET_CPU)$(EXESUF)
endif
endif
diff --git a/configure b/configure
index a9ce35f..5b35b69 100755
--- a/configure
+++ b/configure
@@ -2029,6 +2029,7 @@ case "$target_cpu" in
;;
arm|armeb)
echo "TARGET_ARCH=arm" >> $config_mak
+ echo "TARGET_CPU=$target_cpu" >> $config_mak
echo "#define TARGET_ARCH \"arm\"" >> $config_h
echo "#define TARGET_ARM 1" >> $config_h
bflt="yes"
@@ -2061,6 +2062,7 @@ case "$target_cpu" in
;;
mips|mipsel)
echo "TARGET_ARCH=mips" >> $config_mak
+ echo "TARGET_CPU=$target_cpu" >> $config_mak
echo "#define TARGET_ARCH \"mips\"" >> $config_h
echo "#define TARGET_MIPS 1" >> $config_h
echo "#define TARGET_ABI_MIPSO32 1" >> $config_h
@@ -2068,6 +2070,7 @@ case "$target_cpu" in
;;
mipsn32|mipsn32el)
echo "TARGET_ARCH=mipsn32" >> $config_mak
+ echo "TARGET_CPU=$target_cpu" >> $config_mak
echo "TARGET_BASE_ARCH=mips" >> $config_mak
echo "#define TARGET_ARCH \"mipsn32\"" >> $config_h
echo "#define TARGET_MIPS 1" >> $config_h
@@ -2076,6 +2079,7 @@ case "$target_cpu" in
;;
mips64|mips64el)
echo "TARGET_ARCH=mips64" >> $config_mak
+ echo "TARGET_CPU=$target_cpu" >> $config_mak
echo "TARGET_BASE_ARCH=mips" >> $config_mak
echo "#define TARGET_ARCH \"mips64\"" >> $config_h
echo "#define TARGET_MIPS 1" >> $config_h
@@ -2119,7 +2123,7 @@ case "$target_cpu" in
echo "TARGET_ARCH=ppc64" >> $config_mak
echo "TARGET_BASE_ARCH=ppc" >> $config_mak
echo "TARGET_ABI_DIR=ppc" >> $config_mak
- echo "TARGET_ARCH2=ppc64abi32" >> $config_mak
+ echo "TARGET_CPU=ppc64abi32" >> $config_mak
echo "#define TARGET_ARCH \"ppc64\"" >> $config_h
echo "#define TARGET_PPC 1" >> $config_h
echo "#define TARGET_PPC64 1" >> $config_h
@@ -2129,6 +2133,7 @@ case "$target_cpu" in
;;
sh4|sh4eb)
echo "TARGET_ARCH=sh4" >> $config_mak
+ echo "TARGET_CPU=$target_cpu" >> $config_mak
echo "#define TARGET_ARCH \"sh4\"" >> $config_h
echo "#define TARGET_SH4 1" >> $config_h
bflt="yes"
@@ -2154,7 +2159,7 @@ case "$target_cpu" in
echo "TARGET_ARCH=sparc64" >> $config_mak
echo "TARGET_BASE_ARCH=sparc" >> $config_mak
echo "TARGET_ABI_DIR=sparc" >> $config_mak
- echo "TARGET_ARCH2=sparc32plus" >> $config_mak
+ echo "TARGET_CPU=sparc32plus" >> $config_mak
echo "#define TARGET_ARCH \"sparc64\"" >> $config_h
echo "#define TARGET_SPARC 1" >> $config_h
echo "#define TARGET_SPARC64 1" >> $config_h
--
1.6.2.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [Qemu-devel] [PATCH 10/19] chang ifdefs by obj-
2009-07-02 14:46 [Qemu-devel] [PATCH 00/19] More Build System cleanups (v2) quintela
` (8 preceding siblings ...)
2009-07-02 14:46 ` [Qemu-devel] [PATCH 09/19] TARGET_ARCH2 is already known at configure time and it is called target_cpu Remove re-construction " quintela
@ 2009-07-02 14:46 ` quintela
2009-07-02 14:46 ` [Qemu-devel] [PATCH 11/19] configure xen in a single place quintela
` (8 subsequent siblings)
18 siblings, 0 replies; 26+ messages in thread
From: quintela @ 2009-07-02 14:46 UTC (permalink / raw)
To: qemu-devel; +Cc: Juan Quintela
From: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
Makefile.target | 181 ++++++++++++++++++++++++++++---------------------------
1 files changed, 93 insertions(+), 88 deletions(-)
diff --git a/Makefile.target b/Makefile.target
index 81d0c54..cfb0bab 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -518,122 +518,127 @@ obj-y += e1000.o
# Generic watchdog support and some watchdog devices
obj-y += wdt_ib700.o wdt_i6300esb.o
-ifeq ($(TARGET_BASE_ARCH), i386)
# Hardware support
-obj-y += ide.o pckbd.o vga.o $(sound-obj-y) dma.o
-obj-y += fdc.o mc146818rtc.o serial.o i8259.o i8254.o pcspk.o pc.o
-obj-y += cirrus_vga.o apic.o ioapic.o parallel.o acpi.o piix_pci.o
-obj-y += usb-uhci.o vmmouse.o vmport.o vmware_vga.o hpet.o
-obj-y += device-hotplug.o pci-hotplug.o smbios.o
+obj-i386-y = ide.o pckbd.o vga.o $(sound-obj-y) dma.o
+obj-i386-y += fdc.o mc146818rtc.o serial.o i8259.o i8254.o pcspk.o pc.o
+obj-i386-y += cirrus_vga.o apic.o ioapic.o parallel.o acpi.o piix_pci.o
+obj-i386-y += usb-uhci.o vmmouse.o vmport.o vmware_vga.o hpet.o
+obj-i386-y += device-hotplug.o pci-hotplug.o smbios.o
+
+ifeq ($(TARGET_BASE_ARCH), i386)
CPPFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE
endif
-ifeq ($(TARGET_BASE_ARCH), ppc)
-CPPFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE
+
# shared objects
-obj-y += ppc.o ide.o vga.o $(sound-obj-y) dma.o openpic.o
+obj-ppc-y = ppc.o ide.o vga.o $(sound-obj-y) dma.o openpic.o
# PREP target
-obj-y += pckbd.o serial.o i8259.o i8254.o fdc.o mc146818rtc.o
-obj-y += prep_pci.o ppc_prep.o
+obj-ppc-y += pckbd.o serial.o i8259.o i8254.o fdc.o mc146818rtc.o
+obj-ppc-y += prep_pci.o ppc_prep.o
# Mac shared devices
-obj-y += macio.o cuda.o adb.o mac_nvram.o mac_dbdma.o
+obj-ppc-y += macio.o cuda.o adb.o mac_nvram.o mac_dbdma.o
# OldWorld PowerMac
-obj-y += heathrow_pic.o grackle_pci.o ppc_oldworld.o
+obj-ppc-y += heathrow_pic.o grackle_pci.o ppc_oldworld.o
# NewWorld PowerMac
-obj-y += unin_pci.o ppc_newworld.o
+obj-ppc-y += unin_pci.o ppc_newworld.o
# PowerPC 4xx boards
-obj-y += pflash_cfi02.o ppc4xx_devs.o ppc4xx_pci.o ppc405_uc.o ppc405_boards.o
-obj-y += ppc440.o ppc440_bamboo.o
+obj-ppc-y += pflash_cfi02.o ppc4xx_devs.o ppc4xx_pci.o ppc405_uc.o ppc405_boards.o
+obj-ppc-y += ppc440.o ppc440_bamboo.o
# PowerPC E500 boards
-obj-y += ppce500_pci.o ppce500_mpc8544ds.o
+obj-ppc-y += ppce500_pci.o ppce500_mpc8544ds.o
+obj-ppc-$(CONFIG_KVM) += kvm_ppc.o
+
+ifeq ($(TARGET_BASE_ARCH), ppc)
+CPPFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE
+endif
+
ifdef FDT_LIBS
-obj-y += device_tree.o
+obj-ppc-y += device_tree.o
LIBS+= $(FDT_LIBS)
endif
-obj-$(CONFIG_KVM) += kvm_ppc.o
-endif
+
+obj-mips-y = mips_r4k.o mips_jazz.o mips_malta.o mips_mipssim.o
+obj-mips-y += mips_timer.o mips_int.o dma.o vga.o serial.o i8254.o i8259.o rc4030.o
+obj-mips-y += g364fb.o jazz_led.o dp8393x.o
+obj-mips-y += ide.o gt64xxx.o pckbd.o fdc.o mc146818rtc.o usb-uhci.o acpi.o ds1225y.o
+obj-mips-y += piix_pci.o parallel.o cirrus_vga.o pcspk.o $(sound-obj-y)
+obj-mips-y += mipsnet.o
+obj-mips-y += pflash_cfi01.o
+obj-mips-y += vmware_vga.o
+
ifeq ($(TARGET_BASE_ARCH), mips)
-obj-y += mips_r4k.o mips_jazz.o mips_malta.o mips_mipssim.o
-obj-y += mips_timer.o mips_int.o dma.o vga.o serial.o i8254.o i8259.o rc4030.o
-obj-y += g364fb.o jazz_led.o dp8393x.o
-obj-y += ide.o gt64xxx.o pckbd.o fdc.o mc146818rtc.o usb-uhci.o acpi.o ds1225y.o
-obj-y += piix_pci.o parallel.o cirrus_vga.o pcspk.o $(sound-obj-y)
-obj-y += mipsnet.o
-obj-y += pflash_cfi01.o
-obj-y += vmware_vga.o
CPPFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE
endif
-ifeq ($(TARGET_BASE_ARCH), microblaze)
-obj-y += petalogix_s3adsp1800_mmu.o
-obj-y += microblaze_pic_cpu.o
-obj-y += xilinx_intc.o
-obj-y += xilinx_timer.o
-obj-y += xilinx_uartlite.o
-obj-y += xilinx_ethlite.o
+obj-microblaze-y = petalogix_s3adsp1800_mmu.o
+
+obj-microblaze-y += microblaze_pic_cpu.o
+obj-microblaze-y += xilinx_intc.o
+obj-microblaze-y += xilinx_timer.o
+obj-microblaze-y += xilinx_uartlite.o
+obj-microblaze-y += xilinx_ethlite.o
+
+obj-microblaze-y += pflash_cfi02.o
-obj-y += pflash_cfi02.o
ifdef FDT_LIBS
-obj-y += device_tree.o
+obj-microblaze-y += device_tree.o
LIBS+= $(FDT_LIBS)
endif
-endif
-ifeq ($(TARGET_BASE_ARCH), cris)
+
# Boards
-obj-y += cris_pic_cpu.o etraxfs.o axis_dev88.o
+obj-cris-y = cris_pic_cpu.o etraxfs.o axis_dev88.o
# IO blocks
-obj-y += etraxfs_dma.o
-obj-y += etraxfs_pic.o
-obj-y += etraxfs_eth.o
-obj-y += etraxfs_timer.o
-obj-y += etraxfs_ser.o
+obj-cris-y += etraxfs_dma.o
+obj-cris-y += etraxfs_pic.o
+obj-cris-y += etraxfs_eth.o
+obj-cris-y += etraxfs_timer.o
+obj-cris-y += etraxfs_ser.o
+
+obj-cris-y += pflash_cfi02.o
-obj-y += pflash_cfi02.o
-endif
-ifeq ($(TARGET_BASE_ARCH), sparc)
ifeq ($(TARGET_ARCH), sparc64)
-obj-y += sun4u.o ide.o pckbd.o vga.o apb_pci.o
-obj-y += fdc.o mc146818rtc.o serial.o
-obj-y += cirrus_vga.o parallel.o
+obj-sparc-y = sun4u.o ide.o pckbd.o vga.o apb_pci.o
+obj-sparc-y += fdc.o mc146818rtc.o serial.o
+obj-sparc-y += cirrus_vga.o parallel.o
else
-obj-y += sun4m.o tcx.o iommu.o slavio_intctl.o
-obj-y += slavio_timer.o slavio_misc.o fdc.o sparc32_dma.o
-obj-y += cs4231.o eccmemctl.o sbi.o sun4c_intctl.o
-endif
-endif
+obj-sparc-y = sun4m.o tcx.o iommu.o slavio_intctl.o
+obj-sparc-y += slavio_timer.o slavio_misc.o fdc.o sparc32_dma.o
+obj-sparc-y += cs4231.o eccmemctl.o sbi.o sun4c_intctl.o
+endif
+
+obj-arm-y = integratorcp.o versatilepb.o smc91c111.o arm_pic.o arm_timer.o
+obj-arm-y += arm_boot.o pl011.o pl031.o pl050.o pl080.o pl110.o pl181.o pl190.o
+obj-arm-y += versatile_pci.o
+obj-arm-y += realview_gic.o realview.o arm_sysctl.o mpcore.o
+obj-arm-y += armv7m.o armv7m_nvic.o stellaris.o pl022.o stellaris_enet.o
+obj-arm-y += pl061.o
+obj-arm-y += arm-semi.o
+obj-arm-y += pxa2xx.o pxa2xx_pic.o pxa2xx_gpio.o pxa2xx_timer.o pxa2xx_dma.o
+obj-arm-y += pxa2xx_lcd.o pxa2xx_mmci.o pxa2xx_pcmcia.o pxa2xx_keypad.o
+obj-arm-y += pflash_cfi01.o gumstix.o
+obj-arm-y += zaurus.o ide.o serial.o spitz.o tosa.o tc6393xb.o
+obj-arm-y += omap1.o omap_lcdc.o omap_dma.o omap_clk.o omap_mmc.o omap_i2c.o
+obj-arm-y += omap2.o omap_dss.o soc_dma.o
+obj-arm-y += omap_sx1.o palm.o tsc210x.o
+obj-arm-y += nseries.o blizzard.o onenand.o vga.o cbus.o tusb6010.o usb-musb.o
+obj-arm-y += mst_fpga.o mainstone.o
+obj-arm-y += musicpal.o pflash_cfi02.o
+obj-arm-y += framebuffer.o
+obj-arm-y += syborg.o syborg_fb.o syborg_interrupt.o syborg_keyboard.o
+obj-arm-y += syborg_serial.o syborg_timer.o syborg_pointer.o syborg_rtc.o
+obj-arm-y += syborg_virtio.o
+
ifeq ($(TARGET_BASE_ARCH), arm)
-obj-y += integratorcp.o versatilepb.o smc91c111.o arm_pic.o arm_timer.o
-obj-y += arm_boot.o pl011.o pl031.o pl050.o pl080.o pl110.o pl181.o pl190.o
-obj-y += versatile_pci.o
-obj-y += realview_gic.o realview.o arm_sysctl.o mpcore.o
-obj-y += armv7m.o armv7m_nvic.o stellaris.o pl022.o stellaris_enet.o
-obj-y += pl061.o
-obj-y += arm-semi.o
-obj-y += pxa2xx.o pxa2xx_pic.o pxa2xx_gpio.o pxa2xx_timer.o pxa2xx_dma.o
-obj-y += pxa2xx_lcd.o pxa2xx_mmci.o pxa2xx_pcmcia.o pxa2xx_keypad.o
-obj-y += pflash_cfi01.o gumstix.o
-obj-y += zaurus.o ide.o serial.o spitz.o tosa.o tc6393xb.o
-obj-y += omap1.o omap_lcdc.o omap_dma.o omap_clk.o omap_mmc.o omap_i2c.o
-obj-y += omap2.o omap_dss.o soc_dma.o
-obj-y += omap_sx1.o palm.o tsc210x.o
-obj-y += nseries.o blizzard.o onenand.o vga.o cbus.o tusb6010.o usb-musb.o
-obj-y += mst_fpga.o mainstone.o
-obj-y += musicpal.o pflash_cfi02.o
-obj-y += framebuffer.o
-obj-y += syborg.o syborg_fb.o syborg_interrupt.o syborg_keyboard.o
-obj-y += syborg_serial.o syborg_timer.o syborg_pointer.o syborg_rtc.o
-obj-y += syborg_virtio.o
CPPFLAGS += -DHAS_AUDIO
endif
-ifeq ($(TARGET_BASE_ARCH), sh4)
-obj-y += shix.o r2d.o sh7750.o sh7750_regnames.o tc58128.o
-obj-y += sh_timer.o sh_serial.o sh_intc.o sh_pci.o sm501.o serial.o
-obj-y += ide.o
-endif
-ifeq ($(TARGET_BASE_ARCH), m68k)
-obj-y += an5206.o mcf5206.o mcf_uart.o mcf_intc.o mcf5208.o mcf_fec.o
-obj-y += m68k-semi.o dummy_m68k.o
-endif
+
+obj-sh4-y = shix.o r2d.o sh7750.o sh7750_regnames.o tc58128.o
+obj-sh4-y += sh_timer.o sh_serial.o sh_intc.o sh_pci.o sm501.o serial.o
+obj-sh4-y += ide.o
+
+obj-m68k-y = an5206.o mcf5206.o mcf_uart.o mcf_intc.o mcf5208.o mcf_fec.o
+obj-m68k-y += m68k-semi.o dummy_m68k.o
+
ifdef CONFIG_COCOA
COCOA_LIBS=-F/System/Library/Frameworks -framework Cocoa -framework IOKit
ifdef CONFIG_COREAUDIO
@@ -684,8 +689,8 @@ monitor.o: qemu-monitor.h
$(QEMU_PROG): LIBS += $(SDL_LIBS) $(COCOA_LIBS) $(CURSES_LIBS) $(BRLAPI_LIBS) $(VDE_LIBS) $(CURL_LIBS)
$(QEMU_PROG): ARLIBS=../libqemu_common.a libqemu.a $(HWLIB)
-$(QEMU_PROG): $(obj-y) ../libqemu_common.a libqemu.a $(HWLIB)
- $(call LINK,$(obj-y))
+$(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y) ../libqemu_common.a libqemu.a $(HWLIB)
+ $(call LINK,$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y))
endif # !CONFIG_USER_ONLY
--
1.6.2.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [Qemu-devel] [PATCH 11/19] configure xen in a single place
2009-07-02 14:46 [Qemu-devel] [PATCH 00/19] More Build System cleanups (v2) quintela
` (9 preceding siblings ...)
2009-07-02 14:46 ` [Qemu-devel] [PATCH 10/19] chang ifdefs by obj- quintela
@ 2009-07-02 14:46 ` quintela
2009-07-02 15:24 ` Christoph Egger
2009-07-02 14:46 ` [Qemu-devel] [PATCH 12/19] configure kvm " quintela
` (7 subsequent siblings)
18 siblings, 1 reply; 26+ messages in thread
From: quintela @ 2009-07-02 14:46 UTC (permalink / raw)
To: qemu-devel; +Cc: Juan Quintela
From: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
configure | 17 +++++++----------
1 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/configure b/configure
index 5b35b69..56e4d38 100755
--- a/configure
+++ b/configure
@@ -1991,11 +1991,6 @@ case "$target_cpu" in
echo "KVM_CFLAGS=$kvm_cflags" >> $config_mak
echo "#define CONFIG_KVM 1" >> $config_h
fi
- if test "$xen" = "yes" -a "$target_softmmu" = "yes";
- then
- echo "CONFIG_XEN=y" >> $config_mak
- echo "#define CONFIG_XEN 1" >> $config_h
- fi
target_phys_bits=32
;;
x86_64)
@@ -2014,11 +2009,6 @@ case "$target_cpu" in
echo "KVM_CFLAGS=$kvm_cflags" >> $config_mak
echo "#define CONFIG_KVM 1" >> $config_h
fi
- if test "$xen" = "yes" -a "$target_softmmu" = "yes"
- then
- echo "CONFIG_XEN=y" >> $config_mak
- echo "#define CONFIG_XEN 1" >> $config_h
- fi
target_phys_bits=64
;;
alpha)
@@ -2174,6 +2164,13 @@ esac
if [ $target_phys_bits -lt $hostlongbits ] ; then
target_phys_bits=$hostlongbits
fi
+case "$target_cpu" in
+ i386|x86_64)
+ if test "$xen" = "yes" -a "$target_softmmu" = "yes" ; then
+ echo "CONFIG_XEN=y" >> $config_mak
+ echo "#define CONFIG_XEN 1" >> $config_h
+ fi
+esac
echo "HWLIB=../libhw$target_phys_bits/libqemuhw$target_phys_bits.a" >> $config_mak
echo "#define TARGET_PHYS_ADDR_BITS $target_phys_bits" >> $config_h
echo "subdir-$target: subdir-libhw$target_phys_bits" >> $config_host_mak
--
1.6.2.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* Re: [Qemu-devel] [PATCH 11/19] configure xen in a single place
2009-07-02 14:46 ` [Qemu-devel] [PATCH 11/19] configure xen in a single place quintela
@ 2009-07-02 15:24 ` Christoph Egger
2009-07-02 15:48 ` Paul Brook
2009-07-02 17:06 ` [Qemu-devel] " Juan Quintela
0 siblings, 2 replies; 26+ messages in thread
From: Christoph Egger @ 2009-07-02 15:24 UTC (permalink / raw)
To: qemu-devel; +Cc: quintela
On Thursday 02 July 2009 16:46:35 quintela@redhat.com wrote:
> From: Juan Quintela <quintela@redhat.com>
>
>
> Signed-off-by: Juan Quintela <quintela@redhat.com>
> ---
> configure | 17 +++++++----------
> 1 files changed, 7 insertions(+), 10 deletions(-)
>
> diff --git a/configure b/configure
> index 5b35b69..56e4d38 100755
> --- a/configure
> +++ b/configure
> @@ -1991,11 +1991,6 @@ case "$target_cpu" in
> echo "KVM_CFLAGS=$kvm_cflags" >> $config_mak
> echo "#define CONFIG_KVM 1" >> $config_h
> fi
> - if test "$xen" = "yes" -a "$target_softmmu" = "yes";
> - then
> - echo "CONFIG_XEN=y" >> $config_mak
> - echo "#define CONFIG_XEN 1" >> $config_h
> - fi
> target_phys_bits=32
> ;;
> x86_64)
> @@ -2014,11 +2009,6 @@ case "$target_cpu" in
> echo "KVM_CFLAGS=$kvm_cflags" >> $config_mak
> echo "#define CONFIG_KVM 1" >> $config_h
> fi
> - if test "$xen" = "yes" -a "$target_softmmu" = "yes"
> - then
> - echo "CONFIG_XEN=y" >> $config_mak
> - echo "#define CONFIG_XEN 1" >> $config_h
> - fi
> target_phys_bits=64
> ;;
> alpha)
> @@ -2174,6 +2164,13 @@ esac
> if [ $target_phys_bits -lt $hostlongbits ] ; then
> target_phys_bits=$hostlongbits
> fi
> +case "$target_cpu" in
> + i386|x86_64)
If 'target_cpu' is set by 'uname -m' then this has to be
+ i386|x86_64|amd64)
or you will break *BSD, otherwise.
> + if test "$xen" = "yes" -a "$target_softmmu" = "yes" ; then
> + echo "CONFIG_XEN=y" >> $config_mak
> + echo "#define CONFIG_XEN 1" >> $config_h
> + fi
> +esac
> echo "HWLIB=../libhw$target_phys_bits/libqemuhw$target_phys_bits.a" >>
> $config_mak echo "#define TARGET_PHYS_ADDR_BITS $target_phys_bits" >>
> $config_h echo "subdir-$target: subdir-libhw$target_phys_bits" >>
> $config_host_mak
--
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Thomas M. McCoy, Giuliano Meroni
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Qemu-devel] [PATCH 12/19] configure kvm in a single place
2009-07-02 14:46 [Qemu-devel] [PATCH 00/19] More Build System cleanups (v2) quintela
` (10 preceding siblings ...)
2009-07-02 14:46 ` [Qemu-devel] [PATCH 11/19] configure xen in a single place quintela
@ 2009-07-02 14:46 ` quintela
2009-07-02 14:46 ` [Qemu-devel] [PATCH 13/19] configure kqemu " quintela
` (6 subsequent siblings)
18 siblings, 0 replies; 26+ messages in thread
From: quintela @ 2009-07-02 14:46 UTC (permalink / raw)
To: qemu-devel; +Cc: Juan Quintela
From: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
configure | 41 +++++++++++++----------------------------
1 files changed, 13 insertions(+), 28 deletions(-)
diff --git a/configure b/configure
index 56e4d38..1fe01af 100755
--- a/configure
+++ b/configure
@@ -1962,19 +1962,6 @@ target_nptl="no"
interp_prefix1=`echo "$interp_prefix" | sed "s/%M/$target_cpu/g"`
echo "#define CONFIG_QEMU_PREFIX \"$interp_prefix1\"" >> $config_h
gdb_xml_files=""
-target_kvm="$kvm"
-
-# Make sure the target and host cpus are compatible
-if test ! \( "$target_cpu" = "$cpu" -o \
- \( "$target_cpu" = "ppcemb" -a "$cpu" = "ppc" \) -o \
- \( "$target_cpu" = "x86_64" -a "$cpu" = "i386" \) -o \
- \( "$target_cpu" = "i386" -a "$cpu" = "x86_64" \) \) ; then
- target_kvm="no"
-fi
-# Disable KVM for linux-user
-if test "$target_softmmu" = "no" ; then
- target_kvm="no"
-fi
case "$target_cpu" in
i386)
@@ -1986,11 +1973,6 @@ case "$target_cpu" in
echo "CONFIG_KQEMU=y" >> $config_mak
echo "#define CONFIG_KQEMU 1" >> $config_h
fi
- if test "$target_kvm" = "yes" ; then
- echo "CONFIG_KVM=y" >> $config_mak
- echo "KVM_CFLAGS=$kvm_cflags" >> $config_mak
- echo "#define CONFIG_KVM 1" >> $config_h
- fi
target_phys_bits=32
;;
x86_64)
@@ -2004,11 +1986,6 @@ case "$target_cpu" in
echo "CONFIG_KQEMU=y" >> $config_mak
echo "#define CONFIG_KQEMU 1" >> $config_h
fi
- if test "$target_kvm" = "yes" ; then
- echo "CONFIG_KVM=y" >> $config_mak
- echo "KVM_CFLAGS=$kvm_cflags" >> $config_mak
- echo "#define CONFIG_KVM 1" >> $config_h
- fi
target_phys_bits=64
;;
alpha)
@@ -2091,11 +2068,6 @@ case "$target_cpu" in
echo "#define TARGET_ARCH \"ppcemb\"" >> $config_h
echo "#define TARGET_PPC 1" >> $config_h
echo "#define TARGET_PPCEMB 1" >> $config_h
- if test "$target_kvm" = "yes" ; then
- echo "CONFIG_KVM=y" >> $config_mak
- echo "KVM_CFLAGS=$kvm_cflags" >> $config_mak
- echo "#define CONFIG_KVM 1" >> $config_h
- fi
gdb_xml_files="power-core.xml power-fpu.xml power-altivec.xml power-spe.xml"
target_phys_bits=64
;;
@@ -2171,6 +2143,19 @@ case "$target_cpu" in
echo "#define CONFIG_XEN 1" >> $config_h
fi
esac
+case "$target_cpu" in
+ i386|x86_64|ppcemb)
+ # Make sure the target and host cpus are compatible
+ if test "$kvm" = "yes" -a "$target_softmmu" = "yes" -a \
+ \( "$target_cpu" = "$cpu" -o \
+ \( "$target_cpu" = "ppcemb" -a "$cpu" = "ppc" \) -o \
+ \( "$target_cpu" = "x86_64" -a "$cpu" = "i386" \) -o \
+ \( "$target_cpu" = "i386" -a "$cpu" = "x86_64" \) \) ; then
+ echo "CONFIG_KVM=y" >> $config_mak
+ echo "KVM_CFLAGS=$kvm_cflags" >> $config_mak
+ echo "#define CONFIG_KVM 1" >> $config_h
+ fi
+esac
echo "HWLIB=../libhw$target_phys_bits/libqemuhw$target_phys_bits.a" >> $config_mak
echo "#define TARGET_PHYS_ADDR_BITS $target_phys_bits" >> $config_h
echo "subdir-$target: subdir-libhw$target_phys_bits" >> $config_host_mak
--
1.6.2.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [Qemu-devel] [PATCH 13/19] configure kqemu in a single place
2009-07-02 14:46 [Qemu-devel] [PATCH 00/19] More Build System cleanups (v2) quintela
` (11 preceding siblings ...)
2009-07-02 14:46 ` [Qemu-devel] [PATCH 12/19] configure kvm " quintela
@ 2009-07-02 14:46 ` quintela
2009-07-02 14:46 ` [Qemu-devel] [PATCH 14/19] BASE_LDFLAGS is not used anywhere else quintela
` (5 subsequent siblings)
18 siblings, 0 replies; 26+ messages in thread
From: quintela @ 2009-07-02 14:46 UTC (permalink / raw)
To: qemu-devel; +Cc: Juan Quintela
From: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
configure | 15 +++++----------
1 files changed, 5 insertions(+), 10 deletions(-)
diff --git a/configure b/configure
index 1fe01af..29dcee6 100755
--- a/configure
+++ b/configure
@@ -1968,11 +1968,6 @@ case "$target_cpu" in
echo "TARGET_ARCH=i386" >> $config_mak
echo "#define TARGET_ARCH \"i386\"" >> $config_h
echo "#define TARGET_I386 1" >> $config_h
- if test $kqemu = "yes" -a "$target_softmmu" = "yes"
- then
- echo "CONFIG_KQEMU=y" >> $config_mak
- echo "#define CONFIG_KQEMU 1" >> $config_h
- fi
target_phys_bits=32
;;
x86_64)
@@ -1981,11 +1976,6 @@ case "$target_cpu" in
echo "#define TARGET_ARCH \"x86_64\"" >> $config_h
echo "#define TARGET_I386 1" >> $config_h
echo "#define TARGET_X86_64 1" >> $config_h
- if test $kqemu = "yes" -a "$target_softmmu" = "yes" -a $cpu = "x86_64"
- then
- echo "CONFIG_KQEMU=y" >> $config_mak
- echo "#define CONFIG_KQEMU 1" >> $config_h
- fi
target_phys_bits=64
;;
alpha)
@@ -2142,6 +2132,11 @@ case "$target_cpu" in
echo "CONFIG_XEN=y" >> $config_mak
echo "#define CONFIG_XEN 1" >> $config_h
fi
+ if test $kqemu = "yes" -a "$target_softmmu" = "yes"
+ then
+ echo "CONFIG_KQEMU=y" >> $config_mak
+ echo "#define CONFIG_KQEMU 1" >> $config_h
+ fi
esac
case "$target_cpu" in
i386|x86_64|ppcemb)
--
1.6.2.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [Qemu-devel] [PATCH 14/19] BASE_LDFLAGS is not used anywhere else
2009-07-02 14:46 [Qemu-devel] [PATCH 00/19] More Build System cleanups (v2) quintela
` (12 preceding siblings ...)
2009-07-02 14:46 ` [Qemu-devel] [PATCH 13/19] configure kqemu " quintela
@ 2009-07-02 14:46 ` quintela
2009-07-02 14:46 ` [Qemu-devel] [PATCH 15/19] TARGET_ARCH == TARGET_BASE_ARCH in m68k and arm quintela
` (4 subsequent siblings)
18 siblings, 0 replies; 26+ messages in thread
From: quintela @ 2009-07-02 14:46 UTC (permalink / raw)
To: qemu-devel; +Cc: Juan Quintela
From: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
Makefile.target | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/Makefile.target b/Makefile.target
index cfb0bab..7dc7a0b 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -56,10 +56,6 @@ ifeq ($(ARCH),alpha)
CFLAGS+=-msmall-data
endif
-ifeq ($(ARCH),hppa)
-BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
-endif
-
ifeq ($(ARCH),ia64)
CFLAGS+=-mno-sdata
endif
--
1.6.2.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [Qemu-devel] [PATCH 15/19] TARGET_ARCH == TARGET_BASE_ARCH in m68k and arm
2009-07-02 14:46 [Qemu-devel] [PATCH 00/19] More Build System cleanups (v2) quintela
` (13 preceding siblings ...)
2009-07-02 14:46 ` [Qemu-devel] [PATCH 14/19] BASE_LDFLAGS is not used anywhere else quintela
@ 2009-07-02 14:46 ` quintela
2009-07-02 14:46 ` [Qemu-devel] [PATCH 16/19] Refactor a single rule to generate all qemu-* executables quintela
` (3 subsequent siblings)
18 siblings, 0 replies; 26+ messages in thread
From: quintela @ 2009-07-02 14:46 UTC (permalink / raw)
To: qemu-devel; +Cc: Juan Quintela
From: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
Makefile.target | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/Makefile.target b/Makefile.target
index 7dc7a0b..33f817d 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -287,23 +287,22 @@ obj-$(TARGET_HAS_ELFLOAD32) += elfload32.o
ifeq ($(TARGET_ARCH), i386)
obj-y += vm86.o
endif
-ifeq ($(TARGET_ARCH), arm)
+
nwfpe-obj-y := fpa11.o fpa11_cpdo.o fpa11_cpdt.o fpa11_cprt.o fpopcode.o
nwfpe-obj-y += single_cpdo.o double_cpdo.o extended_cpdo.o
-obj-y += $(addprefix nwfpe/, $(nwfpe-obj-y))
-obj-y += arm-semi.o
-endif
-ifeq ($(TARGET_ARCH), m68k)
-obj-y += m68k-sim.o m68k-semi.o
-endif
+obj-arm-y += $(addprefix nwfpe/, $(nwfpe-obj-y))
+obj-arm-y += arm-semi.o
+
+obj-m68k-y += m68k-sim.o m68k-semi.o
# Note: this is a workaround. The real fix is to avoid compiling
# cpu_signal_handler() in cpu-exec.c.
signal.o: CFLAGS += $(HELPER_CFLAGS)
$(QEMU_PROG): ARLIBS=../libqemu_user.a libqemu.a
-$(QEMU_PROG): $(obj-y) ../libqemu_user.a libqemu.a
- $(call LINK,$(obj-y))
+$(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y) ../libqemu_user.a libqemu.a
+ $(call LINK,$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y))
+
ifeq ($(ARCH),alpha)
# Mark as 32 bit binary, i. e. it will be mapped into the low 31 bit of
# the address space (31 bit so sign extending doesn't matter)
--
1.6.2.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [Qemu-devel] [PATCH 16/19] Refactor a single rule to generate all qemu-* executables
2009-07-02 14:46 [Qemu-devel] [PATCH 00/19] More Build System cleanups (v2) quintela
` (14 preceding siblings ...)
2009-07-02 14:46 ` [Qemu-devel] [PATCH 15/19] TARGET_ARCH == TARGET_BASE_ARCH in m68k and arm quintela
@ 2009-07-02 14:46 ` quintela
2009-07-02 14:46 ` [Qemu-devel] [PATCH 17/19] qemu binary don't exist anymore. I guess not much people is compiling on alpha quintela
` (2 subsequent siblings)
18 siblings, 0 replies; 26+ messages in thread
From: quintela @ 2009-07-02 14:46 UTC (permalink / raw)
To: qemu-devel; +Cc: Juan Quintela
From: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
Makefile.target | 22 +++++++++-------------
1 files changed, 9 insertions(+), 13 deletions(-)
diff --git a/Makefile.target b/Makefile.target
index 33f817d..6a701ae 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -299,9 +299,7 @@ obj-m68k-y += m68k-sim.o m68k-semi.o
# cpu_signal_handler() in cpu-exec.c.
signal.o: CFLAGS += $(HELPER_CFLAGS)
-$(QEMU_PROG): ARLIBS=../libqemu_user.a libqemu.a
-$(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y) ../libqemu_user.a libqemu.a
- $(call LINK,$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y))
+ARLIBS=../libqemu_user.a libqemu.a
ifeq ($(ARCH),alpha)
# Mark as 32 bit binary, i. e. it will be mapped into the low 31 bit of
@@ -331,9 +329,7 @@ obj-y = main.o commpage.o machload.o mmap.o signal.o syscall.o thunk.o \
# cpu_signal_handler() in cpu-exec.c.
signal.o: CFLAGS += $(HELPER_CFLAGS)
-$(QEMU_PROG): ARLIBS=libqemu.a
-$(QEMU_PROG): $(obj-y) libqemu.a
- $(call LINK,$(obj-y))
+ARLIBS=libqemu.a
endif #CONFIG_DARWIN_USER
@@ -431,9 +427,7 @@ obj-y += uaccess.o
# cpu_signal_handler() in cpu-exec.c.
signal.o: CFLAGS += $(HELPER_CFLAGS)
-$(QEMU_PROG): ARLIBS=libqemu.a ../libqemu_user.a
-$(QEMU_PROG): $(obj-y) libqemu.a ../libqemu_user.a
- $(call LINK,$(obj-y))
+ARLIBS=libqemu.a ../libqemu_user.a
endif #CONFIG_BSD_USER
@@ -682,13 +676,15 @@ vl.o: qemu-options.h
monitor.o: qemu-monitor.h
-$(QEMU_PROG): LIBS += $(SDL_LIBS) $(COCOA_LIBS) $(CURSES_LIBS) $(BRLAPI_LIBS) $(VDE_LIBS) $(CURL_LIBS)
-$(QEMU_PROG): ARLIBS=../libqemu_common.a libqemu.a $(HWLIB)
-$(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y) ../libqemu_common.a libqemu.a $(HWLIB)
- $(call LINK,$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y))
+LIBS += $(SDL_LIBS) $(COCOA_LIBS) $(CURSES_LIBS) $(BRLAPI_LIBS) $(VDE_LIBS) $(CURL_LIBS)
+ARLIBS=../libqemu_common.a libqemu.a $(HWLIB)
endif # !CONFIG_USER_ONLY
+$(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y) $(ARLIBS)
+ $(call LINK,$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y))
+
+
gdbstub-xml.c: $(TARGET_XML_FILES) feature_to_c.sh
ifeq ($(TARGET_XML_FILES),)
$(call quiet-command,rm -f $@ && echo > $@," GEN $(TARGET_DIR)$@")
--
1.6.2.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [Qemu-devel] [PATCH 17/19] qemu binary don't exist anymore. I guess not much people is compiling on alpha
2009-07-02 14:46 [Qemu-devel] [PATCH 00/19] More Build System cleanups (v2) quintela
` (15 preceding siblings ...)
2009-07-02 14:46 ` [Qemu-devel] [PATCH 16/19] Refactor a single rule to generate all qemu-* executables quintela
@ 2009-07-02 14:46 ` quintela
2009-07-02 14:46 ` [Qemu-devel] [PATCH 18/19] We can wrap OS_CFLAGS/OS_LDFLAGS in CFLAGS/LDFLAGS at configure time quintela
2009-07-02 14:46 ` [Qemu-devel] [PATCH 19/19] We can wrap ARCH_CFLAGS/ARCH_LDFLAGS " quintela
18 siblings, 0 replies; 26+ messages in thread
From: quintela @ 2009-07-02 14:46 UTC (permalink / raw)
To: qemu-devel; +Cc: Juan Quintela
From: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
Makefile.target | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
diff --git a/Makefile.target b/Makefile.target
index 6a701ae..5d35ea3 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -300,13 +300,6 @@ obj-m68k-y += m68k-sim.o m68k-semi.o
signal.o: CFLAGS += $(HELPER_CFLAGS)
ARLIBS=../libqemu_user.a libqemu.a
-
-ifeq ($(ARCH),alpha)
-# Mark as 32 bit binary, i. e. it will be mapped into the low 31 bit of
-# the address space (31 bit so sign extending doesn't matter)
- echo -ne '\001\000\000\000' | dd of=qemu bs=1 seek=48 count=4 conv=notrunc
-endif
-
endif #CONFIG_LINUX_USER
#########################################################
--
1.6.2.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [Qemu-devel] [PATCH 18/19] We can wrap OS_CFLAGS/OS_LDFLAGS in CFLAGS/LDFLAGS at configure time
2009-07-02 14:46 [Qemu-devel] [PATCH 00/19] More Build System cleanups (v2) quintela
` (16 preceding siblings ...)
2009-07-02 14:46 ` [Qemu-devel] [PATCH 17/19] qemu binary don't exist anymore. I guess not much people is compiling on alpha quintela
@ 2009-07-02 14:46 ` quintela
2009-07-02 14:46 ` [Qemu-devel] [PATCH 19/19] We can wrap ARCH_CFLAGS/ARCH_LDFLAGS " quintela
18 siblings, 0 replies; 26+ messages in thread
From: quintela @ 2009-07-02 14:46 UTC (permalink / raw)
To: qemu-devel; +Cc: Juan Quintela
From: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
Makefile | 4 ++--
Makefile.hw | 4 ++--
Makefile.target | 4 ++--
configure | 6 ++----
4 files changed, 8 insertions(+), 10 deletions(-)
diff --git a/Makefile b/Makefile
index ddd4b16..3ba694d 100644
--- a/Makefile
+++ b/Makefile
@@ -17,8 +17,8 @@ endif
VPATH=$(SRC_PATH):$(SRC_PATH)/hw
-CFLAGS += $(OS_CFLAGS) $(ARCH_CFLAGS)
-LDFLAGS += $(OS_LDFLAGS) $(ARCH_LDFLAGS)
+CFLAGS += $(ARCH_CFLAGS)
+LDFLAGS += $(ARCH_LDFLAGS)
CPPFLAGS += -I. -I$(SRC_PATH) -MMD -MP -MT $@
CPPFLAGS += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
diff --git a/Makefile.hw b/Makefile.hw
index f7a9507..0cf591f 100644
--- a/Makefile.hw
+++ b/Makefile.hw
@@ -8,8 +8,8 @@ include $(SRC_PATH)/rules.mak
VPATH=$(SRC_PATH):$(SRC_PATH)/hw
-CFLAGS += $(OS_CFLAGS) $(ARCH_CFLAGS)
-LDFLAGS += $(OS_LDFLAGS) $(ARCH_LDFLAGS)
+CFLAGS += $(ARCH_CFLAGS)
+LDFLAGS += $(ARCH_LDFLAGS)
CPPFLAGS += -I. -I.. -I$(SRC_PATH) -MMD -MP -MT $@
CPPFLAGS += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
diff --git a/Makefile.target b/Makefile.target
index 5d35ea3..ee12812 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -60,8 +60,8 @@ ifeq ($(ARCH),ia64)
CFLAGS+=-mno-sdata
endif
-CFLAGS+=$(OS_CFLAGS) $(ARCH_CFLAGS)
-LDFLAGS+=$(OS_LDFLAGS) $(ARCH_LDFLAGS)
+CFLAGS+= $(ARCH_CFLAGS)
+LDFLAGS+= $(ARCH_LDFLAGS)
CPPFLAGS+=-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
CPPFLAGS+=-U_FORTIFY_SOURCE
diff --git a/configure b/configure
index 29dcee6..bb41b54 100755
--- a/configure
+++ b/configure
@@ -1490,12 +1490,10 @@ echo "AR=$ar" >> $config_mak
# XXX: only use CFLAGS and LDFLAGS ?
# XXX: should export HOST_CFLAGS and HOST_LDFLAGS for cross
# compilation of dyngen tool (useful for win32 build on Linux host)
-echo "OS_CFLAGS=$OS_CFLAGS" >> $config_mak
-echo "OS_LDFLAGS=$OS_LDFLAGS" >> $config_mak
echo "ARCH_CFLAGS=$ARCH_CFLAGS" >> $config_mak
echo "ARCH_LDFLAGS=$ARCH_LDFLAGS" >> $config_mak
-echo "CFLAGS=$CFLAGS" >> $config_mak
-echo "LDFLAGS=$LDFLAGS" >> $config_mak
+echo "CFLAGS=$CFLAGS $OS_CFLAGS" >> $config_mak
+echo "LDFLAGS=$LDFLAGS $OS_LDFLAGS" >> $config_mak
echo "EXESUF=$EXESUF" >> $config_mak
echo "PTHREADLIBS=$PTHREADLIBS" >> $config_mak
echo "CLOCKLIBS=$CLOCKLIBS" >> $config_mak
--
1.6.2.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [Qemu-devel] [PATCH 19/19] We can wrap ARCH_CFLAGS/ARCH_LDFLAGS in CFLAGS/LDFLAGS at configure time
2009-07-02 14:46 [Qemu-devel] [PATCH 00/19] More Build System cleanups (v2) quintela
` (17 preceding siblings ...)
2009-07-02 14:46 ` [Qemu-devel] [PATCH 18/19] We can wrap OS_CFLAGS/OS_LDFLAGS in CFLAGS/LDFLAGS at configure time quintela
@ 2009-07-02 14:46 ` quintela
18 siblings, 0 replies; 26+ messages in thread
From: quintela @ 2009-07-02 14:46 UTC (permalink / raw)
To: qemu-devel; +Cc: Juan Quintela
From: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
Makefile | 4 ----
Makefile.hw | 3 ---
Makefile.target | 3 ---
configure | 9 ++-------
4 files changed, 2 insertions(+), 17 deletions(-)
diff --git a/Makefile b/Makefile
index 3ba694d..47c55da 100644
--- a/Makefile
+++ b/Makefile
@@ -16,10 +16,6 @@ endif
VPATH=$(SRC_PATH):$(SRC_PATH)/hw
-
-CFLAGS += $(ARCH_CFLAGS)
-LDFLAGS += $(ARCH_LDFLAGS)
-
CPPFLAGS += -I. -I$(SRC_PATH) -MMD -MP -MT $@
CPPFLAGS += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
CPPFLAGS += -U_FORTIFY_SOURCE
diff --git a/Makefile.hw b/Makefile.hw
index 0cf591f..b309160 100644
--- a/Makefile.hw
+++ b/Makefile.hw
@@ -8,9 +8,6 @@ include $(SRC_PATH)/rules.mak
VPATH=$(SRC_PATH):$(SRC_PATH)/hw
-CFLAGS += $(ARCH_CFLAGS)
-LDFLAGS += $(ARCH_LDFLAGS)
-
CPPFLAGS += -I. -I.. -I$(SRC_PATH) -MMD -MP -MT $@
CPPFLAGS += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
CPPFLAGS+=-I$(SRC_PATH)/fpu
diff --git a/Makefile.target b/Makefile.target
index ee12812..b747ef9 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -60,9 +60,6 @@ ifeq ($(ARCH),ia64)
CFLAGS+=-mno-sdata
endif
-CFLAGS+= $(ARCH_CFLAGS)
-LDFLAGS+= $(ARCH_LDFLAGS)
-
CPPFLAGS+=-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
CPPFLAGS+=-U_FORTIFY_SOURCE
LIBS+=-lm
diff --git a/configure b/configure
index bb41b54..a3de603 100755
--- a/configure
+++ b/configure
@@ -1487,13 +1487,8 @@ echo "INSTALL_PROG=$install -m0755 -p" >> $config_mak
echo "CC=$cc" >> $config_mak
echo "HOST_CC=$host_cc" >> $config_mak
echo "AR=$ar" >> $config_mak
-# XXX: only use CFLAGS and LDFLAGS ?
-# XXX: should export HOST_CFLAGS and HOST_LDFLAGS for cross
-# compilation of dyngen tool (useful for win32 build on Linux host)
-echo "ARCH_CFLAGS=$ARCH_CFLAGS" >> $config_mak
-echo "ARCH_LDFLAGS=$ARCH_LDFLAGS" >> $config_mak
-echo "CFLAGS=$CFLAGS $OS_CFLAGS" >> $config_mak
-echo "LDFLAGS=$LDFLAGS $OS_LDFLAGS" >> $config_mak
+echo "CFLAGS=$CFLAGS $OS_CFLAGS $ARCH_CFLAGS" >> $config_mak
+echo "LDFLAGS=$LDFLAGS $OS_LDFLAGS $ARCH_LDFLAGS" >> $config_mak
echo "EXESUF=$EXESUF" >> $config_mak
echo "PTHREADLIBS=$PTHREADLIBS" >> $config_mak
echo "CLOCKLIBS=$CLOCKLIBS" >> $config_mak
--
1.6.2.2
^ permalink raw reply related [flat|nested] 26+ messages in thread