diff --git a/README.md b/README.md index b0a42619..ba9819dc 100644 --- a/README.md +++ b/README.md @@ -62,12 +62,12 @@ Building requires Python (some code is generated). Download and install: - msys - http://sourceforge.net/projects/mingw/files/MSYS/Base/msys-core/msys-1.0.11/MSYS-1.0.11.exe - - Python - http://www.python.org/ftp/python/2.7/python-2.7.msi (any 2.7 release) + - Python - https://www.python.org/downloads/windows/ (any release) - arm-none-eabi/arm-elf toolchain (for example this one https://launchpad.net/gcc-arm-embedded) -Run msys shell and set the path without standard Windows paths, so Windows programs such as 'find' won't interfere: +Run msys shell and set the path without standard Windows paths (adjusting to your version of Python), so Windows programs such as 'find' won't interfere: - export PATH="/c//Python27:/c/ARMToolchain/bin:/usr/local/bin:/usr/bin:/bin" + export PATH="/c//Program Files/Python 3.9:/c/ARMToolchain/bin:/usr/local/bin:/usr/bin:/bin" After that you can navigate to the folder where you've extracted libopencm3 and build it. diff --git a/scripts/data/lpc43xx/csv2yaml.py b/scripts/data/lpc43xx/csv2yaml.py index 7b2f8c6d..f8918012 100755 --- a/scripts/data/lpc43xx/csv2yaml.py +++ b/scripts/data/lpc43xx/csv2yaml.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 import sys import yaml diff --git a/scripts/data/lpc43xx/gen.py b/scripts/data/lpc43xx/gen.py index af253ddc..286b01ec 100755 --- a/scripts/data/lpc43xx/gen.py +++ b/scripts/data/lpc43xx/gen.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 import sys import yaml diff --git a/scripts/gendoxylayout.py b/scripts/gendoxylayout.py index 24154958..5ae63ebb 100755 --- a/scripts/gendoxylayout.py +++ b/scripts/gendoxylayout.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # This python program generates parameters for the linker script generator feature. # This file is part of the libopencm3 project. diff --git a/scripts/genlink.py b/scripts/genlink.py index 96c27e08..9975b132 100755 --- a/scripts/genlink.py +++ b/scripts/genlink.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # This python program generates parameters for the linker script generator feature. # This file is part of the libopencm3 project. diff --git a/scripts/irq2nvic_h b/scripts/irq2nvic_h index 8a1c355c..dbd62018 100755 --- a/scripts/irq2nvic_h +++ b/scripts/irq2nvic_h @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # This file is part of the libopencm3 project. # diff --git a/scripts/lpcvtcksum b/scripts/lpcvtcksum index 27dc8a77..85dfe8b1 100755 --- a/scripts/lpcvtcksum +++ b/scripts/lpcvtcksum @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python2 # # Compute and insert the vector table checksum required for booting the # LPC43xx and some other NXP ARM microcontrollers.