#------------------------------------------------------------------------------ # ENVIRONMENT VARIABLES #------------------------------------------------------------------------------ define tcl_util xsct -nodisp $(PLATFORM_TOOLS)/util.tcl \ $(1) \ $(CONFIG_FILE) $(BUILD_DIR) endef xilinx_sdkopen: @$(call print,Launching IDE...) @if [ "$(call check_command,vitis)" = "y" ]; then \ if [ "$(XILINX_VITIS_CLASSIC)" = "y" ]; then \ vitis -classic -workspace=$(BUILD_DIR); \ else \ vitis -workspace=$(BUILD_DIR); \ fi; \ elif [ "$(call check_command,xsdk)" = "y" ]; then \ xsdk -workspace=$(BUILD_DIR); \ else \ echo "No IDE found!" && exit 1; \ fi PHONY += xilinx_sdkbuild xilinx_sdkbuild: @$(call print,[Build] SDK projects in $(BUILD_DIR)) $(call tcl_util, build) $(HIDE) PHONY += xilinx_sdkclean xilinx_sdkclean: @$(call print,[Delete] SDK artefacts from $(BUILD_DIR)) $(call tcl_util, clean_project) $(HIDE) xilinx_project: @$(call print,Creating and configuring the IDE project) $(call mk_dir,$(BUILD_DIR)) $(call tcl_util, create_project) $(HIDE) xilinx_reset: $(call remove_dir,.Xil) $(HIDE)