mirror of
https://github.com/Dasharo/coreboot.git
synced 2026-06-13 10:16:48 -07:00
It updates the target variable that is used for `clang -target`. Simply because the format was wrong. According to the documentation the format of the so called "target triple" is: <arch><sub>-<vendor>-<sys>-<env> with: arch = x86_64, i386, arm, thumb, mips, etc. sub = for ex. on ARM: v5, v6m, v7a, v7m, etc. vendor = pc, apple, nvidia, ibm, etc. (can be omitted) sys = none, linux, win32, darwin, cuda, etc. env = eabi, gnu, android, macho, elf, etc. In case of powerpc that causes an issue when trying to update clang to version 21. The target parameter for clang ends up being "powerpc64-none-unknown-linux-gnu". After testing, it turns out that in clang version 18 that is actually a valid target parameter, although not according to the documentation. In clang 21 however its not valid so fix it accordingly. Signed-off-by: Maximilian Brune <maximilian.brune@9elements.com> Change-Id: I958416e6c56459766794830fbeac57ac827ffdd9 Reviewed-on: https://review.coreboot.org/c/coreboot/+/90643 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>