qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] How to modify configure for new added file


From: Kaiyuan
Subject: Re: [Qemu-devel] How to modify configure for new added file
Date: Fri, 31 Oct 2014 12:25:33 +0800 (GMT+08:00)

It's work. Thank you, Peter.I see there are common-obj-$(*) and obj-$(*) in 
Makefile.objs. I also have a try by common-obj-$(*), it seem to work too.
What is the difference between them? Thanks in advance.
> -----Origin email-----
> From: Peter Crosthwaite <address@hidden>
> Sent Time: Friday, October 31, 2014
> To: Kaiyuan <address@hidden>
> Cc: qemu-devel <address@hidden>
> Subject: Re: [Qemu-devel] How to modify configure for new added file
> 
> Hi Kaiyuan,
> 
> response inline below ..
> 
> On Wed, Oct 29, 2014 at 7:31 PM, Kaiyuan <address@hidden> 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,Peter Crosthwaite <address@hidden> wrote:-----Origin 
> > email-----
> >  From: Peter Crosthwaite <address@hidden>
> >  Sent Time: Wednesday, October 29, 2014
> >  To: Kaiyuan <address@hidden>
> >  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:
> >
> > “Hi everyone…”
> >
> > But then if you have particular people in mind who you think can best 
> > answer your question you add them to the email to: or cc: .
> >
> > Some other information you may wish to include is what qemu target or 
> > targets you are running for? is this ARM?
> >
> > Regards,
> > Peter
> >
> > From: Kaiyuan [mailto:address@hidden
> >  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 how 
> > to modify relevant configure file to make my new file can be compiled into 
> > whole project. I check out other commit and see that you add new timer 
> > a9gtimer 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=y
> 
> 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) += my_dev.o
> 
> HTH
> 
> Regards,
> Peter
> 
> >
> >
> > Thanks,
> >
> > Kaiyuan Liang
> >
> >
> >
> >
> >
> >
> >
> >
> >





reply via email to

[Prev in Thread] Current Thread [Next in Thread]