1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 21da177e4SLinus Torvalds### 31da177e4SLinus Torvalds# scripts contains sources for various helper programs used throughout 41da177e4SLinus Torvalds# the kernel for the build process. 51da177e4SLinus Torvalds# --------------------------------------------------------------------------- 61da177e4SLinus Torvalds# kallsyms: Find all symbols in vmlinux 71da177e4SLinus Torvalds# pnmttologo: Convert pnm files to logo files 8556b0f58SDavid Woodhouse# conmakehash: Create chartable 91da177e4SLinus Torvalds# conmakehash: Create arrays for initializing the kernel console tables 101da177e4SLinus Torvalds 116520fe55SH. Peter AnvinHOST_EXTRACFLAGS += -I$(srctree)/tools/include 126520fe55SH. Peter Anvin 13c417fbceSMasahiro Yamadahostprogs-$(CONFIG_BUILD_BIN2C) += bin2c 141da177e4SLinus Torvaldshostprogs-$(CONFIG_KALLSYMS) += kallsyms 151da177e4SLinus Torvaldshostprogs-$(CONFIG_LOGO) += pnmtologo 161da177e4SLinus Torvaldshostprogs-$(CONFIG_VT) += conmakehash 1772441cb1SSteven Rostedthostprogs-$(BUILD_C_RECORDMCOUNT) += recordmcount 18a79f248bSDavid Daneyhostprogs-$(CONFIG_BUILDTIME_EXTABLE_SORT) += sortextable 194520c6a4SDavid Howellshostprogs-$(CONFIG_ASN1) += asn1_compiler 20770f2b98SDavid Woodhousehostprogs-$(CONFIG_MODULE_SIG) += sign-file 21770f2b98SDavid Woodhousehostprogs-$(CONFIG_SYSTEM_TRUSTED_KEYRING) += extract-cert 22c4c36105SMehmet Kayaalphostprogs-$(CONFIG_SYSTEM_EXTRA_CERTIFICATE) += insert-sys-cert 231da177e4SLinus Torvalds 24d59a1683SDavid DaneyHOSTCFLAGS_sortextable.o = -I$(srctree)/tools/include 254520c6a4SDavid HowellsHOSTCFLAGS_asn1_compiler.o = -I$(srctree)/include 268377bd2bSLaura AbbottHOSTLDLIBS_sign-file = -lcrypto 278377bd2bSLaura AbbottHOSTLDLIBS_extract-cert = -lcrypto 281da177e4SLinus Torvalds 29f2443ab6SRoss Biroalways := $(hostprogs-y) $(hostprogs-m) 301da177e4SLinus Torvalds 3107aea3a7SSam Ravnborg# The following hostprogs-y programs are only build on demand 3252b3f239SJonathan Corbethostprogs-y += unifdef 3307aea3a7SSam Ravnborg 34bffd2020SPeter Foley# These targets are used internally to avoid "is up to date" messages 3552b3f239SJonathan CorbetPHONY += build_unifdef 36bfdfaeaeSMasahiro Yamadabuild_unifdef: $(obj)/unifdef 37e1b702cfSMike Waychison @: 38e1b702cfSMike Waychison 39ce2fd53aSMasahiro Yamadasubdir-$(CONFIG_GCC_PLUGINS) += gcc-plugins 401da177e4SLinus Torvaldssubdir-$(CONFIG_MODVERSIONS) += genksyms 4193c06cbbSSerge E. Hallynsubdir-$(CONFIG_SECURITY_SELINUX) += selinux 423ee7b3faSJan Kiszkasubdir-$(CONFIG_GDB_SCRIPTS) += gdb 431da177e4SLinus Torvalds 441da177e4SLinus Torvalds# Let clean descend into subdirs 45ce2fd53aSMasahiro Yamadasubdir- += basic dtc kconfig mod package 46