11da177e4SLinus Torvalds### 21da177e4SLinus Torvalds# scripts contains sources for various helper programs used throughout 31da177e4SLinus Torvalds# the kernel for the build process. 41da177e4SLinus Torvalds# --------------------------------------------------------------------------- 51da177e4SLinus Torvalds# kallsyms: Find all symbols in vmlinux 61da177e4SLinus Torvalds# pnmttologo: Convert pnm files to logo files 7556b0f58SDavid Woodhouse# conmakehash: Create chartable 81da177e4SLinus Torvalds# conmakehash: Create arrays for initializing the kernel console tables 9bffd2020SPeter Foley# docproc: Used in Documentation/DocBook 10*b479bfd0SBen Hutchings# check-lc_ctype: Used in Documentation/DocBook 111da177e4SLinus Torvalds 126520fe55SH. Peter AnvinHOST_EXTRACFLAGS += -I$(srctree)/tools/include 136520fe55SH. Peter Anvin 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 221da177e4SLinus Torvalds 23d59a1683SDavid DaneyHOSTCFLAGS_sortextable.o = -I$(srctree)/tools/include 244520c6a4SDavid HowellsHOSTCFLAGS_asn1_compiler.o = -I$(srctree)/include 253f1e1beaSDavid HowellsHOSTLOADLIBES_sign-file = -lcrypto 261329e8ccSDavid WoodhouseHOSTLOADLIBES_extract-cert = -lcrypto 271da177e4SLinus Torvalds 28f2443ab6SRoss Biroalways := $(hostprogs-y) $(hostprogs-m) 291da177e4SLinus Torvalds 3007aea3a7SSam Ravnborg# The following hostprogs-y programs are only build on demand 31*b479bfd0SBen Hutchingshostprogs-y += unifdef docproc check-lc_ctype 3207aea3a7SSam Ravnborg 33bffd2020SPeter Foley# These targets are used internally to avoid "is up to date" messages 34*b479bfd0SBen HutchingsPHONY += build_unifdef build_docproc build_check-lc_ctype 35bfdfaeaeSMasahiro Yamadabuild_unifdef: $(obj)/unifdef 36e1b702cfSMike Waychison @: 37bfdfaeaeSMasahiro Yamadabuild_docproc: $(obj)/docproc 38bffd2020SPeter Foley @: 39*b479bfd0SBen Hutchingsbuild_check-lc_ctype: $(obj)/check-lc_ctype 40*b479bfd0SBen Hutchings @: 41e1b702cfSMike Waychison 421da177e4SLinus Torvaldssubdir-$(CONFIG_MODVERSIONS) += genksyms 4312715d20SSam Ravnborgsubdir-y += mod 4493c06cbbSSerge E. Hallynsubdir-$(CONFIG_SECURITY_SELINUX) += selinux 459fffb55fSDavid Gibsonsubdir-$(CONFIG_DTC) += dtc 463ee7b3faSJan Kiszkasubdir-$(CONFIG_GDB_SCRIPTS) += gdb 471da177e4SLinus Torvalds 481da177e4SLinus Torvalds# Let clean descend into subdirs 49c43cecadSMasahiro Yamadasubdir- += basic kconfig package 50