Received: from eggs.gnu.org ([2001:4830:134:3::10]:53577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgxcy-0005Yc-1s for qemu-devel@nongnu.org; Mon, 05 Sep 2016 13:24:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bgxct-0006Oi-Ia for qemu-devel@nongnu.org; Mon, 05 Sep 2016 13:24:10 -0400 References: <1473086312-4154-1-git-send-email-lvivier@redhat.com> <1473086312-4154-2-git-send-email-lvivier@redhat.com> <9f22d6f3-8792-52ab-4788-0026deb3bf07@redhat.com> From: Thomas Huth Message-ID: <44cc8579-bd35-6bcc-6d04-7d753a61abde@redhat.com> Date: Mon, 5 Sep 2016 19:24:03 +0200 MIME-Version: 1.0 In-Reply-To: <9f22d6f3-8792-52ab-4788-0026deb3bf07@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/2] tests: make pc_alloc_init/init_flags/uninit generic List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier , david@gibson.dropbear.id.au Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org On 05.09.2016 18:48, Laurent Vivier wrote: > > > On 05/09/2016 18:00, Thomas Huth wrote: >> On 05.09.2016 16:38, Laurent Vivier wrote: >>> And add support for ppc64. >>> >>> Signed-off-by: Laurent Vivier >>> --- >>> tests/Makefile.include | 3 ++- >>> tests/libqos/libqos.h | 2 +- >>> tests/libqos/malloc-ppc64.c | 38 ++++++++++++++++++++++++++++++++++++++ >>> tests/libqos/malloc-ppc64.h | 17 +++++++++++++++++ >>> tests/libqos/malloc.c | 42 ++++++++++++++++++++++++++++++++++++++++++ >>> tests/libqos/malloc.h | 3 +++ >>> 6 files changed, 103 insertions(+), 2 deletions(-) >>> create mode 100644 tests/libqos/malloc-ppc64.c >>> create mode 100644 tests/libqos/malloc-ppc64.h >>> >>> diff --git a/tests/Makefile.include b/tests/Makefile.include >>> index 14be491..a286848 100644 >>> --- a/tests/Makefile.include >>> +++ b/tests/Makefile.include >>> @@ -557,8 +557,9 @@ tests/test-crypto-block$(EXESUF): tests/test-crypto-block.o $(test-crypto-obj-y) >>> >>> libqos-obj-y = tests/libqos/pci.o tests/libqos/fw_cfg.o tests/libqos/malloc.o >>> libqos-obj-y += tests/libqos/i2c.o tests/libqos/libqos.o >>> +libqos-obj-y += tests/libqos/malloc-ppc64.o tests/libqos/malloc-pc.o >> >> Maybe this could rather be put into a libqos-malloc-obj-y variable which >> is then used to link these only to the tests that really need them? > > Good idea. Thinking about this again, this maybe makes the Makefile more complex than it has to be ... so maybe it's better to keep it the way you did it in this patch. ... your choice! Thomas