From 029689ea6ff923bb153b1c182b731f287c737098 Mon Sep 17 00:00:00 2001 From: Gatsby Van Date: Mon, 4 Nov 2024 19:55:29 +0800 Subject: [PATCH] chore: refine directory structure --- Makefile | 4 ++-- build.bat | 4 ++-- ge_cfg.json => ge_config.json | 2 +- hw_hsjl_ge_v0.0.0.xsa => hw/hsjl_ge_v0.0.0.xsa | Bin hw_hsjl_node_v0.0.0.hdf => hw/hsjl_node_v0.0.0.hdf | Bin node_cfg.json => node_config.json | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) rename ge_cfg.json => ge_config.json (94%) rename hw_hsjl_ge_v0.0.0.xsa => hw/hsjl_ge_v0.0.0.xsa (100%) rename hw_hsjl_node_v0.0.0.hdf => hw/hsjl_node_v0.0.0.hdf (100%) rename node_cfg.json => node_config.json (93%) diff --git a/Makefile b/Makefile index 2469367..8a8232f 100644 --- a/Makefile +++ b/Makefile @@ -5,11 +5,11 @@ TARGET_PROJ ?= node ifeq ($(TARGET_PROJ), node) BUILD_DIR := $(PROJECT)/build/node -CONFIG_FILE := $(PROJECT)/node_cfg.json +CONFIG_FILE := $(PROJECT)/node_config.json else ifeq ($(TARGET_PROJ), ge) XILINX_VITIS_CLASSIC := y BUILD_DIR := $(PROJECT)/build/ge -CONFIG_FILE := $(PROJECT)/ge_cfg.json +CONFIG_FILE := $(PROJECT)/ge_config.json else $(error Unsupported target PROJECT: $(TARGET_PROJ)) endif diff --git a/build.bat b/build.bat index a000e03..dbc2125 100644 --- a/build.bat +++ b/build.bat @@ -12,13 +12,13 @@ if "%choice%"=="1" ( echo Building NODE Project (SDK 2019.1)... set "platform_ver=2019.1" set "work_dir=%~dp0build\node" - set "config=%~dp0node_cfg.json" + set "config=%~dp0node_config.json" goto end ) else if "%choice%"=="2" ( echo Building GE Project (Vitis 2024.1)... set "platform_ver=2024.1" set "work_dir=%~dp0build\ge" - set "config=%~dp0ge_cfg.json" + set "config=%~dp0ge_config.json" goto end ) else ( echo Invalid choice. Please enter 1 or 2. diff --git a/ge_cfg.json b/ge_config.json similarity index 94% rename from ge_cfg.json rename to ge_config.json index 026db44..b896935 100644 --- a/ge_cfg.json +++ b/ge_config.json @@ -1,7 +1,7 @@ { "project_name": "hsjl_ge", "version": "0.0.0", - "hw_design": "hw_hsjl_ge_v0.0.0.xsa", + "hw_design": "hw/hsjl_ge_v0.0.0.xsa", "apps": { "datalink": { "sources": ["src/*"], diff --git a/hw_hsjl_ge_v0.0.0.xsa b/hw/hsjl_ge_v0.0.0.xsa similarity index 100% rename from hw_hsjl_ge_v0.0.0.xsa rename to hw/hsjl_ge_v0.0.0.xsa diff --git a/hw_hsjl_node_v0.0.0.hdf b/hw/hsjl_node_v0.0.0.hdf similarity index 100% rename from hw_hsjl_node_v0.0.0.hdf rename to hw/hsjl_node_v0.0.0.hdf diff --git a/node_cfg.json b/node_config.json similarity index 93% rename from node_cfg.json rename to node_config.json index 530423e..b8095b8 100644 --- a/node_cfg.json +++ b/node_config.json @@ -1,7 +1,7 @@ { "project_name": "hsjl_node", "version": "0.0.0", - "hw_design": "hw_hsjl_node_v0.0.0.hdf", + "hw_design": "hw/hsjl_node_v0.0.0.hdf", "apps": { "datalink": { "sources": ["src/*"],