@@ -85,6 +85,28 @@ include $(XF_PROJ_ROOT)/common/includes/opencl/opencl.mk
8585CXXFLAGS += $(opencl_CXXFLAGS ) -Wall -O0 -g -std=c++11
8686LDFLAGS += $(opencl_LDFLAGS )
8787
88+ ifeq ($(findstring zc, $(DEVICE ) ) , zc)
89+ $(error [ERROR] : This example is not supported for $(DEVICE ) .)
90+ endif
91+ ifeq ($(findstring zed, $(DEVICE ) ) , zed)
92+ $(error [ERROR] : This example is not supported for $(DEVICE ) .)
93+ endif
94+ ifeq ($(findstring vck, $(DEVICE ) ) , vck)
95+ $(error [ERROR] : This example is not supported for $(DEVICE ) .)
96+ endif
97+ ifeq ($(findstring u30, $(DEVICE ) ) , u30)
98+ $(error [ERROR] : This example is not supported for $(DEVICE ) .)
99+ endif
100+ ifeq ($(findstring u50, $(DEVICE ) ) , u50)
101+ $(error [ERROR] : This example is not supported for $(DEVICE ) .)
102+ endif
103+ ifeq ($(findstring samsung, $(DEVICE ) ) , samsung)
104+ $(error [ERROR] : This example is not supported for $(DEVICE ) .)
105+ endif
106+ ifeq ($(findstring nodma, $(DEVICE ) ) , nodma)
107+ $(error [ERROR] : This example is not supported for $(DEVICE ) .)
108+ endif
109+
88110# ############################# Setting up Host Variables ##############################
89111# Include Required Host Source Files
90112CXXFLAGS += -I$(XF_PROJ_ROOT ) /common/includes/xcl2
@@ -160,28 +182,6 @@ $(EMCONFIG_DIR)/emconfig.json:
160182
161183# ############################# Setting Essential Checks and Running Rules ##############################
162184run : all
163- ifeq ($(findstring zc, $(DEVICE ) ) , zc)
164- $(error This example is not supported for $(DEVICE))
165- endif
166- ifeq ($(findstring zed, $(DEVICE ) ) , zed)
167- $(error This example is not supported for $(DEVICE))
168- endif
169- ifeq ($(findstring vck, $(DEVICE ) ) , vck)
170- $(error This example is not supported for $(DEVICE))
171- endif
172- ifeq ($(findstring u30, $(DEVICE ) ) , u30)
173- $(error This example is not supported for $(DEVICE))
174- endif
175- ifeq ($(findstring u50, $(DEVICE ) ) , u50)
176- $(error This example is not supported for $(DEVICE))
177- endif
178- ifeq ($(findstring samsung, $(DEVICE ) ) , samsung)
179- $(error This example is not supported for $(DEVICE))
180- endif
181- ifeq ($(findstring nodma, $(DEVICE ) ) , nodma)
182- $(error This example is not supported for $(DEVICE))
183- endif
184-
185185ifeq ($(TARGET ) ,$(filter $(TARGET ) ,sw_emu hw_emu) )
186186ifeq ($(HOST_ARCH ) , x86)
187187 $(CP) $(EMCONFIG_DIR)/emconfig.json .
0 commit comments