1. 01 9月, 2014 1 次提交
    • G
      tools/building: remove the use of startupinfo · 51c4a3ae
      Grissiom 提交于
      The startupinfo does not have any visible effects on the building
      process and some old Python version does not have it at all. So remove
      it for the seek of simple.
      
      Tested `scons -j4` in a dual core virtual machine.
      51c4a3ae
  2. 09 6月, 2014 1 次提交
  3. 24 5月, 2014 1 次提交
    • G
      Scons: fix the Win32Spawn · 66ac9821
      Grissiom 提交于
      Windows(tm) CreateProcess does not use the env passed to it to find the
      executables. So we have to modify our own PATH to make Popen work. Also,
      detect the cmd build-in commands and execute it directly.
      
      Tested on MDK toolchain on RB4088 and the MSVS toolchain on simulator
      BSP.
      66ac9821
  4. 10 4月, 2014 2 次提交
    • G
      scons: no need to set RTT_ROOT as Repository · 81b284b3
      Grissiom 提交于
      In SCons manual:
      
      =================
      In order to inform the C compiler about the repositories,  SCons will
      add appropriate -I flags to the compilation commands for each directory
      in the $CPPPATH list. So if we add the current directory to the
      construction environment $CPPPATH like so:
      
          env = Environment(CPPPATH = ['.'])
          env.Program('hello.c')
          Repository('/usr/repository1')
      
      Then re-executing SCons yields:
      
          % scons -Q
          cc -o hello.o -c -I. -I/usr/repository1 hello.c
          cc -o hello hello.o
      =================
      
      The additional include directory is definitely not what we want. Just
      remove the additional Repository line.
      81b284b3
    • G
      scons: seperate the BSP build with the kernel build · a03816ef
      Grissiom 提交于
      BSPs could have their own components/ etc. If they point to the same
      folder, SCons would find the wrong source code to compile.
      a03816ef
  5. 24 3月, 2014 1 次提交
  6. 25 2月, 2014 1 次提交
  7. 23 2月, 2014 1 次提交
  8. 16 2月, 2014 1 次提交
  9. 15 2月, 2014 1 次提交
  10. 07 2月, 2014 1 次提交
  11. 01 10月, 2013 1 次提交
  12. 07 9月, 2013 1 次提交
  13. 09 8月, 2013 1 次提交
  14. 09 7月, 2013 1 次提交
    • G
      building.py: add clang static analyzer support · 34027e65
      Grissiom 提交于
      It adds the '--clang-analyzer' option that could invoke clang as the
      static code checker. It is recommanded to work with 'scan-build' shipped
      with Clang. For example, `scan-build scons --clang-analyzer`.
      34027e65
  15. 19 6月, 2013 1 次提交
    • G
      tools: add an option to generate cscope database · 3ee4a185
      Grissiom 提交于
      When --cscope option is given to Scons, it will generate a cscope
      cross-reference database in current directory, which is useful in
      Vim(and other cscope-aware text editors). For example, `scons -s
      --cscope` will do nothing except generating the database. You can use
      this option with other options together.
      
      It is inspired by the `make cscope` of Linux.
      3ee4a185
  16. 31 3月, 2013 1 次提交
  17. 01 3月, 2013 1 次提交
  18. 24 2月, 2013 1 次提交
    • G
      building.py: append messed up objs list, use extend to avoid that · c24c4f8e
      Grissiom 提交于
      The return type of SConscript is a subclass of UserList. We should use
      extend to keep the depth of the list is always 1 when concatenate
      SConscript return values. Thanks prife for making me realize that this
      is really a problem.
      
      Reported-and-Tested-by: prife
      c24c4f8e
  19. 21 2月, 2013 1 次提交
  20. 29 1月, 2013 1 次提交
  21. 19 1月, 2013 1 次提交
  22. 13 12月, 2012 1 次提交
  23. 01 12月, 2012 1 次提交
  24. 08 11月, 2012 1 次提交
  25. 05 11月, 2012 1 次提交
  26. 15 10月, 2012 1 次提交
    • C
      building.py: add RegisterPreBuildingAction · 66c5a05e
      chaos.proton@gmail.com 提交于
      One could register a callable object(normally a function) via RegisterPreBuildingAction in SConscript. It will be called when PreBuilding get invoked. PreBuilding should be called before the building procedure. It is currently used by RTGUI to generate the minimal perfect hash code when all the source files are scanned(i.e. just before building).
      
      Maybe we should invoke PreBuilding in DoBuilding.
      
      git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2353 bbd45198-f89e-11dd-88c7-29a3b14d5316
      66c5a05e
  27. 06 10月, 2012 2 次提交
  28. 05 10月, 2012 1 次提交
  29. 09 9月, 2012 1 次提交
  30. 22 8月, 2012 1 次提交
  31. 11 8月, 2012 1 次提交
  32. 01 8月, 2012 2 次提交
  33. 22 7月, 2012 1 次提交
    • C
      add "remove_components" feature · 8cf479ca
      chaos.proton@gmail.com 提交于
      If one do not want to use some components in the RTT_ROOT, it can pass a remove_components=['the_component'] parameter to PrepareBuilding. Sample code is:
      
      RTT_RTGUI = os.getenv('RTT_RTGUI')
      # if GUI dir is set to other place, don't use the one in RTT_ROOT
      if RTT_RTGUI:
          # prepare building environment
          objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False, remove_components=['rtgui'])
          objs += SConscript(os.path.join(RTT_RTGUI, 'SConscript'))
      else:
          objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
      
      You can safely omit the parameter if you do not want to remove any components.
      
      git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2227 bbd45198-f89e-11dd-88c7-29a3b14d5316
      8cf479ca
  34. 19 2月, 2012 2 次提交
  35. 17 2月, 2012 2 次提交