1. 05 1月, 2017 1 次提交
    • R
      scripts/dtc: Update to upstream version 0931cea3ba20 · 6f05afcb
      Rob Herring 提交于
      Sync to upstream dtc commit 0931cea3ba20 ("dtc: fdtdump: check fdt if
      not in scanning mode"). In particular, this pulls in dtc overlay
      support.
      
      This adds the following commits from upstream:
      
      f88865469b65 dtc: Fix memory leak in character literal parsing
      00fbb8696b66 Rename boot_info
      1ef86ad2c24f dtc: Clean up /dts-v1/ and /plugin/ handling in grammar
      e3c769aa9c16 dtc: Don't always generate __symbols__ for plugins
      c96cb3c0169e tests: Don't use -@ on plugin de/recompile tests
      66381538ce24 tests: Remove "suppression of fixups" tests
      ba765b273f0f tests: Clarify dtc overlay tests
      6ea8cd944fcd tests: More thorough tests of libfdt overlay application without dtc
      7d8ef6e1db97 tests: Correct fdt handling of overlays without fixups and base trees without symbols
      b4dc0ed8b127 tests: Fix double expansion bugs in test code
      3ea879dc0c8f tests: Split overlay tests into those with do/don't exercise dtc plugin generation
      47b4d66a2f11 tests: Test auto-alias generation on base tree, not overlay
      72e1ad811523 tests: Make overlay/plugin tests unconditional
      e7b3c3b5951b tests: Add overlay tests
      9637e3f772a9 tests: Add check_path test
      20f29d8d41f6 dtc: Plugin and fixup support
      a2c92cac53f8 dtc: Document the dynamic plugin internals
      8f70ac39801d checks: Pass boot_info instead of root node
      ea10f953878f libfdt: add missing errors to fdt_strerror()
      daa75e8fa594 libfdt: fix fdt_stringlist_search()
      e28eff5b787a libfdt: fix fdt_stringlist_count()
      ae97c7722840 tests: overlay: Rename the device tree blobs to be more explicit
      96162d2bd9cb tests: overlay: Add test suffix to the compiled blobs
      5ce8634733b7 libfdt: Add fdt_overlay_apply to the exported symbols
      804a9db90ad2 fdt: strerr: Remove spurious BADOVERLAY
      e8c3a1a493fa tests: overlay: Move back the bad fixup tests
      7a72d89d3f81 libfdt: overlay: Fix symbols and fixups nodes condition
      cabbaa972cdd libfdt: overlay: Report a bad overlay for mismatching local fixups
      deb0a5c1aeaa libfdt: Add BADPHANDLE error string
      7b7a6be9ba15 libfdt: Don't use 'index' as a local variable name
      aea8860d831e tests: Add tests cases for the overlay code
      0cdd06c5135b libfdt: Add overlay application function
      39240cc865cf libfdt: Extend the reach of FDT_ERR_BADPHANDLE
      4aa3a6f5e6d9 libfdt: Add new errors for the overlay code
      6d1832c9e64b dtc: Remove "home page" link
      45fd440a9561 Fix some typing errors in libfdt.h and livetree.c
      a59be4939c13 Merge tag 'v1.4.2'
      a34bb721caca dtc: Fix assorted problems in the testcases for the -a option
      874f40588d3e Implement the -a option to pad dtb aligned
      ec02b34c05be dtc: Makefile improvements for release uploading
      1ed45d40a137 dtc: Bump version to 1.4.2
      36fd7331fb11 libfdt: simplify fdt_del_mem_rsv()
      d877364e4a0f libfdt: Add fdt_setprop_inplace_namelen_partial
      3e9037aaad44 libfdt: Add fdt_getprop_namelen_w
      84e0e1346c68 libfdt: Add max phandle retrieval function
      d29126c90acb libfdt: Add iterator over properties
      902d0f0953d0 libfdt: Add a subnodes iterator macro
      c539075ba8ba fdtput.c: Fix memory leak.
      f79ddb83e185 fdtget.c: Fix memory leak
      1074ee54b63f convert-dtsv0-lexer.l: fix memory leak
      e24d39a024e6 fdtdump.c: make sure size_t argument to memchr is always unsigned.
      44a59713cf05 Remove unused srcpos_dump() function
      cb9241ae3453 DTC: Fix memory leak on flatname.
      1ee0ae24ea09 Simplify check field and macro names
      9d97527a8621 Remove property check functions
      2e709d158e11 Remove tree check functions
      c4cb12e193e3 Alter grammar to allow multiple /dts-v1/ tags
      d71d25d76012 Use xasprintf() in srcpos
      9dc404958e9c util: Add xasprintf portable asprintf variant
      beef80b8b55f Correct a missing space in a fdt_header cast
      68d43cec1253 Correct line lengths in libfdt.h
      b0dbceafd49a Correct space-after-tab in libfdt.h
      Signed-off-by: NRob Herring <robh@kernel.org>
      6f05afcb
  2. 23 7月, 2016 1 次提交
  3. 30 3月, 2016 1 次提交
    • R
      scripts/dtc: Update to upstream version 53bf130b1cdd · b9937347
      Rob Herring 提交于
      Sync to upstream dtc commit 53bf130b1cdd ("libfdt: simplify
      fdt_node_check_compatible()"). This adds the following commits from
      upstream:
      
      53bf130 libfdt: simplify fdt_node_check_compatible()
      c9d9121 Warn on node name unit-address presence/absence mismatch
      2e53f9d Catch unsigned 32bit overflow when parsing flattened device tree offsets
      Signed-off-by: NRob Herring <robh@kernel.org>
      b9937347
  4. 12 2月, 2016 2 次提交
    • R
      scripts/dtc: Update to upstream commit b06e55c88b9b · 91feabc2
      Rob Herring 提交于
      Sync to upstream dtc commit b06e55c88b9b ("Prevent crash on modulo by
      zero"). This adds the following commits from upstream:
      
      b06e55c Prevent crash on modulo by zero
      b433450 Fix some bugs in processing of line directives
      d728ad5 Fix crash on nul character in string escape sequence
      1ab2205 Gracefully handle bad octal literals
      1937095 Prevent crash on division by zero
      d0b3ab0 libfdt: Fix undefined behaviour in fdt_offset_ptr()
      d4c7c25 libfdt: check for potential overrun in _fdt_splice()
      f58799b libfdt: Add some missing symbols to version.lds
      af9f26d Remove duplicated -Werror in dtc Makefile
      604e61e fdt: Add functions to retrieve strings
      8702bd1 fdt: Add a function to get the index of a string
      2218387 fdt: Add a function to count strings
      554fde2 libfdt: fix comment block of fdt_get_property_namelen()
      e5e6df7 fdtdump: Fix bug printing bytestrings with negative values
      067829e Remove redundant fdtdump test code
      897a429 Move fdt_path_offset alias tests to right tests section
      2d1417c Add simple .travis.yml
      f6dbc6c guess output file format
      5e78dff guess input file format based on file content or file name
      8b927bf tests: convert `echo -n` to `printf`
      64c46b0 Fix crash with poorly defined #size-cells
      
      Cc: Grant Likely <grant.likely@linaro.org>
      Tested-by: NFrank Rowand <frank.rowand@sonymobile.com>
      Reviewed-by: NFrank Rowand <frank.rowand@sonymobile.com>
      Signed-off-by: NRob Herring <robh@kernel.org>
      91feabc2
    • F
      scripts/dtc: dtx_diff - add info to error message · 60c7f4cb
      Frank Rowand 提交于
      If kernel config options are not properly set, "make scripts" will not
      compile dtc.  Update the unable to find dtc error message to check
      the kernel config and give better advice on how to create dtc.
      
      Reword another error message to increase clarity.
      Signed-off-by: NFrank Rowand <frank.rowand@sonymobile.com>
      Signed-off-by: NRob Herring <robh@kernel.org>
      60c7f4cb
  5. 25 1月, 2016 1 次提交
  6. 30 4月, 2015 2 次提交
  7. 10 6月, 2014 1 次提交
  8. 21 1月, 2014 3 次提交
    • G
      scripts/dtc: Add a script to update to mainline dtc source · c8a3e6a8
      Grant Likely 提交于
      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: NGrant Likely <grant.likely@linaro.org>
      c8a3e6a8
    • G
      scripts/dtc: Update to upstream version v1.4.0 · 73ab39b1
      Grant Likely 提交于
      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: NGrant Likely <grant.likely@linaro.org>
      73ab39b1
    • G
      scripts/dtc: Update shipped files to build with bison 2.7.12 · a878b910
      Grant Likely 提交于
      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: NGrant Likely <grant.likely@linaro.org>
      a878b910
  9. 14 6月, 2013 2 次提交
    • G
      dtc: ensure #line directives don't consume data from the next line · 706b78f3
      Grant Likely 提交于
      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: NIan Campbell <Ian.Campbell@citrix.com>
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Acked-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      706b78f3
    • G
      dtc: Update generated files to output from Bison 2.5 · 2a6a08ca
      Grant Likely 提交于
      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: NGrant Likely <grant.likely@secretlab.ca>
      2a6a08ca
  10. 21 11月, 2012 1 次提交
  11. 18 10月, 2012 1 次提交
  12. 02 10月, 2012 1 次提交
  13. 25 3月, 2012 1 次提交
    • F
      scripts: dtc: fix compile warnings · db7f4e3d
      Felipe Balbi 提交于
      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: NFelipe Balbi <balbi@ti.com>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      db7f4e3d
  14. 15 1月, 2012 1 次提交
  15. 10 6月, 2011 2 次提交
  16. 31 3月, 2011 1 次提交
  17. 04 1月, 2011 1 次提交
  18. 02 7月, 2010 1 次提交
  19. 16 11月, 2009 2 次提交
  20. 26 6月, 2009 1 次提交
  21. 03 5月, 2009 1 次提交
    • D
      Move dtc and libfdt sources from arch/powerpc/boot to scripts/dtc · 9fffb55f
      David Gibson 提交于
      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: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      9fffb55f