1. Jan 09, 2020
  2. Jan 08, 2020
    • Khem Raj's avatar
      build: Use -ffreestanding · 049ad0b3
      Khem Raj authored
      
      
      this is a stand-alone/baremetal application, therefore demanding
      -ffreestanding would help it compile with hosted toolchains e.g. ( linux
      toolchains ), it also ensures that it won't be using platform
      optimizations like inlining mem* str* functions which gcc might decide
      especially with wrapper string functions in opensbi code
      
      Signed-off-by: default avatarKhem Raj <raj.khem@gmail.com>
      Reviewed-by: default avatarAnup Patel <anup.patel@wdc.com>
      049ad0b3
  3. Jan 07, 2020
  4. Jan 02, 2020
  5. Dec 30, 2019
  6. Dec 27, 2019
  7. Dec 23, 2019
  8. Dec 16, 2019
  9. Dec 06, 2019
    • Martin Pietryka's avatar
      include: sbi_platform: fix compilation for GCC-9 · dc400423
      Martin Pietryka authored
      
      
      GCC-9 will throw a warning when using the %s format specifier with a
      possible NULL parameter and since -Werror is used, the compilation breaks
      for GCC-9.
      
      In function 'sbi_boot_prints',
          inlined from 'init_coldboot' at <redacted>/opensbi/lib/sbi/sbi_init.c:107:3,
          inlined from 'sbi_init' at <redacted>/opensbi/lib/sbi/sbi_init.c:189:3:
      <redacted>/opensbi/lib/sbi/sbi_init.c:56:2: error: '%s' directive argument is null [-Werror=format-overflow=]
         56 |  sbi_printf("Platform Name          : %s\n", sbi_platform_name(plat));
            |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      cc1: all warnings being treated as errors
      
      This is one way to fix this, currently there is nothing in the tree
      checking for `sbi_platfrom_name() == NULL` so we can just return "Unknown"
      instead of NULL on failure.
      
      Signed-off-by: default avatarMartin Pietryka <martin@pietryka.at>
      Reviewed-by: default avatarAnup Patel <anup.patel@wdc.com>
      Tested-by: default avatarDavid Abdurachmanov <david.abdurachmanov@sifive.com>
      dc400423
  10. Nov 27, 2019
  11. Nov 26, 2019
  12. Nov 21, 2019
  13. Nov 15, 2019