This series converts dtc to use SPDX license tags instead of license text boilerplate. This is partly needed for importing dtc/libfdt into the Linux kernel which is moving towards all files having SPDX tags. The conversion for dtc either has to be done upstream or on import. I've followed the conventions used in the Linux kernel for the SPDX tag formatting. Primarily, this means putting the tag on the 1st line (2nd for scripts) and using '//' style comments in .c files. I have not added missing licenses on tests/* files. These are mostly the .dts files and a few scripts. Rob Rob Herring (7): dtc: Replace GPLv2 boilerplate/reference with SPDX tags libfdt: Replace GPL/BSD boilerplate/reference with SPDX tags pylibfdt: Replace dual GPLv2/BSD license boilerplate with SPDX tags tests: Replace license boilerplate with SPDX tags libfdt: Add dual GPL/BSD SPDX tags to files missing license text dtc: Add GPLv2 SPDX tags to files missing license text README.license: Update to reflect SPDX tag usage BSD-2-Clause | 32 +++++++++++++++++++++ Makefile | 1 + Makefile.convert-dtsv0 | 1 + Makefile.dtc | 1 + Makefile.utils | 1 + README.license | 10 +++---- checks.c | 17 +---------- convert-dtsv0-lexer.l | 16 +---------- data.c | 17 +---------- dtc-lexer.l | 17 +---------- dtc-parser.y | 17 +---------- dtc.c | 17 +---------- dtc.h | 17 +---------- dtdiff | 1 + fdtdump.c | 1 + fdtget.c | 16 +---------- fdtoverlay.c | 16 +---------- fdtput.c | 16 +---------- flattree.c | 17 +---------- fstree.c | 17 +---------- libfdt/Makefile.libfdt | 1 + libfdt/fdt.c | 47 +------------------------------ libfdt/fdt.h | 47 +------------------------------ libfdt/fdt_addresses.c | 47 +------------------------------ libfdt/fdt_empty_tree.c | 47 +------------------------------ libfdt/fdt_overlay.c | 47 +------------------------------ libfdt/fdt_ro.c | 47 +------------------------------ libfdt/fdt_rw.c | 47 +------------------------------ libfdt/fdt_strerror.c | 46 +----------------------------- libfdt/fdt_sw.c | 47 +------------------------------ libfdt/fdt_wip.c | 47 +------------------------------ libfdt/libfdt.h | 47 +------------------------------ libfdt/libfdt_env.h | 47 +------------------------------ libfdt/libfdt_internal.h | 47 +------------------------------ libfdt/version.lds | 1 + livetree.c | 17 +---------- pylibfdt/Makefile.pylibfdt | 1 + pylibfdt/libfdt.i | 47 +------------------------------ pylibfdt/setup.py | 1 + scripts/kup-dtc | 1 + scripts/setlocalversion | 1 + srcpos.c | 16 +---------- srcpos.h | 16 +---------- tests/add_subnode_with_nops.c | 15 +--------- tests/addr_size_cells.c | 15 +--------- tests/addr_size_cells2.c | 15 +--------- tests/appendprop1.c | 15 +--------- tests/appendprop2.c | 15 +--------- tests/appendprop_addrrange.c | 15 +--------- tests/asm_tree_dump.c | 15 +--------- tests/boot-cpuid.c | 15 +--------- tests/char_literal.c | 15 +--------- tests/check_full.c | 15 +--------- tests/check_header.c | 15 +--------- tests/check_path.c | 15 +--------- tests/del_node.c | 15 +--------- tests/del_property.c | 15 +--------- tests/dtb_reverse.c | 15 +--------- tests/dtbs_equal_ordered.c | 15 +--------- tests/dtbs_equal_unordered.c | 15 +--------- tests/dumptrees.c | 17 +---------- tests/extra-terminating-null.c | 15 +--------- tests/find_property.c | 15 +--------- tests/fs_tree1.c | 15 +--------- tests/get_alias.c | 15 +--------- tests/get_mem_rsv.c | 15 +--------- tests/get_name.c | 15 +--------- tests/get_path.c | 15 +--------- tests/get_phandle.c | 15 +--------- tests/get_prop_offset.c | 15 +--------- tests/getprop.c | 15 +--------- tests/incbin.c | 15 +--------- tests/integer-expressions.c | 15 +--------- tests/mangle-layout.c | 15 +--------- tests/move_and_save.c | 15 +--------- tests/node_check_compatible.c | 15 +--------- tests/node_offset_by_compatible.c | 15 +--------- tests/node_offset_by_phandle.c | 15 +--------- tests/node_offset_by_prop_value.c | 15 +--------- tests/nop_node.c | 15 +--------- tests/nop_property.c | 15 +--------- tests/nopulate.c | 15 +--------- tests/notfound.c | 15 +--------- tests/open_pack.c | 15 +--------- tests/overlay.c | 15 +--------- tests/overlay_bad_fixup.c | 15 +--------- tests/parent_offset.c | 15 +--------- tests/path-references.c | 15 +--------- tests/path_offset.c | 15 +--------- tests/path_offset_aliases.c | 15 +--------- tests/phandle_format.c | 15 +--------- tests/property_iterate.c | 15 +--------- tests/propname_escapes.c | 15 +--------- tests/pylibfdt_tests.py | 47 +------------------------------ tests/references.c | 15 +--------- tests/root_node.c | 15 +--------- tests/rw_oom.c | 15 +--------- tests/rw_tree1.c | 15 +--------- tests/set_name.c | 15 +--------- tests/setprop.c | 15 +--------- tests/setprop_inplace.c | 15 +--------- tests/sized_cells.c | 15 +--------- tests/string_escapes.c | 15 +--------- tests/stringlist.c | 15 +--------- tests/subnode_iterate.c | 15 +--------- tests/subnode_offset.c | 15 +--------- tests/supernode_atdepth_offset.c | 15 +--------- tests/sw_states.c | 15 +--------- tests/sw_tree1.c | 15 +--------- tests/tests.h | 15 +--------- tests/testutils.c | 15 +--------- tests/truncated_memrsv.c | 15 +--------- tests/truncated_property.c | 15 +--------- tests/truncated_string.c | 15 +--------- tests/utilfdt_test.c | 15 +--------- tests/value-labels.c | 15 +--------- treesource.c | 17 +---------- util.c | 16 +---------- util.h | 16 +---------- yamltree.c | 16 +---------- 120 files changed, 155 insertions(+), 1999 deletions(-) create mode 100644 BSD-2-Clause -- 2.20.1