x86/build: Tuck away built-in firmware under FW_LOADER
authorLuis Chamberlain <mcgrof@kernel.org>
Thu, 21 Oct 2021 15:58:39 +0000 (08:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Oct 2021 12:14:01 +0000 (14:14 +0200)
When FW_LOADER is modular or disabled we don't use it.
Update x86 relocs to reflect that.

Reviewed-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Link: https://lore.kernel.org/r/20211021155843.1969401-7-mcgrof@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/tools/relocs.c

index 27c8220..ab3554d 100644 (file)
@@ -63,7 +63,9 @@ static const char * const sym_regex_kernel[S_NSYMTYPES] = {
        "(__parainstructions|__alt_instructions)(_end)?|"
        "(__iommu_table|__apicdrivers|__smp_locks)(_end)?|"
        "__(start|end)_pci_.*|"
+#if CONFIG_FW_LOADER_BUILTIN
        "__(start|end)_builtin_fw|"
+#endif
        "__(start|stop)___ksymtab(_gpl)?|"
        "__(start|stop)___kcrctab(_gpl)?|"
        "__(start|stop)___param|"