[dpdk-dev] pktgen-dpdk: Add support for make O=OUTPUT option

Message ID 4e092b860fc7a5e3da2f1e0b97afde70c51c0b64.1508930205.git.aber@semihalf.com (mailing list archive)
State Not Applicable, archived
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation fail apply patch file failure

Commit Message

Andriy Berestovskyy Oct. 25, 2017, 11:17 a.m. UTC
  Add support for make O=OUTPUT compile time option.

Signed-off-by: Andriy Berestovskyy <aber@semihalf.com>
---
 app/Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
  

Comments

Wiles, Keith Oct. 25, 2017, 12:51 p.m. UTC | #1
Thanks


> On Oct 25, 2017, at 6:17 AM, Andriy Berestovskyy <aber@semihalf.com> wrote:
> 
> Add support for make O=OUTPUT compile time option.
> 
> Signed-off-by: Andriy Berestovskyy <aber@semihalf.com>
> ---
> app/Makefile | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/app/Makefile b/app/Makefile
> index 9207d2b..88e8716 100644
> --- a/app/Makefile
> +++ b/app/Makefile
> @@ -57,10 +57,10 @@ yy := $(shell $(ver_cmd) -yy)
> # $(info yy=$(yy))
> 
> ifeq ($(yy),17)
> -COMMON_PRE := $(RTE_SRCDIR)/../lib/common
> -LUA_PRE := $(RTE_SRCDIR)/../lib/lua/src
> -CLI_PRE := $(RTE_SRCDIR)/../lib/cli
> -GUI_PRE := $(RTE_SRCDIR)/../gui/gui
> +COMMON_PRE := $(RTE_OUTPUT)/../../lib/common
> +LUA_PRE := $(RTE_OUTPUT)/../../lib/lua/src
> +CLI_PRE := $(RTE_OUTPUT)/../../lib/cli
> +GUI_PRE := $(RTE_OUTPUT)/../../gui/gui
> else
> ifeq ($(yy),16)
> COMMON_PRE := $(RTE_SRCDIR)/../lib/common/lib/common
> -- 
> 2.7.4
> 

Regards,
Keith
  

Patch

diff --git a/app/Makefile b/app/Makefile
index 9207d2b..88e8716 100644
--- a/app/Makefile
+++ b/app/Makefile
@@ -57,10 +57,10 @@  yy := $(shell $(ver_cmd) -yy)
 # $(info yy=$(yy))
 
 ifeq ($(yy),17)
-COMMON_PRE := $(RTE_SRCDIR)/../lib/common
-LUA_PRE := $(RTE_SRCDIR)/../lib/lua/src
-CLI_PRE := $(RTE_SRCDIR)/../lib/cli
-GUI_PRE := $(RTE_SRCDIR)/../gui/gui
+COMMON_PRE := $(RTE_OUTPUT)/../../lib/common
+LUA_PRE := $(RTE_OUTPUT)/../../lib/lua/src
+CLI_PRE := $(RTE_OUTPUT)/../../lib/cli
+GUI_PRE := $(RTE_OUTPUT)/../../gui/gui
 else
 ifeq ($(yy),16)
 COMMON_PRE := $(RTE_SRCDIR)/../lib/common/lib/common