21 Jan, 2014

3 commits

  • 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: Grant Likely

    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: Grant Likely

    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: Grant Likely

    Grant Likely
     

14 Jun, 2013

2 commits

  • 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: Ian Campbell
    Signed-off-by: Stephen Warren
    Acked-by: David Gibson
    Signed-off-by: Grant Likely

    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: Grant Likely

    Grant Likely
     

21 Nov, 2012

1 commit

  • Fix "make distclean" to clean up generated dtc files.

    Without this patch the following files are left around:
    - dtc-lexer.lex.c
    - dtc-parser.tab.c
    - dtc-parser.tab.h

    Signed-off-by: Magnus Damm
    Reviewed-by: Simon Horman
    Signed-off-by: Grant Likely

    Magnus Damm
     

18 Oct, 2012

1 commit

  • The previous definition of for_each_*() would always include the very
    first object within the list, irrespective of whether it was marked
    deleted, since the deleted flag was not checked on the first object,
    but only on any "next" object.

    Fix for_each_*() to check the deleted flag in the loop body every
    iteration to correct this.

    (upstream dtc commit 1762ab42ef77db7ab2776d0d6cba3515150f518a)

    Signed-off-by: Stephen Warren
    Signed-off-by: Rob Herring

    Stephen Warren
     

02 Oct, 2012

1 commit

  • This updates scripts/dtc to commit 317a5d9 "dtc: zero out new label
    objects" from git://git.jdl.com/software/dtc.git.

    This adds features such as:
    * /bits/ syntax for cell data.
    * Math expressions within cell data.
    * The ability to delete properties or nodes.
    * Support for #line directives in the input file, which allows the use of
    cpp on *.dts.
    * -i command-line option (/include/ path)
    * -W/-E command-line options for error/warning control.
    * Removal of spew to STDOUT containing the filename being compiled.
    * Many additions to the libfdt API.

    Signed-off-by: Stephen Warren
    Acked-by: Jon Loeliger
    Signed-off-by: Rob Herring

    Stephen Warren
     

25 Mar, 2012

1 commit

  • 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: Felipe Balbi
    Signed-off-by: Michal Marek

    Felipe Balbi
     

15 Jan, 2012

1 commit


10 Jun, 2011

2 commits


31 Mar, 2011

1 commit


04 Jan, 2011

1 commit

  • Pull in recent changes from the main dtc repository. These changes
    primarily allow multiple device trees to be declared which are merged
    by dtc. This feature allows us to include a basic dts file and then
    provide more information for the specific system through the merging
    functionality.

    Changes pulled from git://git.jdl.com/software/dtc.git
    commit id: 37c0b6a0, "dtc: Add code to make diffing trees easier"

    Signed-off-by: John Bonesio
    Signed-off-by: Grant Likely

    John Bonesio
     

02 Jul, 2010

1 commit

  • during a check of the current git head of the linux kernel with the
    static code analysis tool cppcheck
    (http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Main_Page)
    the tool discovered a resource leak in linux-2.6/scripts/dtc/fstree.c.

    Please refer the attached patch, that fixes the issue.

    Fixes https://bugzilla.kernel.org/show_bug.cgi?id=15363
    Signed-off-by: Martin Ettl
    Cc: David Gibson
    Signed-off-by: Michal Marek

    Martin Ettl
     

16 Nov, 2009

2 commits


26 Jun, 2009

1 commit


03 May, 2009

1 commit

  • 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: David Gibson
    Signed-off-by: Linus Torvalds

    David Gibson