From f48b387dd678e8ec3d00f0f6a29601398b04fcbf Mon Sep 17 00:00:00 2001 From: Igor1101 Date: Sun, 7 Jul 2019 17:40:47 +0300 Subject: [PATCH] Changed Makefile settings to compile under Arch linux-based distributions --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index af21a78b..1425ddc3 100755 --- a/Makefile +++ b/Makefile @@ -27,6 +27,7 @@ APP?=0 SPI_SPEED?=40 SPI_MODE?=QIO SPI_SIZE_MAP?=0 +PYTHON?=python ifeq ($(BOOT), new) boot = new @@ -279,7 +280,7 @@ endif @echo "!!!" ifeq ($(app), 0) - @python ../tools/gen_appbin.py $< 0 $(mode) $(freqdiv) $(size_map) $(app) + @$(PYTHON) ../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.* @@ -289,10 +290,10 @@ ifeq ($(app), 0) @echo "eagle.irom0text.bin---->0x10000" else ifneq ($(boot), new) - @python ../tools/gen_appbin.py $< 1 $(mode) $(freqdiv) $(size_map) $(app) + @$(PYTHON) ../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) + @$(PYTHON) ../tools/gen_appbin.py $< 2 $(mode) $(freqdiv) $(size_map) $(app) ifeq ($(size_map), 6) @echo "Support boot_v1.4 and +"