kumquat-buildroot/linux
Yann E. MORIN 9b41b54be0 linux: fix build with host-gcc 10+
Some older versions of linux, 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

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 Linux versions or forks.

Upstream just dropped that line altogether:
    https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e33a814e772cdc36436c8c188d8c42d019fda639

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
..
0001-timeconst.pl-Eliminate-Perl-warning.patch.conditional linux: add conditional patch for timeconst.pl 2016-02-10 08:12:57 +01:00
Config.ext.in package/aufs: add support for linux 5.x 2020-02-26 20:51:45 +01:00
Config.in linux: clarify BR2_LINUX_KERNEL_CUSTOM_DTS_PATH description 2022-02-03 21:44:43 +01:00
linux-ext-aufs.mk linux/linux-ext-*.mk: fit file header into one line 2018-04-01 08:43:07 +02:00
linux-ext-ev3dev-linux-drivers.mk linux/linux-ext-*.mk: fit file header into one line 2018-04-01 08:43:07 +02:00
linux-ext-fbtft.mk linux/linux-ext-*.mk: fit file header into one line 2018-04-01 08:43:07 +02:00
linux-ext-rtai.mk linux/linux*.mk: fix code style 2018-04-01 08:43:42 +02:00
linux-ext-xenomai.mk linux/linux-ext-xenomai: add check-package exclusion comment 2019-06-08 22:59:32 +02:00
linux.hash {linux, linux-headers}: bump 4.{4, 9, 14, 19}.x / 5.{4, 10, 15}.x series 2022-01-11 19:28:47 +01:00
linux.mk linux: fix build with host-gcc 10+ 2022-02-12 21:38:18 +01:00