1. 10 Jan, 2015 1 commit
    • Stefan Tauner's avatar
      Unify target OS and CPU architecture checks · b0eee9b8
      Stefan Tauner authored
      
      We do CPU architecture checks once for the makefile in arch.h and
      once for HW access abstraction in hwaccess.c. This patch unifies
      related files so that they can share the checks to improve
      maintainability and reduce the chance of inconsistencies.
      Furthermore, it refines some of the definitions, which
       - adds "support" for AARCH64 and PPC64,
       - adds big-endian handling on arm as well as LE handling on PPC64,
       - fixes compilation of internal.c on AARCH64 and PPC64.
      
      Additionally, this patch continues to unify all OS checks in
      flashrom by adding a new helper macro IS_WINDOWS.
      
      The old header file for architecture checking is renamed to platform.h
      to reflect its broader scope and all new macros are add in there.
      
      Corresponding to flashrom svn r1864.
      Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      Acked-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      b0eee9b8
  2. 25 Feb, 2012 1 commit
  3. 20 Dec, 2011 1 commit
    • Carl-Daniel Hailfinger's avatar
      Cross-compilation fixes · 33a65a06
      Carl-Daniel Hailfinger authored
      
      Switch from host OS detection to target OS detection.
      Complain about unknown target OS/architecture.
      Disable annoying format string warnings on DJGPP.
      
      Native and cross-compilation now usually just require setting CC.
      Examples:
      make CC=i586-pc-msdosdjgpp-gcc
      make CC="clang -m64"
      make CC=i686-w64-mingw32-gcc
      
      Tested for a boatload of native and cross compilation configurations.
      
      There is a new target "make libpayload" in case you don't want to
      specify all tools by hand.
      
      Corresponding to flashrom svn r1476.
      Signed-off-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      Acked-by: default avatarDavid Hendricks <dhendrix@google.com>
      33a65a06