37 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# conmakehash:   Create chartable# conmakehash:	 Create arrays for initializing the kernel console tables HOST_EXTRACFLAGS += -I$(srctree)/tools/include hostprogs-$(CONFIG_BUILD_BIN2C)  += bin2chostprogs-$(CONFIG_KALLSYMS)     += kallsymshostprogs-$(CONFIG_VT)           += conmakehashhostprogs-$(BUILD_C_RECORDMCOUNT) += recordmcounthostprogs-$(CONFIG_BUILDTIME_EXTABLE_SORT) += sortextablehostprogs-$(CONFIG_ASN1)	 += asn1_compilerhostprogs-$(CONFIG_MODULE_SIG_FORMAT) += sign-filehostprogs-$(CONFIG_SYSTEM_TRUSTED_KEYRING) += extract-certhostprogs-$(CONFIG_SYSTEM_EXTRA_CERTIFICATE) += insert-sys-cert HOSTCFLAGS_sortextable.o = -I$(srctree)/tools/includeHOSTCFLAGS_asn1_compiler.o = -I$(srctree)/includeHOSTLDLIBS_sign-file = -lcryptoHOSTLDLIBS_extract-cert = -lcrypto always		:= $(hostprogs-y) $(hostprogs-m) # The following hostprogs-y programs are only build on demandhostprogs-y += unifdef subdir-$(CONFIG_GCC_PLUGINS) += gcc-pluginssubdir-$(CONFIG_MODVERSIONS) += genksymssubdir-$(CONFIG_SECURITY_SELINUX) += selinux # Let clean descend into subdirssubdir-	+= basic dtc gdb kconfig mod