1. 11 6月, 2019 29 次提交
  2. 08 6月, 2019 2 次提交
  3. 07 6月, 2019 6 次提交
    • S
      spl: add overall SPL size check · 2577015d
      Simon Goldschmidt 提交于
      This adds a size check for SPL that can dynamically check generated
      SPL binaries (including devicetree) for a size limit that ensures
      this image plus global data, heap and stack fit in initial SRAM.
      
      Since some of these sizes are not available to make, a new host tool
      'spl_size_limit' is added that dumps the resulting maximum size for
      an SPL binary to stdout. This tool is used in toplevel Makefile to
      implement the size check on SPL binaries.
      Signed-off-by: NSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
      2577015d
    • H
      configs: rk3288: Tinker Board SPL file must fit into 32 KiB · dfe252b1
      Heinrich Schuchardt 提交于
      The SPL image for the Tinker Board has to fit into 32 KiB. This includes
      up to 2 KiB for the file header.
      Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
      dfe252b1
    • H
      configs: define CONFIG_SPL_SIZE_LIMIT · 0a0f2314
      Heinrich Schuchardt 提交于
      A new configuration variable CONFIG_SPL_SIZE_LIMIT is introduced to define
      the board specific maximum size for the SPL file.
      
      Use Makefile function size_check() to implement the test.
      
      Depending on the size of CONFIG_SPL_SIZE_LIMIT an error like the following
      is thrown:
      
      spl/u-boot-spl.bin exceeds file size limit:
        limit:  30720 bytes
        actual: 33426 bytes
        excess: 2706 bytes
      make: *** [Makefile:1663: spl/u-boot-spl.bin] Error 1
      Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
      0a0f2314
    • H
      imx: move BOARD_SIZE_CHECK to main Makefile · 219dee7e
      Heinrich Schuchardt 提交于
      We currently have duplicate definitions for BOARD_SIZE_CHECK in Makefile
      and arch/arm/mach-imx/Makefile.
      
      Move the board size check from arch/arm/mach-imx/Makefile to Makefile.
      
      Depending on the value of CONFIG_BOARD_SIZE_LIMIT an error like an error
      like the following is thrown:
      
      u-boot-dtb.imx exceeds file size limit:
        limit:  503696 bytes
        actual: 509720 bytes
        excess: 6024 bytes
      make: *** [Makefile:1051: u-boot-dtb.imx] Error 1
      Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
      Reviewed-by: NFabio Estevam <festevam@gmail.com>
      219dee7e
    • H
      Makefile: reusable function for BOARD_SIZE_CHECK · b275030e
      Heinrich Schuchardt 提交于
      Carve out function size_check from macro BOARD_SIZE_CHECK. This will allow
      us to reuse the function for other file size checks.
      
      Depending on the value of CONFIG_BOARD_SIZE_LIMIT an error like the
      following is thrown:
      
      u-boot-dtb.img exceeds file size limit:
        limit:  409516 bytes
        actual: 444346 bytes
        excess: 34830 bytes
      make: *** [Makefile:1212: u-boot-dtb.img] Error 1
      Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
      b275030e
    • H
      lib/vsprintf: allow printing upper case GUIDs · 3bad256f
      Heinrich Schuchardt 提交于
      In the UEFI context GUIDs are expected to be rendered in upper case.
      
      The patch uses the formerly unused bit 1 of the parameter str_format
      of function uuid_bin_to_str() to indicate if we need upper or lower case
      output.
      
      Function uuid_string() in vsprint.c is adjusted to correctly set the bit
      depending on the print format code.
      
      %pUb: 01020304-0506-0708-090a-0b0c0d0e0f10
      %pUB: 01020304-0506-0708-090A-0B0C0D0E0F10
      %pUl: 04030201-0605-0807-090a-0b0c0d0e0f10
      %pUL: 04030201-0605-0807-090A-0B0C0D0E0F10
      
      Up to this point only a diagnostic message in mount_ubifs() using '%pUB' is
      concerned by the change. Further patches are needed to adjust the UEFI
      subsystem.
      
      A unit test is provided inside the ut_print command.
      Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
      3bad256f
  4. 06 6月, 2019 3 次提交