From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkE4s-0005TQ-2w for qemu-devel@nongnu.org; Fri, 31 Oct 2014 11:26:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xjy13-0000UE-63 for qemu-devel@nongnu.org; Thu, 30 Oct 2014 18:16:29 -0400 Received: from mail-lb0-f169.google.com ([209.85.217.169]:54264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xjy12-0000U4-VH for qemu-devel@nongnu.org; Thu, 30 Oct 2014 18:16:25 -0400 Received: by mail-lb0-f169.google.com with SMTP id l4so5085043lbv.14 for ; Thu, 30 Oct 2014 15:16:22 -0700 (PDT) MIME-Version: 1.0 Sender: peter.crosthwaite@petalogix.com In-Reply-To: References: Date: Fri, 31 Oct 2014 08:16:22 +1000 Message-ID: From: Peter Crosthwaite Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] How to modify configure for new added file List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kaiyuan Cc: qemu-devel Hi Kaiyuan, response inline below .. On Wed, Oct 29, 2014 at 7:31 PM, Kaiyuan wrote: > I am so sorry for my abrupt mail. I am newbie to open source communities.= My study is to add a new encrypt module to PowerPC boards. But I think the= ways to add HW device are same between ARM or PowerPC. So I found out some= similar implementation like your commit. But the contents about configure = confuse me. How to let make to know there is new files added to project? > > > Kaiyuan Liang > > In 2014-10-29=EF=BC=8CPeter Crosthwaite wr= ote:-----Origin email----- > From: Peter Crosthwaite > Sent Time: Wednesday, October 29, 2014 > To: Kaiyuan > Subject: RE: How to modify configure for new added file > > Hi Kaiyuan, > > I suggest asking these questions on the qemu-devel mailing list, even if = you do target them at a specific person. > > The best way to ask is: > > =E2=80=9CHi everyone=E2=80=A6=E2=80=9D > > But then if you have particular people in mind who you think can best ans= wer your question you add them to the email to: or cc: . > > Some other information you may wish to include is what qemu target or tar= gets you are running for? is this ARM? > > Regards, > Peter > > From: Kaiyuan [mailto:kaiyuanl@tju.edu.cn] > Sent: Wednesday, October 29, 2014 3:04 PM > To: Peter Crosthwaite > Subject: How to modify configure for new added file > > > > > Hello, Peter > > > > I am working on adding a new device to hw/misc/*. One problem I meet is h= ow to modify relevant configure file to make my new file can be compiled in= to whole project. I check out other commit and see that you add new timer a= 9gtimer to hw/timer/* in commit c21c3b53e122a807ae4f5443b7f74f3850f21e37 . = I diff your commit, but still don't understand how to do it. Could you give= me some suggestions? > There are two steps to this. One it to create your new config variable and set it to y. The second is to use it. In one or more of the default configs (e.g. default-configs/arm-softmmu.mak) set a config variable to y e.g. CONFIG_MY_DEV=3Dy If you are doing both ARM and PPC you need to add it to both ARM and PPC defconfigs. Then in hw/misc/Makefile.objs you add your new .o object, conditional on this new switch. obj-(CONFIG_MY_DEV) +=3D my_dev.o HTH Regards, Peter > > > Thanks, > > Kaiyuan Liang > > > > > > > > >