qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Re: [Qemu-devel] How to modify configure for new added file
@ 2014-10-29  9:31 Kaiyuan
  2014-10-30 22:16 ` Peter Crosthwaite
  0 siblings, 1 reply; 3+ messages in thread
From: Kaiyuan @ 2014-10-29  9:31 UTC (permalink / raw)
  To: Peter Crosthwaite; +Cc: qemu-devel

[-- Attachment #1: Type: text/html, Size: 5126 bytes --]

[-- Attachment #2: Type: text/plain, Size: 1732 bytes --]

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 <peter.crosthwaite@xilinx.com> wrote:-----Origin email-----
 From: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
 Sent Time: Wednesday, October 29, 2014
 To: Kaiyuan <kaiyuanl@tju.edu.cn>
 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: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 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? 

 

Thanks,

Kaiyuan Liang

 








^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] How to modify configure for new added file
  2014-10-29  9:31 [Qemu-devel] How to modify configure for new added file Kaiyuan
@ 2014-10-30 22:16 ` Peter Crosthwaite
  2014-10-31  4:25   ` Kaiyuan
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Crosthwaite @ 2014-10-30 22:16 UTC (permalink / raw)
  To: Kaiyuan; +Cc: qemu-devel

Hi Kaiyuan,

response inline below ..

On Wed, Oct 29, 2014 at 7:31 PM, Kaiyuan <kaiyuanl@tju.edu.cn> 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 <peter.crosthwaite@xilinx.com> wrote:-----Origin email-----
>  From: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
>  Sent Time: Wednesday, October 29, 2014
>  To: Kaiyuan <kaiyuanl@tju.edu.cn>
>  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: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 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
>
>
>
>
>
>
>
>
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] How to modify configure for new added file
  2014-10-30 22:16 ` Peter Crosthwaite
@ 2014-10-31  4:25   ` Kaiyuan
  0 siblings, 0 replies; 3+ messages in thread
From: Kaiyuan @ 2014-10-31  4:25 UTC (permalink / raw)
  To: Peter Crosthwaite; +Cc: qemu-devel, Kaiyuan

[-- Attachment #1: Type: text/html, Size: 3631 bytes --]

[-- Attachment #2: Type: text/plain, Size: 3113 bytes --]

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 <peter.crosthwaite@xilinx.com>
> Sent Time: Friday, October 31, 2014
> To: Kaiyuan <kaiyuanl@tju.edu.cn>
> Cc: qemu-devel <qemu-devel@nongnu.org>
> 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 <kaiyuanl@tju.edu.cn> 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 <peter.crosthwaite@xilinx.com> wrote:-----Origin email-----
> >  From: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
> >  Sent Time: Wednesday, October 29, 2014
> >  To: Kaiyuan <kaiyuanl@tju.edu.cn>
> >  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: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 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
> >
> >
> >
> >
> >
> >
> >
> >
> >





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-10-31 15:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-29  9:31 [Qemu-devel] How to modify configure for new added file Kaiyuan
2014-10-30 22:16 ` Peter Crosthwaite
2014-10-31  4:25   ` Kaiyuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).