buildroot/boot/uboot
Yann E. MORIN 3b3859cc7d 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>
2022-02-12 21:38:18 +01:00
..
2015.07 u-boot: 2015.07 - fix creation of .config 2015-08-30 22:40:35 +02:00
2016.07 u-boot: Fix building for ARC700 2016-09-25 23:24:27 +02:00
2016.09.01 u-boot: Fix building for ARC700 2016-09-25 23:24:27 +02:00
Config.in boot/uboot: drop host-python2 support 2022-02-11 20:07:51 +01:00
uboot.hash boot/uboot: bump to version 2022.01 2022-01-11 22:01:58 +01:00
uboot.mk boot/uboot: fix build with host-gcc 10+ 2022-02-12 21:38:18 +01:00