I'm on Fedora 31, which has sort of "retired" python 2 in favor of 3. I had to make the following changes in order for ./build.sh to get past some "missing parentheses" errors:
modified Makefile
@@ -281,7 +281,7 @@ endif
@echo "!!!"
ifeq ($(app), 0)
- @python ../tools/gen_appbin.py $< 0 $(mode) $(freqdiv) $(size_map) $(app)
+ @python2 ../tools/gen_appbin.py $< 0 $(mode) $(freqdiv) $(size_map) $(app)
@mv eagle.app.flash.bin ../bin/eagle.flash.bin
@mv eagle.app.v6.irom0text.bin ../bin/eagle.irom0text.bin
@rm eagle.app.v6.*
@@ -291,10 +291,10 @@ ifeq ($(app), 0)
@echo "eagle.irom0text.bin---->0x10000"
else
ifneq ($(boot), new)
- @python ../tools/gen_appbin.py $< 1 $(mode) $(freqdiv) $(size_map) $(app)
+ @python2 ../tools/gen_appbin.py $< 1 $(mode) $(freqdiv) $(size_map) $(app)
@echo "Support boot_v1.1 and +"
else
- @python ../tools/gen_appbin.py $< 2 $(mode) $(freqdiv) $(size_map) $(app)
+ @python2 ../tools/gen_appbin.py $< 2 $(mode) $(freqdiv) $(size_map) $(app)
ifeq ($(size_map), 6)
@echo "Support boot_v1.4 and +"
If acceptable, I'm happy to submit a PR. Other than that tiny issue, everything else worked like a charm, thanks!
I'm on Fedora 31, which has sort of "retired" python 2 in favor of 3. I had to make the following changes in order for
./build.shto get past some "missing parentheses" errors:If acceptable, I'm happy to submit a PR. Other than that tiny issue, everything else worked like a charm, thanks!