[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 59/81] Fold TARGET_GPROF handling in configure
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 59/81] Fold TARGET_GPROF handling in configure |
Date: |
Mon, 3 Aug 2009 14:46:50 +0200 |
Signed-off-by: Juan Quintela <address@hidden>
---
Makefile.target | 7 -------
configure | 14 +++++++++++---
2 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/Makefile.target b/Makefile.target
index 0386c13..8fbf9ca 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -138,12 +138,6 @@ ifdef CONFIG_LINUX_USER
VPATH+=:$(SRC_PATH)/linux-user:$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)
QEMU_CFLAGS+=-I$(SRC_PATH)/linux-user
-I$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)
-# profiling code
-ifdef TARGET_GPROF
-LDFLAGS+=-p
-QEMU_CFLAGS+=-p
-endif
-
obj-y = main.o syscall.o strace.o mmap.o signal.o path.o thunk.o \
elfload.o linuxload.o uaccess.o envlist.o gdbstub.o gdbstub-xml.o \
ioport-user.o
@@ -366,7 +360,6 @@ endif
# profiling code
ifdef TARGET_GPROF
-LDFLAGS+=-p
main.o vl.o: QEMU_CFLAGS+=-p
endif
diff --git a/configure b/configure
index 780c697..00ebf11 100755
--- a/configure
+++ b/configure
@@ -1595,9 +1595,6 @@ if test "$solaris" = "yes" ; then
echo "CONFIG_NEEDS_LIBSUNMATH=y" >> $config_host_mak
fi
fi
-if test "$gprof" = "yes" ; then
- echo "TARGET_GPROF=yes" >> $config_host_mak
-fi
if test "$static" = "yes" ; then
echo "CONFIG_STATIC=y" >> $config_host_mak
LDFLAGS="-static $LDFLAGS"
@@ -2081,6 +2078,17 @@ ia64)
;;
esac
+if test "$gprof" = "yes" ; then
+ echo "TARGET_GPROF=yes" >> $config_mak
+ if test "$target_linux_user" = "yes" ; then
+ cflags="-p $cflags"
+ ldflags="-p $ldflags"
+ fi
+ if test "$target_softmmu" = "yes" ; then
+ ldflags="-p $ldflags"
+ fi
+fi
+
linker_script="-Wl,-T../config-host.ld -Wl,-T,\$(SRC_PATH)/\$(ARCH).ld"
if test "$target_linux_user" = "yes" -o "$target_bsd_user" = "yes" ; then
case "$ARCH" in
--
1.6.2.5
- [Qemu-devel] [PATCH 49/81] remove duplicated TARGET_GPROF code, (continued)
- [Qemu-devel] [PATCH 49/81] remove duplicated TARGET_GPROF code, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 50/81] \!CONFIG_USER_ONLY == CONFIG_SOFTMMU, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 51/81] Introduce CONFIG_NOSOFTFLOAT and simplify Makefile.target, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 52/81] permit to add things to LDFLAGS for target, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 53/81] refactor linker_script common part and change quoting, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 54/81] permit to add things to CFLAGS per target, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 55/81] fix typo, there should be bsd_user there, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 56/81] Move alpha CFLAGS target to configure, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 57/81] Move ia64 QEMU_CFLAGS target to configure, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 58/81] this bit was already generated in configure, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 59/81] Fold TARGET_GPROF handling in configure,
Juan Quintela <=
- [Qemu-devel] [PATCH 60/81] Generate more conmmon CFLAGS, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 61/81] Added CONFIG_NEED_MMU for microblaze and cris, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 62/81] Move dis-* selection to configure, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 63/81] Use only one KVM_CFLAGS, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 64/81] Use one less HELPER_CFLAGS, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 67/81] AUDIO_PT is not needed, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 66/81] FMOD_CFLAGS is not set when CONFIG_FMOD is undef, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 68/81] Generate CONFIG_AUDIO_PT_INT in configure, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 65/81] Make slirp include dir globlal in cflags, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 69/81] CONFIG_POSIX makes more sense that not CONFIG_WIN32, Juan Quintela, 2009/08/03