diff --git a/.gitignore b/.gitignore index b1cbb540..93333a67 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ # MacOS .DS_Store +__pycache__ diff --git a/image_conf/requirements.txt b/image_conf/requirements.txt index 8abb3261..95c79bf8 100644 --- a/image_conf/requirements.txt +++ b/image_conf/requirements.txt @@ -1,3 +1,5 @@ # flash_build.py dependencies fdt>=0.2.0 pycryptodomex>=3.9.8 +toml>=0.10.2 +configobj>=5.0.6 diff --git a/make_scripts_riscv/project.mk b/make_scripts_riscv/project.mk index cebbb9d3..65def1d9 100644 --- a/make_scripts_riscv/project.mk +++ b/make_scripts_riscv/project.mk @@ -187,8 +187,8 @@ all: ifeq ("$(OS)","Windows_NT") else ifeq ("$(CONFIG_CHIP_NAME)", "BL602") - #@cd $(BL60X_SDK_PATH)/image_conf; python3 flash_build.py $(PROJECT_NAME) $(CONFIG_CHIP_NAME) - @cd $(BL60X_SDK_PATH)/image_conf; ./flash_build $(PROJECT_NAME) $(CONFIG_CHIP_NAME) + @cd $(BL60X_SDK_PATH)/image_conf;python3 -m pip install -r requirements.txt; python3 flash_build.py $(PROJECT_NAME) $(CONFIG_CHIP_NAME) + #@cd $(BL60X_SDK_PATH)/image_conf; ./flash_build $(PROJECT_NAME) $(CONFIG_CHIP_NAME) endif endif @echo "Building Finish. To flash build output."