Skip to content
Snippets Groups Projects
  1. May 22, 2019
  2. May 21, 2019
  3. Mar 08, 2019
  4. Feb 12, 2019
  5. Nov 15, 2017
    • Christopher Arndt's avatar
      py/mkenv.mk: Use $(PYTHON) consistently when calling Python tools. · 1871a924
      Christopher Arndt authored
      Rationale:
      
      * Calling Python build tool scripts from makefiles should be done
        consistently using `python </path/to/script>`, instead of relying on the
        correct she-bang line in the script [1] and the executable bit on the
        script being set. This is more platform-independent.
      * The name/path of the Python executable should always be used via the
        makefile variable `PYTHON` set in `py/mkenv.mk`. This way it can be
        easily overwritten by the user with `make PYTHON=/path/to/my/python`.
      * The Python executable name should be part of the value of the makefile
        variable, which stands for the build tool command (e.g. `MAKE_FROZEN` and
        `MPY_TOOL`), not part of the command line where it is used. If a Python
        tool is substituted by another (non-python) program, no change to the
        Makefiles is necessary, except in `py/mkenv.mk`.
      * This also solves #3369 and #1616.
      
      [1] There are systems, where even the assumption that `/usr/bin/env` always
      exists, doesn't hold true, for example on Android (where otherwise the unix
      port compiles perfectly well).
      1871a924
  6. Oct 31, 2017
  7. Oct 03, 2017
    • chrismas9's avatar
      py/{mkenv.mk,mkrules.mk}: Append .exe for Windows executable files. · 3289b9b7
      chrismas9 authored
      Building mpy-cross: this patch adds .exe to the PROG name when building
      executables for host (eg mpy-cross) on Windows.  make clean now removes
      mpy-cross.exe under Windows.
      
      Building MicroPython: this patch sets MPY_CROSS to mpy-cross.exe or
      mpy-cross so they can coexist and use cygwin or WSL without rebuilding
      mpy-cross.  The dependency in the mpy rule now uses mpy-cross.exe for
      Windows and mpy-cross for Linux.
      3289b9b7
  8. May 29, 2017
  9. May 19, 2017
  10. Nov 08, 2016
  11. Sep 17, 2016
  12. Apr 21, 2016
  13. Apr 17, 2016
  14. Oct 12, 2015
  15. Aug 29, 2015
    • Paul Sokolovsky's avatar
      py: Treat -m32 flag as part of CC, LD, etc. · 18c22faf
      Paul Sokolovsky authored
      Indeed, this flag efectively selects architecture target, and must
      consistently apply to all compiles and links, including 3rd-party
      libraries, unlike CFLAGS, which have MicroPython-specific setting.
      18c22faf
  16. Jun 07, 2014
  17. Apr 16, 2014
  18. Apr 07, 2014
  19. Jan 24, 2014
Loading