1. 08 7月, 2021 30 次提交
  2. 07 7月, 2021 10 次提交
    • T
      54fb6e39
    • T
      Azure/GitLab: Move to gcc-11.1.0 and LLVM-11 · 7bb1cc3b
      Tom Rini 提交于
      - Move to gcc-11.1.0 builds from kernel.org for supported platforms and
        LLVM-11 for those tests.
      - As Heinrich has noted, the RISC-V platform specification has a profile
        OS-A for running rich operating systems like Linux and BSD. This profile
        requires 64bit and UEFI conforming to the EBBR. Only the 'embedded'
        profile may use 32bit.  Given this, drop grub for 32bit RISC-V as it no
        longer compiles with gcc-11.1 and upstream is unlikely to fix it:
        https://www.mail-archive.com/grub-devel@gnu.org/msg30736.html
      - Update to grub-2.06 release to address other issues of building with
        gcc-11.1.
      - Update to newer Xtensa (gcc-9.2.0) and ARC (gcc-10.2) toolchains
      
      Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
      Cc: Bin Meng <bmeng.cn@gmail.com>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Rick Chen <rick@andestech.com>
      Signed-off-by: NTom Rini <trini@konsulko.com>
      Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
      7bb1cc3b
    • B
      x86: Drop _X86EMU_env definition when CONFIG_BIOSEMU is used · cfa51898
      Bin Meng 提交于
      With x86 we can execute an option ROM either natively or using the
      x86 emulator (if enabled with CONFIG_BIOSEMU). Both of these share
      the _X86EMU_env variable, with the native code using it to hold
      register state during interrupt processing.
      
      At present, in 32-bit U-Boot, the variable is declared twice, once
      in common code and once in code only compiled with CONFIG_BIOSEMU.
      
      With GCC 11 this causes a 'multiple definitions' error on boards
      with CONFIG_BIOSEMU.
      
      Drop the emulator definition when CONFIG_BIOSEMU is used.
      Signed-off-by: NBin Meng <bmeng.cn@gmail.com>
      cfa51898
    • T
      bootstage: Eliminate when not enabled · cb80ff20
      Tom Rini 提交于
      When we do not have bootstage enabled, rather than include an empty
      dummy function, we just don't reference it.  This saves us space in some
      tight builds.  This also shows a few cases where show_boot_progress was
      incorrectly guarded before.
      
      Cc: Simon Glass <sjg@chromium.org>
      Signed-off-by: NTom Rini <trini@konsulko.com>
      cb80ff20
    • T
      Makefile: Disable gcc-10.0 introduced warnings · c48b7815
      Tom Rini 提交于
      Follow what the Linux Kernel does here and disable the
      'zero-length-bounds', 'array-bounds' and 'stringop-overflow' warnings
      here.
      
      This brings in commits 5c45de21a2223, 44720996e2d79 and 5a76021c2eff7
      from the Linux Kernel.
      Signed-off-by: NTom Rini <trini@konsulko.com>
      c48b7815
    • T
      pinctrl: mscc: Fix multiple definition error · 55034358
      Tom Rini 提交于
      With gcc-11 we get a multiple errors here as the declarations for
      mscc_pinctrl_ops and mscc_gpio_ops are missing an extern.
      
      CC: Gregory CLEMENT <gregory.clement@bootlin.com>
      Cc: Lars Povlsen <lars.povlsen@microchip.com>
      Cc: Horatiu Vultur <horatiu.vultur@microchip.com>
      Signed-off-by: NTom Rini <trini@konsulko.com>
      Reviewed-by: NHoratiu Vultur <horatiu.vultur@microchip.com>
      Reviewed-by: NDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
      55034358
    • T
      eb_cpu5282: Declare diplay_width / display_height as externs · 265724cb
      Tom Rini 提交于
      The board code here references the display_width / display_height
      variables set in the video driver, declare these as externs as gcc-11
      will notice and lead to a multiple definition error.
      Signed-off-by: NTom Rini <trini@konsulko.com>
      265724cb
    • T
      freescale: Drop unnecessary cpld_data_t non-typedef · 8627db79
      Tom Rini 提交于
      In some board cpld.h files the definition of the cpld_data struct
      not-quite makes a typedef for cpld_data_t.  This problem is caught with
      gcc-11 as a multiple definition error.  As there are no users of this
      non-typedef, fix this by not declaring it one to begin with.
      
      Cc: Priyanka Jain <priyanka.jain@nxp.com>
      Cc: Shengzhou Liu <Shengzhou.Liu@nxp.com>
      Signed-off-by: NTom Rini <trini@konsulko.com>
      8627db79
    • T
      ARM: mvebu: a38x: Correct mismatched bound warnings · 12e3547f
      Tom Rini 提交于
      With gcc-11 we see:
      drivers/ddr/marvell/a38x/ddr3_debug.c:672:47: error: argument 2 of type 'u32[5]' {aka 'unsigned int[5]'} with mismatched bound [-Werror=array-parameter=]
        672 | int ddr3_tip_read_adll_value(u32 dev_num, u32 pup_values[MAX_INTERFACE_NUM * MAX_BUS_NUM],
            |                                           ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      In file included from drivers/ddr/marvell/a38x/ddr3_training_ip_engine.h:10,
                       from drivers/ddr/marvell/a38x/ddr3_init.h:17,
                       from drivers/ddr/marvell/a38x/ddr3_debug.c:6:
      drivers/ddr/marvell/a38x/ddr3_training_ip_flow.h:116:47: note: previously declared as 'u32[]' {aka 'unsigned int[]'}
      
      And similar warnings.  Correct these by updating the prototype.  Remove
      the prototype for ddr3_tip_read_pup_value as it is unused.
      Signed-off-by: NTom Rini <trini@konsulko.com>
      12e3547f
    • T
      Merge tag 'u-boot-atmel-fixes-2021.10-a' of https://source.denx.de/u-boot/custodians/u-boot-atmel · 008604c3
      Tom Rini 提交于
      First set of u-boot-atmel fixes for 2021.10 cycle:
      
      This small fixes set is dedicated to fixing the onewire subsystem for
      the at91 boards which was broken since 2020.04.
      008604c3