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 101da177e4SLinus Torvalds 116520fe55SH. Peter AnvinHOST_EXTRACFLAGS += -I$(srctree)/tools/include 126520fe55SH. Peter Anvin 131da177e4SLinus Torvaldshostprogs-$(CONFIG_KALLSYMS) += kallsyms 141da177e4SLinus Torvaldshostprogs-$(CONFIG_LOGO) += pnmtologo 151da177e4SLinus Torvaldshostprogs-$(CONFIG_VT) += conmakehash 161da177e4SLinus Torvaldshostprogs-$(CONFIG_IKCONFIG) += bin2c 1772441cb1SSteven Rostedthostprogs-$(BUILD_C_RECORDMCOUNT) += recordmcount 18a79f248bSDavid Daneyhostprogs-$(CONFIG_BUILDTIME_EXTABLE_SORT) += sortextable 194520c6a4SDavid Howellshostprogs-$(CONFIG_ASN1) += asn1_compiler 201da177e4SLinus Torvalds 21d59a1683SDavid DaneyHOSTCFLAGS_sortextable.o = -I$(srctree)/tools/include 224520c6a4SDavid HowellsHOSTCFLAGS_asn1_compiler.o = -I$(srctree)/include 231da177e4SLinus Torvalds 24f2443ab6SRoss Biroalways := $(hostprogs-y) $(hostprogs-m) 251da177e4SLinus Torvalds 2607aea3a7SSam Ravnborg# The following hostprogs-y programs are only build on demand 27bffd2020SPeter Foleyhostprogs-y += unifdef docproc 2807aea3a7SSam Ravnborg 29bffd2020SPeter Foley# These targets are used internally to avoid "is up to date" messages 30e1b702cfSMike WaychisonPHONY += build_unifdef 31e1b702cfSMike Waychisonbuild_unifdef: scripts/unifdef FORCE 32e1b702cfSMike Waychison @: 33bffd2020SPeter Foleybuild_docproc: scripts/docproc FORCE 34bffd2020SPeter Foley @: 35e1b702cfSMike Waychison 361da177e4SLinus Torvaldssubdir-$(CONFIG_MODVERSIONS) += genksyms 3712715d20SSam Ravnborgsubdir-y += mod 3893c06cbbSSerge E. Hallynsubdir-$(CONFIG_SECURITY_SELINUX) += selinux 399fffb55fSDavid Gibsonsubdir-$(CONFIG_DTC) += dtc 401da177e4SLinus Torvalds 411da177e4SLinus Torvalds# Let clean descend into subdirs 4293c06cbbSSerge E. Hallynsubdir- += basic kconfig package selinux 43