43 lines · 1.4 KB · Makefile
RawDownload
# SPDX-License-Identifier: GPL-2.0#### scripts contains sources for various helper programs used throughout# the kernel for the build process.# ---------------------------------------------------------------------------# kallsyms:      Find all symbols in vmlinux HOST_EXTRACFLAGS += -I$(srctree)/tools/include always-$(CONFIG_BUILD_BIN2C)			+= bin2calways-$(CONFIG_KALLSYMS)			+= kallsymsalways-$(BUILD_C_RECORDMCOUNT)			+= recordmcountalways-$(CONFIG_BUILDTIME_TABLE_SORT)		+= sorttablealways-$(CONFIG_ASN1)				+= asn1_compileralways-$(CONFIG_MODULE_SIG_FORMAT)		+= sign-filealways-$(CONFIG_SYSTEM_TRUSTED_KEYRING)		+= extract-certalways-$(CONFIG_SYSTEM_EXTRA_CERTIFICATE)	+= insert-sys-cert HOSTCFLAGS_sorttable.o = -I$(srctree)/tools/includeHOSTCFLAGS_asn1_compiler.o = -I$(srctree)/includeHOSTLDLIBS_sign-file = -lcryptoHOSTLDLIBS_extract-cert = -lcrypto ifdef CONFIG_UNWINDER_ORCifeq ($(ARCH),x86_64)ARCH := x86endifHOSTCFLAGS_sorttable.o += -I$(srctree)/tools/arch/x86/includeHOSTCFLAGS_sorttable.o += -DUNWINDER_ORC_ENABLEDHOSTLDLIBS_sorttable = -lpthreadendif hostprogs := $(always-y) $(always-m) # The following programs are only built on demandhostprogs += unifdef subdir-$(CONFIG_GCC_PLUGINS) += gcc-pluginssubdir-$(CONFIG_MODVERSIONS) += genksymssubdir-$(CONFIG_SECURITY_SELINUX) += selinux # Let clean descend into subdirssubdir-	+= basic dtc gdb kconfig mod