From c5de8be5062a9152856e4ecf83d9fbb0527b8363 Mon Sep 17 00:00:00 2001 From: Virat Agarwal Date: Mon, 18 Oct 2021 14:10:57 +0530 Subject: [PATCH] Updating host_memory examples config.mk to handle 202010 hw case --- host/host_memory_bandwidth/config.mk | 2 +- host/host_memory_copy_kernel/config.mk | 2 +- host/host_memory_simple/config.mk | 2 +- host_xrt/host_memory_bandwidth_xrt/config.mk | 2 +- host_xrt/host_memory_copy_kernel_xrt/config.mk | 2 +- host_xrt/host_memory_simple_xrt/config.mk | 2 +- validate/hostmemory_test/config.mk | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) mode change 100755 => 100644 validate/hostmemory_test/config.mk diff --git a/host/host_memory_bandwidth/config.mk b/host/host_memory_bandwidth/config.mk index 451cba161..7e1225162 100644 --- a/host/host_memory_bandwidth/config.mk +++ b/host/host_memory_bandwidth/config.mk @@ -1,4 +1,4 @@ -ifeq ($(TARGET),$(findstring $(TARGET), hw_emu)) +ifeq ($(TARGET),$(filter $(TARGET),hw_emu)) ifeq ($(findstring 202010, $(DEVICE)), 202010) $(error [ERROR]: This example is not supported for $(DEVICE) when targeting hw_emu.) endif diff --git a/host/host_memory_copy_kernel/config.mk b/host/host_memory_copy_kernel/config.mk index 451cba161..7e1225162 100644 --- a/host/host_memory_copy_kernel/config.mk +++ b/host/host_memory_copy_kernel/config.mk @@ -1,4 +1,4 @@ -ifeq ($(TARGET),$(findstring $(TARGET), hw_emu)) +ifeq ($(TARGET),$(filter $(TARGET),hw_emu)) ifeq ($(findstring 202010, $(DEVICE)), 202010) $(error [ERROR]: This example is not supported for $(DEVICE) when targeting hw_emu.) endif diff --git a/host/host_memory_simple/config.mk b/host/host_memory_simple/config.mk index 451cba161..7e1225162 100644 --- a/host/host_memory_simple/config.mk +++ b/host/host_memory_simple/config.mk @@ -1,4 +1,4 @@ -ifeq ($(TARGET),$(findstring $(TARGET), hw_emu)) +ifeq ($(TARGET),$(filter $(TARGET),hw_emu)) ifeq ($(findstring 202010, $(DEVICE)), 202010) $(error [ERROR]: This example is not supported for $(DEVICE) when targeting hw_emu.) endif diff --git a/host_xrt/host_memory_bandwidth_xrt/config.mk b/host_xrt/host_memory_bandwidth_xrt/config.mk index 451cba161..7e1225162 100644 --- a/host_xrt/host_memory_bandwidth_xrt/config.mk +++ b/host_xrt/host_memory_bandwidth_xrt/config.mk @@ -1,4 +1,4 @@ -ifeq ($(TARGET),$(findstring $(TARGET), hw_emu)) +ifeq ($(TARGET),$(filter $(TARGET),hw_emu)) ifeq ($(findstring 202010, $(DEVICE)), 202010) $(error [ERROR]: This example is not supported for $(DEVICE) when targeting hw_emu.) endif diff --git a/host_xrt/host_memory_copy_kernel_xrt/config.mk b/host_xrt/host_memory_copy_kernel_xrt/config.mk index 451cba161..7e1225162 100644 --- a/host_xrt/host_memory_copy_kernel_xrt/config.mk +++ b/host_xrt/host_memory_copy_kernel_xrt/config.mk @@ -1,4 +1,4 @@ -ifeq ($(TARGET),$(findstring $(TARGET), hw_emu)) +ifeq ($(TARGET),$(filter $(TARGET),hw_emu)) ifeq ($(findstring 202010, $(DEVICE)), 202010) $(error [ERROR]: This example is not supported for $(DEVICE) when targeting hw_emu.) endif diff --git a/host_xrt/host_memory_simple_xrt/config.mk b/host_xrt/host_memory_simple_xrt/config.mk index 451cba161..7e1225162 100644 --- a/host_xrt/host_memory_simple_xrt/config.mk +++ b/host_xrt/host_memory_simple_xrt/config.mk @@ -1,4 +1,4 @@ -ifeq ($(TARGET),$(findstring $(TARGET), hw_emu)) +ifeq ($(TARGET),$(filter $(TARGET),hw_emu)) ifeq ($(findstring 202010, $(DEVICE)), 202010) $(error [ERROR]: This example is not supported for $(DEVICE) when targeting hw_emu.) endif diff --git a/validate/hostmemory_test/config.mk b/validate/hostmemory_test/config.mk old mode 100755 new mode 100644 index ae6fa60a1..83f02221f --- a/validate/hostmemory_test/config.mk +++ b/validate/hostmemory_test/config.mk @@ -8,7 +8,7 @@ platform_test: VPP_LDFLAGS:= --config platform_hostmemory.cfg -ifeq ($(TARGET),$(findstring $(TARGET), hw_emu)) +ifeq ($(TARGET),$(filter $(TARGET),hw_emu)) ifeq ($(findstring 202010, $(DEVICE)), 202010) $(error [ERROR]: This example is not supported for $(DEVICE) when targeting hw_emu.) endif