uboot-zynq: fix dtc compilation on host gcc 10
authorLuis Araneda <luaraneda@gmail.com>
Sun, 2 Aug 2020 23:34:42 +0000 (19:34 -0400)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 13 Sep 2021 11:06:02 +0000 (13:06 +0200)
commit556d165ddae58ec6507bafc72642276361a42b43
tree1eb4b9a9d24cea5e04af53a8c345ac779c524f13
parentf33dc315cbdbdc38c718ed5cfb7bd06be6490225
uboot-zynq: fix dtc compilation on host gcc 10

gcc 10 defaults to -fno-common, which causes an error
when linking.

Back-port the following Linux kernel commit to fix it:
e33a814e772c (scripts/dtc: Remove redundant YYLOC global declaration)

Tested on an Arch Linux host with gcc 10.1.0

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
(cherry picked from commit 8b870418f18d86761247633e57560ffa1c2485d0)
package/boot/uboot-zynq/patches/010-fix_dtc_compilation_on_host_gcc10.patch [new file with mode: 0644]