examples/vdpa: remove trace of legacy "linuxapp"

Message ID 1560758082-3479-1-git-send-email-david.marchand@redhat.com (mailing list archive)
State Accepted, archived
Delegated to: Maxime Coquelin
Headers
Series examples/vdpa: remove trace of legacy "linuxapp" |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/intel-Performance-Testing success Performance Testing PASS
ci/mellanox-Performance-Testing success Performance Testing PASS
ci/Intel-compilation fail Compilation issues

Commit Message

David Marchand June 17, 2019, 7:54 a.m. UTC
  This check on Linux environment has been added at a time when we already
had switched to using the boolean RTE_EXEC_ENV_LINUXAPP.
It was then missed when converting to RTE_EXEC_ENV_LINUX.

Fixes: edbed86d1cc3 ("examples/vdpa: introduce a new sample for vDPA")
Fixes: 742bde12f3bd ("build/linux: rename macro from LINUXAPP to LINUX")
Cc: stable@dpdk.org

Signed-off-by: David Marchand <david.marchand@redhat.com>
---
If we backport this to 18.11, the fix is to switch to
RTE_EXEC_ENV_LINUXAPP.

---
 examples/vdpa/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Tiwei Bie June 17, 2019, 8:51 a.m. UTC | #1
On Mon, Jun 17, 2019 at 09:54:42AM +0200, David Marchand wrote:
> This check on Linux environment has been added at a time when we already
> had switched to using the boolean RTE_EXEC_ENV_LINUXAPP.
> It was then missed when converting to RTE_EXEC_ENV_LINUX.
> 
> Fixes: edbed86d1cc3 ("examples/vdpa: introduce a new sample for vDPA")
> Fixes: 742bde12f3bd ("build/linux: rename macro from LINUXAPP to LINUX")
> Cc: stable@dpdk.org
> 
> Signed-off-by: David Marchand <david.marchand@redhat.com>
> ---

Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>

Thanks,
Tiwei
  
Xiaolong Ye June 17, 2019, 3:40 p.m. UTC | #2
On 06/17, David Marchand wrote:
>This check on Linux environment has been added at a time when we already
>had switched to using the boolean RTE_EXEC_ENV_LINUXAPP.
>It was then missed when converting to RTE_EXEC_ENV_LINUX.
>
>Fixes: edbed86d1cc3 ("examples/vdpa: introduce a new sample for vDPA")
>Fixes: 742bde12f3bd ("build/linux: rename macro from LINUXAPP to LINUX")
>Cc: stable@dpdk.org
>
>Signed-off-by: David Marchand <david.marchand@redhat.com>
>---
>If we backport this to 18.11, the fix is to switch to
>RTE_EXEC_ENV_LINUXAPP.
>
>---
> examples/vdpa/Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/examples/vdpa/Makefile b/examples/vdpa/Makefile
>index 9d16d8e..ab2bbdf 100644
>--- a/examples/vdpa/Makefile
>+++ b/examples/vdpa/Makefile
>@@ -10,7 +10,7 @@ RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.conf
> 
> include $(RTE_SDK)/mk/rte.vars.mk
> 
>-ifneq ($(CONFIG_RTE_EXEC_ENV),"linuxapp")
>+ifneq ($(CONFIG_RTE_EXEC_ENV_LINUX),y)
> $(info This application can only operate in a linux environment, \
> please change the definition of the RTE_TARGET environment variable)
> all:
>-- 
>1.8.3.1
>

Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>
  
Maxime Coquelin June 20, 2019, 9:58 a.m. UTC | #3
On 6/17/19 9:54 AM, David Marchand wrote:
> This check on Linux environment has been added at a time when we already
> had switched to using the boolean RTE_EXEC_ENV_LINUXAPP.
> It was then missed when converting to RTE_EXEC_ENV_LINUX.
> 
> Fixes: edbed86d1cc3 ("examples/vdpa: introduce a new sample for vDPA")
> Fixes: 742bde12f3bd ("build/linux: rename macro from LINUXAPP to LINUX")
> Cc: stable@dpdk.org
> 
> Signed-off-by: David Marchand <david.marchand@redhat.com>
> ---
> If we backport this to 18.11, the fix is to switch to
> RTE_EXEC_ENV_LINUXAPP.
> 
> ---
>   examples/vdpa/Makefile | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 

Applied to dpdk-next-virtio/master.

Thanks,
Maxime
  

Patch

diff --git a/examples/vdpa/Makefile b/examples/vdpa/Makefile
index 9d16d8e..ab2bbdf 100644
--- a/examples/vdpa/Makefile
+++ b/examples/vdpa/Makefile
@@ -10,7 +10,7 @@  RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.conf
 
 include $(RTE_SDK)/mk/rte.vars.mk
 
-ifneq ($(CONFIG_RTE_EXEC_ENV),"linuxapp")
+ifneq ($(CONFIG_RTE_EXEC_ENV_LINUX),y)
 $(info This application can only operate in a linux environment, \
 please change the definition of the RTE_TARGET environment variable)
 all: