]> code.ossystems Code Review - openembedded-core.git/commit
kernel.bbclass: remove unnecessary dead code
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Thu, 23 Sep 2021 09:20:40 +0000 (11:20 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 26 Sep 2021 15:49:02 +0000 (16:49 +0100)
commit5d56de8cd653d2a3a7f4c104d50c14e22d412f66
treed99be7b717c2401a2a860335256de78801a034c2
parent106445b1eb74fc37e03c72a0c011541b50a16c19
kernel.bbclass: remove unnecessary dead code

The grep pattern seems to have been wrong ever since we stopped adding
the -ffile-prefix-map via a patch in commit 20aea61385e, because the
actual upstream gcc produces

  -ffile-prefix-map=<old>=<new>

and not

  -ffile-prefix-map=<old=new>

Besides, these *-prefix-map options are already used when building the
kernel due to the setting of KERNEL_CC, and the kernel build system
itself also probes for and uses at least -fmacro-prefix-map (hence
taking care of __FILE__ etc., but not necessarily things that go in
.debug_info sections).

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel.bbclass