diff options
| author | Rob Herring <robh@kernel.org> | 2018-02-27 18:40:38 -0500 |
|---|---|---|
| committer | Rob Herring <robh@kernel.org> | 2018-03-05 21:58:17 -0500 |
| commit | 9130ba884640328bb78aaa4840e5ddf06ccafb1c (patch) | |
| tree | 078f18589cd0b7c09f4d918f75d67644b15d2e22 /scripts/dtc/dtc.c | |
| parent | e039139be8c25145b103ab365ff1bd4a540066a3 (diff) | |
scripts/dtc: Update to upstream version v1.4.6-9-gaadd0b65c987
This adds the following commits from upstream:
aadd0b65c987 checks: centralize printing of property names in failure messages
88960e398907 checks: centralize printing of node path in check_msg
f1879e1a50eb Add limited read-only support for older (V2 and V3) device tree to libfdt.
37dea76e9700 srcpos: drop special handling of tab
65893da4aee0 libfdt: overlay: Add missing license
962a45ca034d Avoid installing pylibfdt when dependencies are missing
cd6ea1b2bea6 Makefile: Split INSTALL out into INSTALL_{PROGRAM,LIB,DATA,SCRIPT}
51b3a16338df Makefile.tests: Add LIBDL make(1) variable for portability sake
333d533a8f4d Attempt to auto-detect stat(1) being used if not given proper invocation
e54388015af1 dtc: Bump version to v1.4.6
a1fe86f380cb fdtoverlay: Switch from using alloca to malloc
c8d5472de3ff tests: Improve compatibility with other platforms
c81d389a10cc checks: add chosen node checks
e671852042a7 checks: add aliases node checks
d0c44ebe3f42 checks: check for #{size,address}-cells without child nodes
18a3d84bb802 checks: add string list check for *-names properties
8fe94fd6f19f checks: add string list check
6c5730819604 checks: add a string check for 'label' property
a384191eba09 checks: fix sound-dai phandle with arg property check
b260c4f610c0 Fix ambiguous grammar for devicetree rule
fe667e382bac tests: Add some basic tests for the pci_bridge checks
7975f6422260 Fix widespread incorrect use of strneq(), replace with new strprefixeq()
fca296445eab Add strstarts() helper function
cc392f089007 tests: Check non-matching cases for fdt_node_check_compatible()
bba26a5291c8 livetree: avoid assertion of orphan phandles with overlays
c8f8194d76cc implement strnlen for systems that need it
c8b38f65fdec libfdt: Remove leading underscores from identifiers
3b62fdaebfe5 Remove leading underscores from identifiers
2d45d1c5c65e Replace FDT_VERSION() with stringify()
2e6fe5a107b5 Fix some errors in comments
b0ae9e4b0ceb tests: Correct warning in sw_tree1.c
Commit c8b38f65fdec upstream ("libfdt: Remove leading underscores from
identifiers") changed the multiple inclusion define protection, so the
kernel's libfdt_env.h needs the corresponding update.
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'scripts/dtc/dtc.c')
| -rw-r--r-- | scripts/dtc/dtc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/dtc/dtc.c b/scripts/dtc/dtc.c index 5ed873c72ad1..c36994e6eac5 100644 --- a/scripts/dtc/dtc.c +++ b/scripts/dtc/dtc.c | |||
| @@ -59,8 +59,6 @@ static void fill_fullpaths(struct node *tree, const char *prefix) | |||
| 59 | } | 59 | } |
| 60 | 60 | ||
| 61 | /* Usage related data. */ | 61 | /* Usage related data. */ |
| 62 | #define FDT_VERSION(version) _FDT_VERSION(version) | ||
| 63 | #define _FDT_VERSION(version) #version | ||
| 64 | static const char usage_synopsis[] = "dtc [options] <input file>"; | 62 | static const char usage_synopsis[] = "dtc [options] <input file>"; |
| 65 | static const char usage_short_opts[] = "qI:O:o:V:d:R:S:p:a:fb:i:H:sW:E:@Ahv"; | 63 | static const char usage_short_opts[] = "qI:O:o:V:d:R:S:p:a:fb:i:H:sW:E:@Ahv"; |
| 66 | static struct option const usage_long_opts[] = { | 64 | static struct option const usage_long_opts[] = { |
| @@ -98,7 +96,7 @@ static const char * const usage_opts_help[] = { | |||
| 98 | "\t\tdts - device tree source text\n" | 96 | "\t\tdts - device tree source text\n" |
| 99 | "\t\tdtb - device tree blob\n" | 97 | "\t\tdtb - device tree blob\n" |
| 100 | "\t\tasm - assembler source", | 98 | "\t\tasm - assembler source", |
| 101 | "\n\tBlob version to produce, defaults to "FDT_VERSION(DEFAULT_FDT_VERSION)" (for dtb and asm output)", | 99 | "\n\tBlob version to produce, defaults to "stringify(DEFAULT_FDT_VERSION)" (for dtb and asm output)", |
| 102 | "\n\tOutput dependency file", | 100 | "\n\tOutput dependency file", |
| 103 | "\n\tMake space for <number> reserve map entries (for dtb and asm output)", | 101 | "\n\tMake space for <number> reserve map entries (for dtb and asm output)", |
| 104 | "\n\tMake the blob at least <bytes> long (extra space)", | 102 | "\n\tMake the blob at least <bytes> long (extra space)", |
| @@ -319,13 +317,14 @@ int main(int argc, char *argv[]) | |||
| 319 | dti->boot_cpuid_phys = cmdline_boot_cpuid; | 317 | dti->boot_cpuid_phys = cmdline_boot_cpuid; |
| 320 | 318 | ||
| 321 | fill_fullpaths(dti->dt, ""); | 319 | fill_fullpaths(dti->dt, ""); |
| 322 | process_checks(force, dti); | ||
| 323 | 320 | ||
| 324 | /* on a plugin, generate by default */ | 321 | /* on a plugin, generate by default */ |
| 325 | if (dti->dtsflags & DTSF_PLUGIN) { | 322 | if (dti->dtsflags & DTSF_PLUGIN) { |
| 326 | generate_fixups = 1; | 323 | generate_fixups = 1; |
| 327 | } | 324 | } |
| 328 | 325 | ||
| 326 | process_checks(force, dti); | ||
| 327 | |||
| 329 | if (auto_label_aliases) | 328 | if (auto_label_aliases) |
| 330 | generate_label_tree(dti, "aliases", false); | 329 | generate_label_tree(dti, "aliases", false); |
| 331 | 330 | ||
