DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Help with compilation of .s files with DPDK build system
@ 2014-10-10  6:37 Prashant Upadhyaya
  2014-10-10 11:30 ` Neil Horman
  0 siblings, 1 reply; 2+ messages in thread
From: Prashant Upadhyaya @ 2014-10-10  6:37 UTC (permalink / raw)
  To: dev

Hi,

I have an application which consists of *.c files and I have been using the
DPDK build system happily so far.
The way I do it is I include the rte.vars.mk and rte.extlib.mk in my
application Makefile.
I set the LIB variable to <mylibname>.a
I set SRCS-y := <all C files here>
And that's it, it works.

Now recently, I need to introduce the compilation of .s file (not .S)
I can easily compile it by hand using gcc, but I can't seem to find a trick
to compile it with DPDK environment.

Any advises ?

Regards
-Prashant

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

* Re: [dpdk-dev] Help with compilation of .s files with DPDK build system
  2014-10-10  6:37 [dpdk-dev] Help with compilation of .s files with DPDK build system Prashant Upadhyaya
@ 2014-10-10 11:30 ` Neil Horman
  0 siblings, 0 replies; 2+ messages in thread
From: Neil Horman @ 2014-10-10 11:30 UTC (permalink / raw)
  To: Prashant Upadhyaya; +Cc: dev

On Fri, Oct 10, 2014 at 12:07:15PM +0530, Prashant Upadhyaya wrote:
> Hi,
> 
> I have an application which consists of *.c files and I have been using the
> DPDK build system happily so far.
> The way I do it is I include the rte.vars.mk and rte.extlib.mk in my
> application Makefile.
> I set the LIB variable to <mylibname>.a
> I set SRCS-y := <all C files here>
> And that's it, it works.
> 
> Now recently, I need to introduce the compilation of .s file (not .S)
So...Not assembly?  Whats in a .s file?

> I can easily compile it by hand using gcc, but I can't seem to find a trick
> to compile it with DPDK environment.
> 
You'll need to add a rule to rte.compile-pre.mk, like the C_TO_O series.  But
you'll have to be creative with your naming as there is already a S_TO_O series
for assembly files (.S)
Neil

> Any advises ?
> 
> Regards
> -Prashant
> 

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

end of thread, other threads:[~2014-10-10 11:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-10  6:37 [dpdk-dev] Help with compilation of .s files with DPDK build system Prashant Upadhyaya
2014-10-10 11:30 ` Neil Horman

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).