blob: 9eace52c64dfbae6935ac58e2f550041742fa690 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001###
2# scripts contains sources for various helper programs used throughout
3# the kernel for the build process.
4# ---------------------------------------------------------------------------
5# kallsyms: Find all symbols in vmlinux
6# pnmttologo: Convert pnm files to logo files
David Woodhouse556b0f52009-01-10 14:53:15 +00007# conmakehash: Create chartable
Linus Torvalds1da177e2005-04-16 15:20:36 -07008# conmakehash: Create arrays for initializing the kernel console tables
Peter Foleybffd2022011-05-02 22:48:03 +02009# docproc: Used in Documentation/DocBook
Linus Torvalds1da177e2005-04-16 15:20:36 -070010
11hostprogs-$(CONFIG_KALLSYMS) += kallsyms
12hostprogs-$(CONFIG_LOGO) += pnmtologo
13hostprogs-$(CONFIG_VT) += conmakehash
Linus Torvalds1da177e2005-04-16 15:20:36 -070014hostprogs-$(CONFIG_IKCONFIG) += bin2c
Steven Rostedt72441cb2010-10-13 17:12:30 -040015hostprogs-$(BUILD_C_RECORDMCOUNT) += recordmcount
David Daneya79f2482012-04-19 14:59:55 -070016hostprogs-$(CONFIG_BUILDTIME_EXTABLE_SORT) += sortextable
Linus Torvalds1da177e2005-04-16 15:20:36 -070017
David Daneyd59a1682012-04-24 11:23:14 -070018HOSTCFLAGS_sortextable.o = -I$(srctree)/tools/include
19
Ross Birof2443ab2006-09-30 23:27:25 -070020always := $(hostprogs-y) $(hostprogs-m)
Linus Torvalds1da177e2005-04-16 15:20:36 -070021
Sam Ravnborg07aea3a2006-07-23 20:47:50 +020022# The following hostprogs-y programs are only build on demand
Peter Foleybffd2022011-05-02 22:48:03 +020023hostprogs-y += unifdef docproc
Sam Ravnborg07aea3a2006-07-23 20:47:50 +020024
Peter Foleybffd2022011-05-02 22:48:03 +020025# These targets are used internally to avoid "is up to date" messages
Mike Waychisone1b702c2011-03-14 23:34:25 -070026PHONY += build_unifdef
27build_unifdef: scripts/unifdef FORCE
28 @:
Peter Foleybffd2022011-05-02 22:48:03 +020029build_docproc: scripts/docproc FORCE
30 @:
Mike Waychisone1b702c2011-03-14 23:34:25 -070031
Linus Torvalds1da177e2005-04-16 15:20:36 -070032subdir-$(CONFIG_MODVERSIONS) += genksyms
Sam Ravnborg12715d22006-08-08 20:43:39 +020033subdir-y += mod
Serge E. Hallyn93c06cb2008-08-26 14:47:57 -050034subdir-$(CONFIG_SECURITY_SELINUX) += selinux
David Gibson9fffb552009-04-30 15:25:53 +100035subdir-$(CONFIG_DTC) += dtc
Linus Torvalds1da177e2005-04-16 15:20:36 -070036
37# Let clean descend into subdirs
Serge E. Hallyn93c06cb2008-08-26 14:47:57 -050038subdir- += basic kconfig package selinux