diff --git a/host_xrt/hbm_simple_xrt/Makefile b/host_xrt/hbm_simple_xrt/Makefile index 7975afe24..37813d453 100644 --- a/host_xrt/hbm_simple_xrt/Makefile +++ b/host_xrt/hbm_simple_xrt/Makefile @@ -23,6 +23,9 @@ XF_PROJ_ROOT = $(shell readlink -f $(COMMON_REPO)) ########################## Checking if PLATFORM in allowlist ####################### PLATFORM_BLOCKLIST += u25_ u30 u200 zc vck u250 aws samsung u2_ x3522pv nodma v70 +ifneq ($(TARGET),$(findstring $(TARGET), hw hw_emu)) +$(error Application supports only hw hw_emu TARGET. Please use the target for running the application) +endif PLATFORM ?= xilinx_u250_gen3x16_xdma_4_1_202210_1 DEV_ARCH := $(shell platforminfo -p $(PLATFORM) | grep 'FPGA Family' | sed 's/.*://' | sed '/ai_engine/d' | sed 's/^[[:space:]]*//') CPU_TYPE := $(shell platforminfo -p $(PLATFORM) | grep 'CPU Type' | sed 's/.*://' | sed '/ai_engine/d' | sed 's/^[[:space:]]*//') diff --git a/host_xrt/hbm_simple_xrt/description.json b/host_xrt/hbm_simple_xrt/description.json index bd8f57aae..2934221bf 100644 --- a/host_xrt/hbm_simple_xrt/description.json +++ b/host_xrt/hbm_simple_xrt/description.json @@ -26,6 +26,10 @@ "v70" ], "platform_type": "pcie", + "targets": [ + "hw", + "hw_emu" + ], "os": [ "Linux" ], @@ -88,7 +92,6 @@ } ], "targets": [ - "vitis_sw_emu", "vitis_hw_emu", "vitis_hw" ], diff --git a/host_xrt/hbm_simple_xrt/makefile_us_alveo.mk b/host_xrt/hbm_simple_xrt/makefile_us_alveo.mk index 498c1d0f0..74f03e0ac 100644 --- a/host_xrt/hbm_simple_xrt/makefile_us_alveo.mk +++ b/host_xrt/hbm_simple_xrt/makefile_us_alveo.mk @@ -118,6 +118,9 @@ ifeq ($(TARGET),$(filter $(TARGET),sw_emu hw_emu)) else $(EXECUTABLE) $(CMD_ARGS) endif +ifneq ($(TARGET),$(findstring $(TARGET), hw hw_emu)) +$(error Application supports only hw hw_emu TARGET. Please use the target for running the application) +endif .PHONY: test test: $(EXECUTABLE) @@ -126,6 +129,10 @@ ifeq ($(TARGET),$(filter $(TARGET),sw_emu hw_emu)) else $(EXECUTABLE) $(CMD_ARGS) endif +ifneq ($(TARGET),$(findstring $(TARGET), hw hw_emu)) +$(warning WARNING:Application supports only hw hw_emu TARGET. Please use the target for running the application) +endif + ############################## Cleaning Rules ############################## # Cleaning stuff