From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47578) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8a4j-0004BC-J0 for qemu-devel@nongnu.org; Tue, 06 Jan 2015 14:45:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y8a4f-0000G0-JJ for qemu-devel@nongnu.org; Tue, 06 Jan 2015 14:45:57 -0500 Received: from mail-wi0-x22d.google.com ([2a00:1450:400c:c05::22d]:49706) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8a4f-0000Fq-9u for qemu-devel@nongnu.org; Tue, 06 Jan 2015 14:45:53 -0500 Received: by mail-wi0-f173.google.com with SMTP id r20so6056655wiv.12 for ; Tue, 06 Jan 2015 11:45:52 -0800 (PST) Sender: Paolo Bonzini Message-ID: <54AC3B6D.3050506@redhat.com> Date: Tue, 06 Jan 2015 20:45:49 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <20150106142543.1e7fb482@vm> In-Reply-To: <20150106142543.1e7fb482@vm> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] qemu sources and makefile system List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vasile Catalin-B50542 , qemu-devel@nongnu.org On 06/01/2015 13:25, Vasile Catalin-B50542 wrote: > I'm new to qemu-devel and I'm trying to add a ".c" source to qemu. > To be more specific, I'm trying to add a file into src>/hw/virtio/. I've added "common-obj-y += virtio-src.o" to the > src>Makefile.objs in that folder > and when I'm compiling qemu it seems to compile the sources, but I > don't know if they are added to the qemu binary. > Is there anything else left to do in order for qemu build system to > include my source file? No, that should be enough. You can use "make V=1" to see the linker command line, or "nm" to check if your functions are found in the final executable. Paolo