1. 26 3月, 2021 1 次提交
    • S
      libfdt: Tidy up pylibfdt build rule · 91f414b3
      Simon Glass 提交于
      At present the build rule for pylibfdt depends on _libfdt.so but modern
      Python versions add a different suffix to the output file, resulting in
      something like _libfdt.cpython-38-x86_64-linux-gnu.so
      
      The result is that pylibfdt is rebuilt every time.
      
      Rename the file the standard name so that the rule works correctly. Also
      add libfdt.py to the dependencies, so that file is always created if
      missing.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      91f414b3
  2. 25 7月, 2020 1 次提交
    • S
      binman: Adjust pylibfdt for incremental build · 73bc9e2e
      Simon Glass 提交于
      If the pylibfdt shared-object file is detected, then Python assumes that
      the libfdt.py file exists also.
      
      Sometimes when an incremental build aborts, the shared-object file is
      built but the libfdt.py is not. The only way out at this point is to use
      'make mkproper', or similar.
      
      Fix this by removing the .so file before it is built. This seems to make
      Python rebuild everything.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
      73bc9e2e
  3. 24 7月, 2020 1 次提交
  4. 21 7月, 2020 1 次提交
    • S
      binman: Adjust pylibfdt for incremental build · 8beed3d7
      Simon Glass 提交于
      If the pylibfdt shared-object file is detected, then Python assumes that
      the libfdt.py file exists also.
      
      Sometimes when an incremental build aborts, the shared-object file is
      built but the libfdt.py is not. The only way out at this point is to use
      'make mkproper', or similar.
      
      Fix this by removing the .so file before it is built. This seems to make
      Python rebuild everything.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
      8beed3d7
  5. 05 11月, 2019 1 次提交
  6. 16 1月, 2019 1 次提交
  7. 24 5月, 2018 1 次提交
  8. 17 11月, 2017 1 次提交
    • M
      pylibfdt: move pylibfdt to scripts/dtc/pylibfdt and refactor makefile · 15b97f5c
      Masahiro Yamada 提交于
      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: NMasahiro Yamada <yamada.masahiro@socionext.com>
      15b97f5c