Skip to content
Snippets Groups Projects
  1. Oct 26, 2011
  2. Oct 25, 2011
  3. Oct 24, 2011
  4. Oct 23, 2011
  5. Oct 21, 2011
  6. Oct 20, 2011
  7. Oct 18, 2011
  8. Oct 17, 2011
    • Simon Glass's avatar
      Move timestamp and version files into 'generated' subdir · efb2172e
      Simon Glass authored
      
      There is a rather subtle build problem where the build time stamp is not
      updated for out-of-tree builds if there exists an in-tree build which
      has a valid timestamp file. So if you do an in-tree build, then an
      out-of-tree build your timestamp will not change.
      
      The correct timestamp_autogenerated.h lives in the object tree, but it
      is not always found there. The source still lives in the source tree and
      when compiling version.h, it includes timestamp_autogenerated.h. Since
      the current directory is always searched first, this will come from the
      source tree rather than the object tree if it exists there. This affects
      dependency generation also, which means that common/cmd_version.o will not
      even be rebuilt if you have ever done an in-tree build.
      
      A similar problem exists with the version file.
      
      This change moves both files into the 'generated' subdir, which is already
      used for asm-offsets.h. Then timestamp.h and version.h are updated to
      include the files from there.
      
      There are other places where these generated files are included, but I
      cannot see why these don't just use the timestamp.h and version.h headers.
      So this change also tidies that up.
      
      I have tested this with in- and out-of-tree builds, but not SPL. I have
      looked at various other options for fixing this, including sed on the dep
      files, -I- and -include flags to gcc, but I don't think they can be made
      to work. Comments welcome.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
      efb2172e
    • Simon Glass's avatar
      Add generic gpio.h in asm-generic · 9d2cb8e8
      Simon Glass authored
      
      Since we want want to have a standard GPIO interface, this adds a definition
      for this into include/asm-generic/gpio.h.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      9d2cb8e8
    • Simon Glass's avatar
      sandbox: Add basic config file · c861fbf7
      Simon Glass authored
      
      This basic provides required features along with a basic command set.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      c861fbf7
    • Simon Glass's avatar
      sandbox: Add OS dependent layer · 7a9219c1
      Simon Glass authored
      
      We want to keep all OS-dependent code in once place, with a simple interface
      to U-Boot. For now, this is that place.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      7a9219c1
    • Simon Glass's avatar
      sandbox: Force command sections to be 4-byte aligned · 8edf844f
      Simon Glass authored
      
      By default sections are 16-byte aligned on some architectures, but the
      command name structure (struct cmd_tbl_s) does not have padding to
      16 bytes. This reduces the alignment to 4-bytes so that the command
      table can be accessed correctly on any architecture.
      
      (Note: this needs doing properly)
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      8edf844f
    • Simon Glass's avatar
      sandbox: Add compiler defines to support a 64-bit x86_64 platform · a7551a3f
      Simon Glass authored
      
      This sets __WORDSIZE to 8 correctly on 64-bit machines.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      a7551a3f
    • Simon Glass's avatar
      sandbox: Add architecture image support · 65bf1d39
      Simon Glass authored
      
      We won't actually load an image with this architecture, but we still need to
      define it.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      65bf1d39
    • Simon Glass's avatar
      sandbox: Add architecture header files · 744d9859
      Simon Glass authored
      
      This adds required header files for the sandbox architecture, and a basic
      description of what sandbox is (README.sandbox).
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      744d9859
Loading