Skip to content
Snippets Groups Projects
  1. Jan 13, 2022
    • Simon Glass's avatar
      bloblist: Add functions to obtain base address and size · e50a24a0
      Simon Glass authored
      
      Add a few convenience functions to obtain useful information about the
      bloblist.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      e50a24a0
    • Simon Glass's avatar
      bloblist: Use explicit numbering for the tags · f16ec777
      Simon Glass authored
      
      At present if someone adds a tag in the middle of the list it works well
      enough within a U-Boot build. But if these tags are used in another
      project, or with an older version of SPL, the numbers make become
      inconsistent.
      
      Use explicit tag numbers that never change, to resolve this problem.
      Allocate areas for existing U-Boot tags and set up an area for use by
      projects and vendors, as well as for private use. Keep tags above
      0x10000 unallocated for now.
      
      Update bloblist_tag_name() and the tests to work with this new setup.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      f16ec777
    • Simon Glass's avatar
      bloblist: Drop unused tags · f9abc1ca
      Simon Glass authored
      
      The EC event log tag is no-longer used. The vboot handoff is now handled
      by the vboot context instead.
      
      Drop these unused tags.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      f9abc1ca
    • Simon Glass's avatar
      bloblist: Put the magic number first · ff3bd498
      Simon Glass authored
      
      It seems best to put the magic number right at the start of the bloblist
      header, so it is easier to check. This is how devicetree works.
      
      Make this change now, before other projects make use of bloblist. Other
      changes may be needed / discussed, but that is TBD.
      
      Add a checker function as well.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      ff3bd498
  2. Sep 16, 2021
  3. Jul 21, 2021
  4. Mar 12, 2021
  5. Feb 02, 2021
    • Simon Glass's avatar
      common: Drop asm/global_data.h from common header · 401d1c4f
      Simon Glass authored and Tom Rini's avatar Tom Rini committed
      
      Move this out of the common header and include it only where needed.  In
      a number of cases this requires adding "struct udevice;" to avoid adding
      another large header or in other cases replacing / adding missing header
      files that had been pulled in, very indirectly.   Finally, we have a few
      cases where we did not need to include <asm/global_data.h> at all, so
      remove that include.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      401d1c4f
  6. Jan 27, 2021
  7. Jan 16, 2021
  8. Oct 06, 2020
  9. May 18, 2020
    • Simon Glass's avatar
      command: Remove the cmd_tbl_t typedef · 09140113
      Simon Glass authored and Tom Rini's avatar Tom Rini committed
      
      We should not use typedefs in U-Boot. They cannot be used as forward
      declarations which means that header files must include the full header to
      access them.
      
      Drop the typedef and rename the struct to remove the _s suffix which is
      now not useful.
      
      This requires quite a few header-file additions.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      09140113
  10. Feb 06, 2020
  11. Jan 07, 2020
    • Philippe Reynes's avatar
      cmd_ut: add a parameter prefix to the function cmd_ut_category · 4ad4edfe
      Philippe Reynes authored and Tom Rini's avatar Tom Rini committed
      
      There is black magic in the file conftest.py that list
      all the test unit. Then, all those test unit are called
      in pytest. This call is done with the end of the name
      (for example checksum if the full name is bloblist_test_checksum).
      
      The result is that only test for dm are really executed.
      by pytest, all others tests are listed but never executed.
      
      This behaviour happens because the dm test unit only check
      the end of the name and others tests checks the full name.
      
      To fix this issue, I've added a prefix to the function
      cmd_ut_category, and this prefix is removed when looking
      for the unit test.
      
      Signed-off-by: default avatarPhilippe Reynes <philippe.reynes@softathome.com>
      Tested-by: Heinrich Schuchardt's avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      4ad4edfe
  12. Nov 26, 2018
Loading