1. 29 Apr, 2015 2 commits
  2. 09 Jun, 2014 1 commit
  3. 21 Jan, 2014 3 commits
    • Grant Likely's avatar
      scripts/dtc: Add a script to update to mainline dtc source · c8a3e6a8
      Grant Likely authored
      A very simple script that automates pulling in a newer version of DTC.
      Not particularly robust, but a whole lot better than doing it by hand
      every time.
      Signed-off-by: default avatarGrant Likely <grant.likely@linaro.org>
      c8a3e6a8
    • Grant Likely's avatar
      scripts/dtc: Update to upstream version v1.4.0 · 73ab39b1
      Grant Likely authored
      Update to the latest version of dtc with the following notable
      enhancements and bug fixes:
      
      * fdtput: expand fdt if value does not fit
      * dtc/fdt{get, put}/convert-dtsv0-lexer: convert to new usage helpers
      * libfdt: Add fdt_next_subnode() to permit easy subnode iteration
      * utilfdt_read: pass back up the length of data read
      * util_version: new helper for displaying version info
      * die: constify format string arg
      * utilfdt_read_err: use xmalloc funcs
      * Export fdt_stringlist_contains()
      * dtc: Drop the '-S is deprecated' warning
      * dtc/libfdt: sparse fixes
      * dtc/libfdt: introduce fdt types for annotation by endian checkers
      * Fix util_is_printable_string
      * dtc: srcpos_verror() should print to stderr
      * libfdt: Added missing functions to shared library
      
      Shipped bison/flex generated files were built on an Ubuntu 13.10 system.
      Signed-off-by: default avatarGrant Likely <grant.likely@linaro.org>
      73ab39b1
    • Grant Likely's avatar
      scripts/dtc: Update shipped files to build with bison 2.7.12 · a878b910
      Grant Likely authored
      Preparation patch before updating to upstream dtc version 1.4.0. This
      change only contains the changes caused by a new version of bison
      on the shipped files. There are no functional changes.
      
      The shipped files were build on an Ubuntu 13.10 system
      Signed-off-by: default avatarGrant Likely <grant.likely@linaro.org>
      a878b910
  4. 13 Jun, 2013 2 commits
    • Grant Likely's avatar
      dtc: ensure #line directives don't consume data from the next line · 706b78f3
      Grant Likely authored
      Previously, the #line parsing regex ended with ({WS}+[0-9]+)?. The {WS}
      could match line-break characters. If the #line directive did not contain
      the optional flags field at the end, this could cause any integer data on
      the next line to be consumed as part of the #line directive parsing. This
      could cause syntax errors (i.e. #line parsing consuming the leading 0
      from a hex literal 0x1234, leaving x1234 to be parsed as cell data,
      which is a syntax error), or invalid compilation results (i.e. simply
      consuming literal 1234 as part of the #line processing, thus removing it
      from the cell data).
      
      Fix this by replacing {WS} with [ \t] so that it can't match line-breaks.
      
      Convert all instances of {WS}, even though the other instances should be
      irrelevant for any well-formed #line directive. This is done for
      consistency and ultimate safety.
      
      [Cherry picked from DTC commit a1ee6f068e1c8dbc62873645037a353d7852d5cc]
      Reported-by: default avatarIan Campbell <Ian.Campbell@citrix.com>
      Signed-off-by: Stephen Warren's avatarStephen Warren <swarren@nvidia.com>
      Acked-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
      706b78f3
    • Grant Likely's avatar
      dtc: Update generated files to output from Bison 2.5 · 2a6a08ca
      Grant Likely authored
      This patch merely updates the generated dtc parser and lexer files to
      the output generated by Bison 2.5. The previous versions were generated
      from version 2.4.1. The only reason for this commit is to minimize the
      diff on the next commit which fixes a bug in the DTC #line directive
      parsing. Otherwise the Bison changes would be intermingled with the
      functional changes.
      Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
      2a6a08ca
  5. 21 Nov, 2012 1 commit
  6. 17 Oct, 2012 1 commit
  7. 01 Oct, 2012 1 commit
  8. 24 Mar, 2012 1 commit
    • Felipe Balbi's avatar
      scripts: dtc: fix compile warnings · db7f4e3d
      Felipe Balbi authored
      Fix following compile warnings:
      
      scripts/dtc/flattree.c: In function ‘flat_read_mem_reserve’:
      scripts/dtc/flattree.c:700:14: warning: variable ‘p’ set but not used
      	[-Wunused-but-set-variable]
      
      scripts/dtc/dtc.c: In function ‘main’:
      scripts/dtc/dtc.c:104:17: warning: variable ‘check’ set but not used
      	[-Wunused-but-set-variable]
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
      db7f4e3d
  9. 14 Jan, 2012 1 commit
  10. 09 Jun, 2011 2 commits
  11. 31 Mar, 2011 1 commit
  12. 03 Jan, 2011 1 commit
  13. 02 Jul, 2010 1 commit
  14. 15 Nov, 2009 2 commits
  15. 26 Jun, 2009 1 commit
  16. 02 May, 2009 1 commit
    • David Gibson's avatar
      Move dtc and libfdt sources from arch/powerpc/boot to scripts/dtc · 9fffb55f
      David Gibson authored
      The powerpc kernel always requires an Open Firmware like device tree
      to supply device information.  On systems without OF, this comes from
      a flattened device tree blob.  This blob is usually generated by dtc,
      a tool which compiles a text description of the device tree into the
      flattened format used by the kernel.  Sometimes, the bootwrapper makes
      small changes to the pre-compiled device tree blob (e.g. filling in
      the size of RAM).  To do this it uses the libfdt library.
      
      Because these are only used on powerpc, the code for both these tools
      is included under arch/powerpc/boot (these were imported and are
      periodically updated from the upstream dtc tree).
      
      However, the microblaze architecture, currently being prepared for
      merging to mainline also uses dtc to produce device tree blobs.  A few
      other archs have also mentioned some interest in using dtc.
      Therefore, this patch moves dtc and libfdt from arch/powerpc into
      scripts, where it can be used by any architecture.
      
      The vast bulk of this patch is a literal move, the rest is adjusting
      the various Makefiles to use dtc and libfdt correctly from their new
      locations.
      Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      9fffb55f