DPDK usage discussions
 help / color / mirror / Atom feed
* Re: [dpdk-users] Building app with source in subdirectory ?doesn't work
@ 2018-09-09 10:51 Rami Rosen
  2018-09-09 18:21 ` Petr Houska
  0 siblings, 1 reply; 5+ messages in thread
From: Rami Rosen @ 2018-09-09 10:51 UTC (permalink / raw)
  To: users, t-pehous

HI Peter,

>I tried debugging the `Makefile` via `make D=1` but it doesn't output any debug >information before failing on abovementioned message.

You need to run "make V=1" in order to get debug messages in the build
process, and not D=1. I would suggest that you will try again with V=1
and post the log here.

Second, where is the Makefile (with SRC-y) that you mentioned located ?

If I understand correctly, you added the "tst" folder under the root DPDK tree.

Third: usually applications are added under the examples folder or the
app folder, and you can follow recent patches of adding app under
examples, unless it is mandatory that the tst folder you added will be
under the root DPDK folder.

Regards,
Rami Rosen

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [dpdk-users] Building app with source in subdirectory ?doesn't work
@ 2018-09-09  4:49 Petr Houska
  0 siblings, 0 replies; 5+ messages in thread
From: Petr Houska @ 2018-09-09  4:49 UTC (permalink / raw)
  To: users

Hi,
I'm having troubles creating a working Makefile for DPDK app that has source files in subdirectories.
Minimal repro I created uses the `helloworld` sample with following changes:

  1.  Add `tst` subdirectory to project's root
  2.  Add empty `tst.c` file to such subdirectory
  3.  Modify original `Makefile`'s SRC-y variable so that it includes `tst/tst.c`
When doing that the fist invoke of `make` works just fine and build the app correctly. Subsequent invokes
(unless either build directory is cleaned manually or `make clean` is invoked), however, don't track changes in
files and always fail on `make[1]: Nothing to be done for 'tst.o'.`.

I tried debugging the `Makefile` via `make D=1` but it doesn't output any debug information before failing on
abovementioned message.

Moving `tst.c` to root folder solved the issue. The issue has been observed with custom Makefiles referencing
`app.rte.mk` as well so it's not just helloworld's issue.

Petr Houska
Azure Intern

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

end of thread, other threads:[~2018-09-10 16:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-09 10:51 [dpdk-users] Building app with source in subdirectory ?doesn't work Rami Rosen
2018-09-09 18:21 ` Petr Houska
2018-09-10  9:14   ` Rami Rosen
2018-09-10 16:47     ` Petr Houska
  -- strict thread matches above, loose matches on Subject: below --
2018-09-09  4:49 Petr Houska

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