diff --git a/programming_examples/basic/vector_scalar_mul/Makefile b/programming_examples/basic/vector_scalar_mul/Makefile index e7d8e6e26e..17c752622b 100644 --- a/programming_examples/basic/vector_scalar_mul/Makefile +++ b/programming_examples/basic/vector_scalar_mul/Makefile @@ -42,20 +42,25 @@ build/aie_trace_${data_size}.mlir: aie2.py #build/insts_${data_size}.txt: build/final_${data_size}.xclbin build/final_${data_size}.xclbin: build/aie_${data_size}.mlir build/scale.o mkdir -p ${@D} +ifeq ($(CHESS), true) cd ${@D} && aiecc.py --aie-generate-cdo --no-compile-host --xclbin-name=${@F} \ - --no-xchesscc --no-xbridge \ - $(if $(shell [ $(CHESS) != true ] && echo true), \ - --no-xchesscc --no-xbridge \ - ) \ --aie-generate-npu --npu-insts-name=insts_${data_size}.txt $(<:%=../%) +else + cd ${@D} && aiecc.py --aie-generate-cdo --no-compile-host --xclbin-name=${@F} \ + --no-xchesscc --no-xbridge \ + --aie-generate-npu --npu-insts-name=insts_${data_size}.txt $(<:%=../%) +endif build/final_trace_${data_size}.xclbin: build/aie_trace_${data_size}.mlir build/scale.o mkdir -p ${@D} +ifeq ($(CHESS), true) cd ${@D} && aiecc.py --aie-generate-cdo --no-compile-host --xclbin-name=${@F} \ - $(if $(shell [ $(CHESS) != true ] && echo true), \ - --no-xchesscc --no-xbridge \ - ) \ --aie-generate-npu --npu-insts-name=insts_${data_size}.txt $(<:%=../%) +else + cd ${@D} && aiecc.py --aie-generate-cdo --no-compile-host --xclbin-name=${@F} \ + --no-xchesscc --no-xbridge \ + --aie-generate-npu --npu-insts-name=insts_${data_size}.txt $(<:%=../%) +endif ${targetname}_${data_size}.exe: ${srcdir}/test.cpp rm -rf _build