buildroot/boot
Yann E. MORIN 701ce0ad69 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:05 +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-09-24 21:49:37 +02:00
at91bootstrap boot/at91bootstrap: add legal information 2021-04-20 23:00:55 +02:00
at91bootstrap3 boot/at91bootstrap3: update to final 4.0.0 version 2021-08-19 22:45:14 +02:00
at91dataflashboot boot/*/Config.in: fix attributes order 2018-04-01 08:06:37 +02:00
barebox boot/barebox: bump version to 2021.10.0 2021-10-15 22:50:32 +02:00
beaglev-ddrinit boot/beaglev-ddrinit: update to c0839f25 to add LICENSE file 2021-07-13 21:18:19 +02:00
beaglev-secondboot boot/beaglev-secondboot: update to 2d200479 to add LICENSE file 2021-07-13 21:18:50 +02:00
binaries-marvell binaries-marvell: bump version and switch to common firmware 2019-09-21 18:31:26 +02:00
boot-wrapper-aarch64 boot/boot-wrapper-aarch64: bump version 2021-01-02 18:42:57 +01:00
edk2 boot/edk2: add support to build 32bit edk2 when using x86_64 architecture 2021-10-15 21:34:25 +02:00
grub2 boot/grub2/Config.in: add symbols to represent legacy and EFI boot 2021-12-04 18:04:08 +01:00
gummiboot board, boot, package: remove usage of startup.nsh in EFI partition 2021-09-27 21:27:02 +02:00
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-09-24 21:45:20 +02:00
mxs-bootlets boot/*/Config.in: fix attributes order 2018-04-01 08:06:37 +02:00
opensbi boot/opensbi: introduce BR2_TARGET_OPENSBI_FW_FDT_PATH 2021-07-18 21:24:37 +02:00
optee-os boot/optee-os: bump to version 3.15.0 2021-10-27 22:28:03 +02:00
s500-bootloader boot: add s500-bootloader package 2016-05-26 10:35:34 +02:00
shim boot/shim: re-enable on ARM32 2021-04-06 11:46:09 +02:00
sun20i-d1-spl boot/sun20i-d1-spl: new package 2021-11-08 09:45:40 +01:00
syslinux boot/syslinux: define OBJCOPY and AS 2021-11-30 17:39:58 +01:00
uboot boot/uboot: fix build with host-gcc 10+ 2022-02-27 20:22:05 +01:00
vexpress-firmware support/download: change format of archives generated from git 2021-01-10 22:06:58 +01:00
Config.in boot/sun20i-d1-spl: new package 2021-11-08 09:45:40 +01:00
common.mk Fix build reproducibility in Make 3.82 2013-09-06 23:27:42 +02:00