1. 11 Nov, 2016 1 commit
    • Bernhard Nortmann's avatar
      fexc: Default unquoted values to string type · 2e6697b2
      Bernhard Nortmann authored
      
      
      Vendor-provided .fex files have repeatedly shown key-value pairs
      (assignments) where the value is an identifier-style string *not*
      surrounded by double quotes. The corresponding .bin files confirm
      that such values end up as "string" type entries.
      
      So far, our .fex parser has choked on these values. The commit
      changes this behavior and treats them as strings now, to allow
      processing 'original' .fex without adjustments.
      Signed-off-by: default avatarBernhard Nortmann <bernhard.nortmann@web.de>
      2e6697b2
  2. 10 Nov, 2016 2 commits
    • Bernhard Nortmann's avatar
      fexc: Convert version[0] header field to filesize · 2a4af4f5
      Bernhard Nortmann authored
      
      
      Vendor-provided .bin files have repeatedly demonstrated that our
      previous interpretation of this field as version[0] is likely
      wrong. Instead, it seems to represent the file size (in bytes)
      of the .bin file.
      
      This commit fixes both decompilation (and header checks) and
      generation of .bin files, where it will now store the size to
      this field.
      
      TODO: It's unclear whether the 'filesize' needs some specific
      alignment (and the .bin corresponding padding). A value of
      34864 (0x8830) has already been observed, so any possible
      alignment is expected not to exceed 16 bytes (0x10). (Currently
      our .bin generator doesn't care about any specific alignment.)
      Signed-off-by: default avatarBernhard Nortmann <bernhard.nortmann@web.de>
      2a4af4f5
    • Bernhard Nortmann's avatar
      Makefile: Modify default CFLAGS · bf735b2c
      Bernhard Nortmann authored
      
      
      This removes the "-g -O0" default (to leave them up to the user
      CFLAGS), and adds a switch to ignore "unused result" warnings.
      The latter is relevant when trying to compile nand-part.c with
      optimizations enabled.
      Signed-off-by: default avatarBernhard Nortmann <bernhard.nortmann@web.de>
      bf735b2c
  3. 09 Nov, 2016 1 commit
  4. 06 Nov, 2016 1 commit
    • Bernhard Nortmann's avatar
      Makefile: Revert sunxi-pio change from 209633ab · 6cd51fe5
      Bernhard Nortmann authored
      
      
      The previous commit had introduced a new build rule that made
      sunxi-pio always (cross-)compile as part of TARGET_TOOLS. This
      originated from a misunderstanding, and is wrong - sunxi-pio
      should be part of TOOLS instead.
      
      sunxi-pio is a "dual mode" utility. When run natively on a sunxi
      SoC, it can mmap() and manipulate the PIO registers directly. But
      it also supports file-based operation, to be used in conjunction
      with sunxi-fel (after uploading fel-pio.bin thunk code). This
      should work over USB from non-sunxi hosts, and thus puts sunxi-pio
      in the TOOLS category. See the fel-gpio shell script for details.
      Signed-off-by: default avatarBernhard Nortmann <bernhard.nortmann@web.de>
      6cd51fe5
  5. 03 Nov, 2016 2 commits
  6. 29 Oct, 2016 7 commits
  7. 28 Oct, 2016 2 commits
  8. 27 Oct, 2016 1 commit
    • Bernhard Nortmann's avatar
      Makefile: Adjust default targets for "make" and "make install" · 5244e88f
      Bernhard Nortmann authored
      
      
      Fixing the (currently erroneous) compilation of sunxi-pio will
      cause "make target-tools" to require a suitable cross-compiler
      installed. Otherwise "make target-tools" fails to build.
      As that is part of our default target ("make all"), we might
      possibly introduce a build breakage on quite a few systems.
      
      Avoid this situation by redefining "make tools" as the default,
      and change "make install" to "make install-tools", i.e. limit
      the standard targets to those builds that only rely on the host
      toolchain. From now, if you actually want to include the cross-
      compiling steps, use "make all" or "make install-all" instead.
      Signed-off-by: default avatarBernhard Nortmann <bernhard.nortmann@web.de>
      5244e88f
  9. 26 Oct, 2016 7 commits
  10. 25 Oct, 2016 4 commits
  11. 24 Oct, 2016 3 commits
  12. 22 Oct, 2016 3 commits
  13. 21 Oct, 2016 1 commit
    • Bernhard Nortmann's avatar
      Add support for auto-updated version information · 57928140
      Bernhard Nortmann authored
      
      
      The Makefile will now use a script (autoversion.sh) to update
      version.h, which in turn defines a VERSION string and gets
      included from common.h.
      
      The idea is that version.h normally receives a git-describe
      based identifier that represents the current checkout. In
      cases where git might not be available, e.g. for builds from
      a tarball, the script will instead fall back to a predefined
      version (that should reflect the most recent release tag).
      Signed-off-by: default avatarBernhard Nortmann <bernhard.nortmann@web.de>
      57928140
  14. 05 Oct, 2016 1 commit
  15. 01 Oct, 2016 1 commit
  16. 06 Jun, 2016 3 commits