From 4e36458b66f5fd4be3e3c84a231590b4661fa035 Mon Sep 17 00:00:00 2001 From: Shen Jiamin Date: Sat, 30 May 2026 20:44:54 +0800 Subject: [PATCH] build(slashkit): specify file targets and dependencies for HLS Makefiles Replace the phony 'all' targets with explicit zip archive targets and add prerequisites for source (.cpp) and config (.cfg) files. This enables proper incremental builds and prevents unnecessary HLS recompilations when no source files have changed. Signed-off-by: Shen Jiamin --- .../resources/base/iprepo/hbm_bandwidth/Makefile | 13 +++++++------ .../resources/base/iprepo/traffic_producer/Makefile | 13 +++++++------ 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/linker/slashkit/resources/base/iprepo/hbm_bandwidth/Makefile b/linker/slashkit/resources/base/iprepo/hbm_bandwidth/Makefile index 6cefd215..32121725 100644 --- a/linker/slashkit/resources/base/iprepo/hbm_bandwidth/Makefile +++ b/linker/slashkit/resources/base/iprepo/hbm_bandwidth/Makefile @@ -1,16 +1,16 @@ # ################################################################################################## # The MIT License (MIT) # Copyright (c) 2025-2026 Advanced Micro Devices, Inc. All rights reserved. -# +# # Permission is hereby granted, free of charge, to any person obtaining a copy of this software # and associated documentation files (the "Software"), to deal in the Software without restriction, # including without limitation the rights to use, copy, modify, merge, publish, distribute, # sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: -# +# # The above copyright notice and this permission notice shall be included in all copies or # substantial portions of the Software. -# +# # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT # NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, @@ -18,11 +18,12 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # ################################################################################################## -.PHONY: all clean +all: ip/hbm_bandwidth.zip -all: +ip/hbm_bandwidth.zip: $(wildcard *.cpp) $(wildcard *.cfg) v++ -c --mode hls --config hbm_bandwidth.cfg --work_dir ip vitis-run --mode hls --package --config hbm_bandwidth.cfg --work_dir ip +.PHONY: clean clean: - rm -rf ip/ .Xil *.json \ No newline at end of file + rm -rf ip/ .Xil *.json diff --git a/linker/slashkit/resources/base/iprepo/traffic_producer/Makefile b/linker/slashkit/resources/base/iprepo/traffic_producer/Makefile index e4780e56..139527a2 100644 --- a/linker/slashkit/resources/base/iprepo/traffic_producer/Makefile +++ b/linker/slashkit/resources/base/iprepo/traffic_producer/Makefile @@ -1,16 +1,16 @@ # ################################################################################################## # The MIT License (MIT) # Copyright (c) 2025 Advanced Micro Devices, Inc. All rights reserved. -# +# # Permission is hereby granted, free of charge, to any person obtaining a copy of this software # and associated documentation files (the "Software"), to deal in the Software without restriction, # including without limitation the rights to use, copy, modify, merge, publish, distribute, # sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: -# +# # The above copyright notice and this permission notice shall be included in all copies or # substantial portions of the Software. -# +# # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT # NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, @@ -18,11 +18,12 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # ################################################################################################## -.PHONY: all clean +all: ip/traffic_producer.zip -all: +ip/traffic_producer.zip: $(wildcard *.cpp) $(wildcard *.cfg) v++ -c --mode hls --config traffic_producer.cfg --work_dir ip vitis-run --mode hls --package --config traffic_producer.cfg --work_dir ip +.PHONY: clean clean: - rm -rf ip/ .Xil *.json \ No newline at end of file + rm -rf ip/ .Xil *.json