From dd7891931051cec336cb4cd6cf12f0bd13116b5c Mon Sep 17 00:00:00 2001 From: Madushan Nishantha Date: Sun, 1 Nov 2020 18:06:05 +0100 Subject: [PATCH] fix make on darwin --- image_conf/requirements.txt | 2 ++ make_scripts_riscv/project.mk | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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."