Merge tag 'kbuild-fixes-v5.11-3' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild

Pull Kbuild fixes from Masahiro Yamada:

- Fix CONFIG_TRIM_UNUSED_KSYMS build for ppc64

- Use pkg-config for scripts/sign-file.c CFLAGS

* tag 'kbuild-fixes-v5.11-3' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
scripts: set proper OpenSSL include dir also for sign-file
sparc: remove wrong comment from arch/sparc/include/asm/Kbuild
kbuild: fix CONFIG_TRIM_UNUSED_KSYMS build for ppc64

Changed files
+4 -2
arch
sparc
include
asm
scripts
-2
arch/sparc/include/asm/Kbuild
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 - # User exported sparc header files 3 - 4 2 generated-y += syscall_table_32.h 5 3 generated-y += syscall_table_64.h 6 4 generated-y += syscall_table_c32.h
+1
scripts/Makefile
··· 17 17 18 18 HOSTCFLAGS_sorttable.o = -I$(srctree)/tools/include 19 19 HOSTCFLAGS_asn1_compiler.o = -I$(srctree)/include 20 + HOSTCFLAGS_sign-file.o = $(CRYPTO_CFLAGS) 20 21 HOSTLDLIBS_sign-file = $(CRYPTO_LIBS) 21 22 HOSTCFLAGS_extract-cert.o = $(CRYPTO_CFLAGS) 22 23 HOSTLDLIBS_extract-cert = $(CRYPTO_LIBS)
+3
scripts/gen_autoksyms.sh
··· 43 43 sed 's/ko$/mod/' $modlist | 44 44 xargs -n1 sed -n -e '2{s/ /\n/g;/^$/!p;}' -- | 45 45 cat - "$ksym_wl" | 46 + # Remove the dot prefix for ppc64; symbol names with a dot (.) hold entry 47 + # point addresses. 48 + sed -e 's/^\.//' | 46 49 sort -u | 47 50 sed -e 's/\(.*\)/#define __KSYM_\1 1/' >> "$output_file" 48 51