Closed cmisztur closed 6 years ago
So removing esp32/frozen folder gets further:
Creating build/WIPY/release/frozen_mpy.c
CC main.c
CC mptask.c
usage: mpy-tool.py [-h] [-d] [-f] [-q QSTR_HEADER]
[-mlongint-impl {none,longlong,mpz}] [-mmpz-dig-size N]
files [files ...]
mpy-tool.py: error: too few arguments
make: *** [../py/mkrules.mk:152: build/WIPY/release/frozen_mpy.c] Error 2
make: *** Deleting file 'build/WIPY/release/frozen_mpy.c'
make: *** Waiting for unfinished jobs....
I guess I will look through py/mkrules.mk now.
Ok, this works. That was simple.
diff --git a/py/mkrules.mk b/py/mkrules.mk
index 633b0df..b9b235c 100644
--- a/py/mkrules.mk
+++ b/py/mkrules.mk
@@ -115,6 +115,13 @@ FROZEN_MPY_PY_FILES += $(shell find -L $(FROZEN_MPY_DIR)/Common/ -type f -name '
ifeq ($(BOARD), $(filter $(BOARD), GPY FIPY))
FROZEN_MPY_PY_FILES += $(shell find -L $(FROZEN_MPY_DIR)/LTE/ -type f -name '*.py' | $(SED) -e 's/$(FROZEN_MPY_DIR)\/LTE\///')
endif
+else ifeq ($(findstring MINGW32,$(OS_NAME)),MINGW32)
+# make a list of all the .py files that need compiling and freezing
+FROZEN_MPY_PY_FILES := $(shell find -L $(FROZEN_MPY_DIR)/Base/ -type f -name '*.py' | $(SED) -e 's/$(FROZEN_MPY_DIR)\/Base\///')
+FROZEN_MPY_PY_FILES += $(shell find -L $(FROZEN_MPY_DIR)/Common/ -type f -name '*.py' | $(SED) -e 's/$(FROZEN_MPY_DIR)\/Common\///')
+ifeq ($(BOARD), $(filter $(BOARD), GPY FIPY))
+FROZEN_MPY_PY_FILES += $(shell find -L $(FROZEN_MPY_DIR)/LTE/ -type f -name '*.py' | $(SED) -e 's/$(FROZEN_MPY_DIR)\/LTE\///')
+endif
else
# make a list of all the .py files that need compiling and freezing
FROZEN_MPY_PY_FILES := $(shell find -L $(FROZEN_MPY_DIR)/Base/ -type f -name '*.py' | $(SED) -e 's=^$(FROZEN_MPY_DIR)\/Base\//==')
Hi, I am facing the same issue now. But not quite understand how you solve this, could you please elaborate more on this? Thanks
Hello. I am trying to build firmware from source and make TARGET=app does not compile with following error. Hopefully it's something silly due to my unfamiliarity with the environment. There is no additional Python code in frozen.
I have followed these instructions to setup the build environment on Windows 10:
https://docs.espressif.com/projects/esp-idf/en/latest/get-started/ I am able to build vanilla esp-idf hello_world example.
https://github.com/pycom/pycom-micropython-sigfox I did not download the listed xtensa gcc compiler since one already exists from step 1.
output of mpy-cross:
output of boot target:
Thanks Chris