1. 11 7月, 2019 7 次提交
  2. 08 5月, 2019 2 次提交
  3. 23 10月, 2018 1 次提交
  4. 09 10月, 2018 1 次提交
  5. 08 10月, 2018 3 次提交
    • S
      binman: Run tests concurrently · 11ae93ee
      Simon Glass 提交于
      At present the tests run one after the other using a single CPU. This is
      not very efficient. Bring in the concurrencytest module and run the tests
      concurrently, using one process for each CPU by default. A -P option
      allows this to be overridden, which is necessary for code-coverage to
      function correctly.
      
      This requires fixing a few tests which are currently not fully
      independent.
      
      At some point we might consider doing this across all pytests in U-Boot.
      There is a pytest version that supports specifying the number of processes
      to use, but it did not work for me.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      11ae93ee
    • S
      binman: Separate out testSplBssPad() · 86af511d
      Simon Glass 提交于
      At present this test runs binman twice, which means that the temporary
      files from the first run do not get cleaned up. Split this into two tests
      to fix this problem.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      86af511d
    • S
      binman: Fix up removal of temporary directories · e0e6275f
      Simon Glass 提交于
      At present 'make check' leaves some temporary directories around. Part of
      this is because we call tools.PrepareOutputDir() twice in some cases,
      without calling tools.FinaliseOutputDir() in between.
      
      Fix this.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      e0e6275f
  6. 30 9月, 2018 8 次提交
  7. 29 9月, 2018 8 次提交
    • S
      binman: Support updating all device tree files · 6ed45ba0
      Simon Glass 提交于
      Binman currently supports updating the main device tree with things like
      the position of each entry. Extend this support to SPL and TPL as well,
      since they may need (a subset of) this information.
      
      Also adjust DTB output files to have a .out extension since this seems
      clearer than having a .dtb extension with 'out' in the name somwhere.
      
      Also add a few missing comments and update the DT setup code to use
      ReadFile and WriteFile().
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      6ed45ba0
    • S
      binman: Allow control of whether a fake DT is used · 93d17413
      Simon Glass 提交于
      We use a fake device tree in tests most of the time since tests don't
      normally care about the actual data. For example, for U-Boot proper we use
      U_BOOT_DTB_DATA which is just a four-character string. This makes testing
      the image output against an expected value very easy.
      
      However in some cases, such as when the test wants to check that the DT
      output containing particular nodes, we do actually need the real DT. Add
      support for this, along with a command-line option to select 'test mode'.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      93d17413
    • S
      binman: Move state information into a new module · c55a50f5
      Simon Glass 提交于
      At present the control module has state information in it, since it is the
      primary user of this. But it is a bit odd to have entries and other
      modules importing control to obtain this information.
      
      It seems better to have a dedicated state module, which control can use as
      well. Create a new module using code from control and update other modules
      to use it.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      c55a50f5
    • S
      binman: Support building a selection of images · 0bfa7b09
      Simon Glass 提交于
      Sometimes it is useful to build only a subset of the images provided by
      the binman configuration. Add a -i option for this. It can be given
      multiple times to build several images. If the option is not given, all
      images are built.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      0bfa7b09
    • S
      binman: Tidy up the vblock entry · a326b495
      Simon Glass 提交于
      At present if there are two vblock entries an image their contents are
      written to the same file in the output directory. This prevents checking
      the contents of each separately.
      
      Fix this by adding part of the entry path to the filename, and add some
      missing comments.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      a326b495
    • S
      binman: Add x86 support for starting TPL · 35b384cb
      Simon Glass 提交于
      Sometimes we want to include TPL for x86 platforms, such as when we want
      to select between different SPL images (e.g. for Chrome OS verified boot).
      Add support for this.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      35b384cb
    • S
      binman: Generate an error when text is not provided · 0b489364
      Simon Glass 提交于
      When the value of a text entry is not provided an execption is generated
      talking about a None type. This is confusing. Add a more explanatory error
      and a test for this case.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      0b489364
    • S
      binman: Allow 'fill' entry to have a size of 0 · d178eab8
      Simon Glass 提交于
      The check for this should be for None, not 0. Fix it and add a test.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      d178eab8
  8. 28 9月, 2018 2 次提交
  9. 02 8月, 2018 8 次提交