Skip to content
Snippets Groups Projects
  1. Nov 23, 2017
  2. Nov 21, 2017
  3. Nov 17, 2017
    • Masahiro Yamada's avatar
      tools: use files from scripts/dtc/libfdt where possible · b38ad663
      Masahiro Yamada authored
      
      Prior to this commit, tools/Makefile pulls all libfdt files from
      lib/libfdt.
      
      lib/libfdt/ and scripts/dtc/libfdt have the same copies for the
      followings 6 files:
        fdt.c fdt_addresses.c fdt_empty_tree.c fdt_overlay.c fdt_strerr.c
        fdt_sw.c
      
      This commit changes them to #include ones from scripts/dtc/libfdt.
      
      Unfortunately, U-Boot locally modified the following 3 files:
        fdt_ro.c fdt_wip.c fdt_rw.c
      
      I did not touch them in order to avoid unpredictable impact.
      
      The fdt_region.c is U-Boot own file.  This is also borrowed from
      lib/libfdt/.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      b38ad663
    • Masahiro Yamada's avatar
      pylibfdt: move pylibfdt to scripts/dtc/pylibfdt and refactor makefile · 15b97f5c
      Masahiro Yamada authored
      
      The pylibfdt is used by dtoc (and, indirectly by binman), but there
      is no reason why it must be generated in the tools/ directory.
      
      Recently, U-Boot switched over to the bundled DTC, and the directory
      structure under scripts/dtc/ now mirrors the upstream DTC project.
      So, scripts/dtc/pylibfdt is the best location.
      
      I also rewrote the Makefile in a cleaner Kbuild style.
      
      The scripts from the upstream have been moved as follows:
      
        lib/libfdt/pylibfdt/setup.py -> scripts/dtc/pylibfdt/setup.py
        lib/libfdt/pylibfdt/libfdt.i -> scripts/dtc/pylibfdt/libfdt.i_shipped
      
      The .i_shipped is coped to .i during building because the .i must be
      located in the objtree when we build it out of tree.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      15b97f5c
  4. Nov 06, 2017
  5. Oct 23, 2017
  6. Oct 16, 2017
  7. Oct 15, 2017
  8. Oct 07, 2017
    • Tom Rini's avatar
      cmd/gpt.c, cmd/nvedit.c, tools/fit_image.c: Rework recent fixes for Coverity · bf52fcde
      Tom Rini authored
      
      The recent changes to these files did not completely fix the previous
      issues, or introduced different (minor) issues.  In cmd/gpt.c we need to
      dereference str_disk_guid to be sure that malloc worked.  In
      cmd/nvedit.c we need to be careful that we can also fit in that leading
      space when adding to the string.  And in tools/fit_image.c we need to
      re-work the error handling slightly in fit_import_data() so that we only
      call munmap() once.  We have two error paths here, one where we have an
      fd to close and one where we do not.  Adjust labels to match this.
      
      Reported-by: Coverity (CID: 167366, 167367, 167370)
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      bf52fcde
  9. Oct 06, 2017
    • Tom Rini's avatar
      tools/fit_image.c: Update some return code paths · 3c2dff54
      Tom Rini authored
      
      Coverity has found some problems with the return paths in parts of this
      code.  We have a case where we were going to the wrong part of the
      unwind (open() failed so we cannot close the fd), a case where we were
      only free()ing our buf on the error path and finally a case where we did
      not munmap in the failure path.
      
      Reported-by: Coverity (CID: 138492, 138495, 143064)
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      3c2dff54
  10. Sep 30, 2017
  11. Sep 29, 2017
    • Ulf Magnusson's avatar
      kconfiglib: update with 'imply' support · 4e1102f6
      Ulf Magnusson authored
      Corresponds to 375506d (File writing nit) from upstream
      (https://github.com/ulfalizer/Kconfiglib
      
      ).
      
      Adds proper 'imply' support and fixes a few minor issues, one of which
      previously triggered the following weird warning:
      
        configs/taurus_defconfig: /tmp/tmpisI45S:6: warning: assignment to SPL_LDSCRIPT changes mode of containing choice from "arch/$(ARCH)/cpu/u-boot-spl.lds" to "y"
      
      The change in 8639f69a (genconfig.py: Print defconfig next to warnings)
      was reapplied.
      
      tools/moveconfig.py previously depended on a hack that merged 'select's
      with 'imply's. It was modified to look at the union of
      Symbol.get_selected_symbols() and Symbol.get_implied_symbols(), which
      should give the same behavior.
      
      tools/genboardscfg.py was verified to produce identical board.cfg's
      before and after the change.
      
      Signed-off-by: default avatarUlf Magnusson <ulfalizer@gmail.com>
      4e1102f6
  12. Sep 24, 2017
  13. Sep 16, 2017
  14. Sep 15, 2017
Loading