Skip to content
Snippets Groups Projects
  1. Jun 03, 2019
  2. May 24, 2019
  3. May 07, 2019
  4. May 01, 2019
  5. Mar 26, 2019
  6. Mar 14, 2019
  7. Mar 08, 2019
  8. Aug 14, 2018
    • Paul Sokolovsky's avatar
      mpy-cross/Makefile: Also undefine MICROPY_FORCE_32BIT and CROSS_COMPILE. · ab78fe0e
      Paul Sokolovsky authored
      mpy-cross is a host, not target binary. It should not be build with the
      target compiler, compiler options and other settings. For example,
      
      If someone currently tries to build from pristine checkout the unix port
      with the following command:
      
          make CROSS_COMPILE=arm-linux-gnueabihf-
      
      then mpy-cross will be built with arm-linux-gnueabihf-gcc and of course
      won't run on the host, leading to overall build failure.
      
      This situation was worked around for some options in 1d8c3f4c, so add
      MICROPY_FORCE_32BIT and CROSS_COMPILE to that set too.
      ab78fe0e
  9. Jul 10, 2018
    • Damien George's avatar
      mpy-cross: Make build independent of extmod directory. · ee40d170
      Damien George authored
      mpy-cross doesn't depend on any code in the extmod directory so completely
      exclude it from the build (extmod may still be scanned for qstrs but that
      is controlled by py/py.mk).  This speeds up the build a little, and
      improves abstraction of this component.
      
      Also, make -I$(BUILD) take precedence over -I$(TOP) in case there are stray
      files in the root directory that would be picked up.
      ee40d170
  10. Oct 04, 2017
    • Damien George's avatar
      all: Remove inclusion of internal py header files. · a3dc1b19
      Damien George authored
      Header files that are considered internal to the py core and should not
      normally be included directly are:
          py/nlr.h - internal nlr configuration and declarations
          py/bc0.h - contains bytecode macro definitions
          py/runtime0.h - contains basic runtime enums
      
      Instead, the top-level header files to include are one of:
          py/obj.h - includes runtime0.h and defines everything to use the
              mp_obj_t type
          py/runtime.h - includes mpstate.h and hence nlr.h, obj.h, runtime0.h,
              and defines everything to use the general runtime support functions
      
      Additional, specific headers (eg py/objlist.h) can be included if needed.
      a3dc1b19
  11. Sep 06, 2017
  12. Aug 11, 2017
  13. Jul 31, 2017
  14. Jul 24, 2017
  15. Jul 19, 2017
  16. May 26, 2017
  17. May 11, 2017
  18. May 03, 2017
    • stijn's avatar
      mpy-cross: Fix compiler detection for including windows/fmode.c · 5b57ae98
      stijn authored
      fmode.c should only be included for builds targetting 'pure' windows, i.e.
      msvc or mingw builds but not when using msys or cygwin's gcc (see #2298).
      Just checking if the OS is windows and UNAME doesn't have msys stil leaves
      the gate open for builds with cygwin's gcc since UNAME there is e.g.
      CYGWIN_NT-6.1-WOW.
      Fix this by checking for 'mingw' explicitly in the compiler version; both
      gcc and clang have the -dumpmachine flag so the check should be ok for
      all platforms.
      5b57ae98
  19. Apr 22, 2017
  20. Apr 01, 2017
  21. Mar 23, 2017
  22. Mar 14, 2017
  23. Nov 16, 2016
  24. Sep 05, 2016
  25. Aug 15, 2016
  26. Jul 30, 2016
    • stijn's avatar
      mpy-cross: Fix mingw and msys2 compilation · 37b143ce
      stijn authored
      When compiling with msys2's gcc there's no need to apply the binary fmode
      so adjust the Makefile to reflect that.
      When compiling with mingw we need to include malloc.h since there is no
      alloca.h, and the 64bit detection in mpconfigport.h needs some adjustment.
      37b143ce
  27. Jul 22, 2016
  28. Jul 11, 2016
  29. Jun 28, 2016
  30. May 23, 2016
    • Damien George's avatar
      mpy-cross: Add -s option to specify the embedded source filename. · 74fb4e79
      Damien George authored
      .mpy files contain the name of the source file that they were compiled
      from.  This patch adds a way to change this name to an arbitrary string,
      specified on the command line with the -s option.  The default is to use
      the full name of the input filename.
      
      This new -s option is useful to strip off a leading directory name so
      that mpy-tool.py can freeze packages.
      74fb4e79
  31. Mar 09, 2016
  32. Mar 02, 2016
  33. Feb 25, 2016
Loading