kumquat-buildroot/boot
Yann E. MORIN 6db9ca0c34 boot/uboot: fix build with host-gcc 10+
Some older versions of U-Boot, or custom versions (like forks for some
boards), fail to build with host-gcc 10+, because of redefined symbols:

      HOSTLD  scripts/dtc/dtc
    /usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x10): multiple definition
    of `yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here
    collect2: error: ld returned 1 exit status
    make[4]: *** [scripts/Makefile.host:106: scripts/dtc/dtc] E

Since this has been fixed in recent-ish versions, we can't use an
unconditionaly patch, so we must have a conditional patch. However, a
patch may not always apply to arbitrary U-Boot versions or forks.

Upstream just dropped that line altogether:
    018921ee79

So, we use a little sed-grep combo to do the exact same change.

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Reviewed-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Tested-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
(cherry picked from commit 3b3859cc7d)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2022-02-27 20:22:22 +01:00
..
afboot-stm32 boot/afboot-stm32: fix build with gcc 10 2020-09-10 20:26:27 +02:00
arm-trusted-firmware boot/arm-trusted-firmware: point LICENSE_FILES to correct file 2021-10-05 16:42:20 +02:00
at91bootstrap boot/at91bootstrap: add legal information 2021-04-26 14:39:57 +02:00
at91bootstrap3 boot/at91bootstrap3: fix checksum of license 2021-03-17 20:00:57 +01:00
at91dataflashboot
barebox boot/barebox, package/linux-headers: carry site-method archive format version when overriding _SOURCE 2021-01-18 22:39:14 +01:00
binaries-marvell
boot-wrapper-aarch64 boot/boot-wrapper-aarch64: bump version 2021-01-02 18:42:57 +01:00
grub2 boot/grub2: workaround breakage with -O2, -O3 build 2021-07-12 22:45:58 +02:00
gummiboot
lpc32xxcdl boot/lpc32xxcdl: switch upstream location 2020-12-29 18:11:49 +01:00
mv-ddr-marvell boot/mv-ddr-marvell: fix license file hash 2021-10-05 16:31:19 +02:00
mxs-bootlets
opensbi boot/opensbi: bump to version 0.8 2020-06-24 21:29:18 +02:00
optee-os boot/optee-os: bump to version 3.11.0 2020-10-31 22:58:17 +01:00
s500-bootloader
shim boot/shim: fix build issues with gcc 9.x 2021-04-06 13:09:25 +02:00
syslinux boot/syslinux: define OBJCOPY and AS 2021-12-12 00:05:55 +01:00
uboot boot/uboot: fix build with host-gcc 10+ 2022-02-27 20:22:22 +01:00
vexpress-firmware support/download: change format of archives generated from git 2021-01-10 22:06:58 +01:00
common.mk
Config.in