1. 07 Jul, 2011 1 commit
  2. 04 Jul, 2011 1 commit
  3. 03 Jul, 2011 1 commit
    • Uwe Hermann's avatar
      Fix and improve Windows/MinGW/MSYS build · d5e85d67
      Uwe Hermann authored
      
       - Makefile: Use $(OS_ARCH) to add some MinGW-specific workarounds and
         settings, so that a simple "make" is sufficient on MinGW (instead of
         manual Makefile hacking).
      
       - Explicitly set CC=gcc in the Makefile, otherwise you get an error like
         "cc: command not found" on MinGW.
      
       - MinGW doesn't have ffs(), use gcc's __builtin_ffs() instead.
      
       - Add /usr/local/include and /usr/local/lib to CPPFLAGS/LDFLAGS, that's
         where libusb-win32 and libftdi stuff is usually placed on MinGW/MSYS.
      
       - Disable serprog (no sockets) and all PCI-based programmers (no libpci)
         for now. That leaves dummy, ft2232_spi, and buspirate_spi enabled on
         MinGW per default.
      
       - serial.c: Use correct type for 'tmp', both on Windows/MinGW (DWORD)
         and POSIX (ssize_t).
      
      Corresponding to flashrom svn r1363.
      Signed-off-by: default avatarUwe Hermann <uwe@hermann-uwe.de>
      Acked-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      d5e85d67
  4. 01 Jul, 2011 5 commits
  5. 26 Jun, 2011 6 commits
  6. 25 Jun, 2011 2 commits
  7. 19 Jun, 2011 4 commits
  8. 18 Jun, 2011 4 commits
  9. 17 Jun, 2011 2 commits
  10. 15 Jun, 2011 1 commit
  11. 14 Jun, 2011 1 commit
    • David Hendricks's avatar
      Use shutdown callback mechanism to shutdown programmers · 8bb2021d
      David Hendricks authored
      
      This patch attempts to resolve some programmer shutdown ordering issues
      by having the programmer init functions register shutdown callbacks explicitly
      wherever it makes most sense. Before, assumptions were made that could lead to
      the internal programmer's state changing before the external programmer could be
      shut down properly. Now, each programmer cleans up after itself and (hopefully)
      performs each operation in the correct order.
      
      As a side-effect, this patch gives us a better usage model for reverse
      operations such as rpci_* and rmmio_*. In the long-run, this should make
      reversing the initialization process easier to understand, less tedious, and
      less error-prone.
      
      In short, this patch does the following:
      - Registers a shutdown callback during initialization for each programmer.
      - Kills the .shutdown function pointer from programmer_entry struct. Also,
        make most shutdown functions static.
      - Adds a few minor clean-ups and corrections (e.g. missing physunmap() calls).
      
      TODO: Remove forward declaration of serprog_shutdown() (added to simplify diff)
      
      Corresponding to flashrom svn r1338.
      Signed-off-by: default avatarDavid Hendricks <dhendrix@google.com>
      Acked-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      8bb2021d
  12. 13 Jun, 2011 2 commits
  13. 12 Jun, 2011 2 commits
  14. 11 Jun, 2011 6 commits
  15. 09 Jun, 2011 2 commits