1. 02 8月, 2018 6 次提交
    • S
      binman: Add a new 'image-pos' property · dbf6be9f
      Simon Glass 提交于
      At present each entry has an offset within its parent section. This is
      useful for figuring out how entries relate to one another. However it
      is sometimes necessary to locate an entry within an image, regardless
      of which sections it is nested inside.
      
      Add a new 'image-pos' property to provide this information. Also add
      some documentation for the -u option binman provides, which updates the
      device tree with final entry information.
      
      Since the image position is a better symbol to use for the position of
      U-Boot as obtained by SPL, update the SPL symbols to use this instead of
      offset, which might be incorrect if hierarchical sections are used.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      dbf6be9f
    • S
      binman: Enhance the map and fdt-update output · 8122f396
      Simon Glass 提交于
      At present the .map file produced for each image does not include the
      overall image size. This is useful information.
      
      Update the code to generate it in the .map file as well as the updated
      FDT. Also fix a few comments while we are here.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      8122f396
    • S
      binman: Tidy up some comments in the tests · ea6922e3
      Simon Glass 提交于
      A few lines are commented out and can be removed. Also fix return-value
      docs for _DoReadFile() and _DoReadFileDtb().
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      ea6922e3
    • S
      binman: Add comments to elf_test · b2b0df8f
      Simon Glass 提交于
      The purpose of some of the tests is not obvious from the function names.
      Add a few comments to help with understanding.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      b2b0df8f
    • S
      binman: Rename 'position' to 'offset' · 3ab9598d
      Simon Glass 提交于
      After some thought, I believe there is an unfortunate naming flaw in
      binman. Entries have a position and size, but now that we support
      hierarchical sections it is unclear whether a position should be an
      absolute position within the image, or a relative position within its
      parent section.
      
      At present 'position' actually means the relative position. This indicates
      a need for an 'image position' for code that wants to find the location of
      an entry without having to do calculations back through parents to
      discover this image position.
      
      A better name for the current 'position' or 'pos' is 'offset'. It is not
      always an absolute position, but it is always an offset from its parent
      offset.
      
      It is unfortunate to rename this concept now, 18 months after binman was
      introduced. However I believe it is the right thing to do. The impact is
      mostly limited to binman itself and a few changes to in-tree users to
      binman:
      
         tegra
         sunxi
         x86
      
      The change makes old binman definitions (e.g. downstream or out-of-tree)
      incompatible if they use the 'pos = <...>' property. Later work will
      adjust binman to generate an error when it is used.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      3ab9598d
    • S
      binman: Don't depend on dict order in ELF testOutsideFile() · 46d61a2f
      Simon Glass 提交于
      At present this test assumes that the symbols are returned in address
      order. However, objdump can list symbols in any order and dictionaries do
      not guarantee any particular order when iterating through item.
      
      Update elf.GetSymbols() to return an OrderedDict, sorted by address, to
      avoid any problems.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      46d61a2f
  2. 01 8月, 2018 10 次提交
  3. 31 7月, 2018 10 次提交
  4. 30 7月, 2018 9 次提交
  5. 28 7月, 2018 5 次提交