mk: fix default rule of test subdirectory
PATCH 1/1 mk: fix default rule of test subdirectory
When using "make -C app/test" (with RTE_SDK/RTE_TARGET adjusted) without specifying the rule (all), the build is not done. Indeed the default rule is not "all" anymore since there are some rules added for external resources link.
It is fixed by adding a reference to "all" at the top of the file which makes it the default rule.
Note that make app/test_sub (without environment variable) is preffered.
--- app/test/Makefile | 3 +++ 1 file changed, 3 insertions(+)
app/test/Makefile +3 -0
@@ -33,6 +33,9 @@ include $(RTE_SDK)/mk/rte.vars.mk ifeq ($(CONFIG_RTE_APP_TEST),y) +# default rule +all: + # Define an externally linked resource. A linked resource is an arbitrary # file that is linked into the test binary. The application refers to this # resource by name. The linked generates identifiers beg_<name> and end_<name>
Signature · 1 line
2.7.0
Hi,
Quoted 11 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Thomas Monjalon
Sent: Tuesday, July 12, 2016 11:22 AM
To: [email protected]
Subject: [dpdk-dev] [PATCH] mk: fix default rule of test subdirectoryWhen using "make -C app/test" (with RTE_SDK/RTE_TARGET adjusted) without specifying the rule (all), the build is not done.
Indeed the default rule is not "all" anymore since there are some rules added for external resources link.
Quoted 5 lines
It is fixed by adding a reference to "all" at the top of the file which makes it the default rule.
Note that make app/test_sub (without environment variable) is preffered.
What is test_sub here? I could not execute the command make app/test_sub(without environment variable) .
Thanks,
Reshma
2016-07-12 11:16, Pattan, Reshma:
Quoted 4 lines
From: dev [mailto:[email protected]] On Behalf Of Thomas Monjalon
Quoted 1 line
Note that make app/test_sub (without environment variable) is preffered.
What is
test_subhere? I could not execute the command make app/test_sub(without environment variable) .
It is a rule. You can check it here:
http://dpdk.org/browse/dpdk/tree/mk/rte.sdkbuild.mk?id=11c5e45#n93
Quoted 8 lines
2016-07-12 11:16, Pattan, Reshma:
Quoted 4 lines
From: dev [mailto:[email protected]] On Behalf Of Thomas Monjalon
Quoted 1 line
Note that make app/test_sub (without environment variable) is preffered.
What is
test_subhere? I could not execute the command make app/test_sub(without environment variable) .It is a rule. You can check it here:
http://dpdk.org/browse/dpdk/tree/mk/rte.sdkbuild.mk?id=11c5e45#n93
The %_sub rule should match anything ending with _sub. The syntax is "make <dir>_sub".
Quoted 16 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Thomas Monjalon
Sent: Tuesday, July 12, 2016 11:22 AM
To: [email protected]
Subject: [dpdk-dev] [PATCH] mk: fix default rule of test subdirectoryWhen using "make -C app/test" (with RTE_SDK/RTE_TARGET adjusted) without specifying the rule (all), the build is not done.
Indeed the default rule is not "all" anymore since there are some rules added for external resources link.It is fixed by adding a reference to "all" at the top of the file which makes it the default rule.
Quoted 6 lines
Note that make app/test_sub (without environment variable) is preffered.
Fixes ab64f5df8004 ("app/test: support resources externally linked")Reported-by Reshma Pattan <[email protected]>Signed-off-by Thomas Monjalon <[email protected]>
Thomas Monjalon
AppliedQuoted 8 lines
Quoted 8 lines
When using "make -C app/test" (with RTE_SDK/RTE_TARGET adjusted) without specifying the rule (all), the build is not done.
Indeed the default rule is not "all" anymore since there are some rules added for external resources link.It is fixed by adding a reference to "all" at the top of the file which makes it the default rule.
Quoted 8 lines
Quoted 6 lines
Note that make app/test_sub (without environment variable) is preffered.
Fixes ab64f5df8004 ("app/test: support resources externally linked")Reported-by Reshma Pattan <[email protected]>Signed-off-by Thomas Monjalon <[email protected]>Acked-by Reshma Pattan <[email protected]>
Applied