blob: 72902b5f27213696604f077bc8ad78e8f82d9bd0 [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
H. Peter Anvin6520fe52012-05-08 21:22:24 +030011HOST_EXTRACFLAGS += -I$(srctree)/tools/include
12
Linus Torvalds1da177e2005-04-16 15:20:36 -070013hostprogs-$(CONFIG_KALLSYMS) += kallsyms
14hostprogs-$(CONFIG_LOGO) += pnmtologo
15hostprogs-$(CONFIG_VT) += conmakehash
Steven Rostedt72441cb2010-10-13 17:12:30 -040016hostprogs-$(BUILD_C_RECORDMCOUNT) += recordmcount
David Daneya79f2482012-04-19 14:59:55 -070017hostprogs-$(CONFIG_BUILDTIME_EXTABLE_SORT) += sortextable
David Howells4520c6a2012-09-21 23:31:13 +010018hostprogs-$(CONFIG_ASN1) += asn1_compiler
Linus Torvalds1da177e2005-04-16 15:20:36 -070019
David Daneyd59a1682012-04-24 11:23:14 -070020HOSTCFLAGS_sortextable.o = -I$(srctree)/tools/include
David Howells4520c6a2012-09-21 23:31:13 +010021HOSTCFLAGS_asn1_compiler.o = -I$(srctree)/include
Linus Torvalds1da177e2005-04-16 15:20:36 -070022
Ross Birof2443ab2006-09-30 23:27:25 -070023always := $(hostprogs-y) $(hostprogs-m)
Linus Torvalds1da177e2005-04-16 15:20:36 -070024
Sam Ravnborg07aea3a2006-07-23 20:47:50 +020025# The following hostprogs-y programs are only build on demand
Peter Foleybffd2022011-05-02 22:48:03 +020026hostprogs-y += unifdef docproc
Sam Ravnborg07aea3a2006-07-23 20:47:50 +020027
Peter Foleybffd2022011-05-02 22:48:03 +020028# These targets are used internally to avoid "is up to date" messages
Masahiro Yamadabfdfaea2014-01-20 14:08:08 +090029PHONY += build_unifdef build_docproc
30build_unifdef: $(obj)/unifdef
Mike Waychisone1b702c2011-03-14 23:34:25 -070031 @:
Masahiro Yamadabfdfaea2014-01-20 14:08:08 +090032build_docproc: $(obj)/docproc
Peter Foleybffd2022011-05-02 22:48:03 +020033 @:
Mike Waychisone1b702c2011-03-14 23:34:25 -070034
Linus Torvalds1da177e2005-04-16 15:20:36 -070035subdir-$(CONFIG_MODVERSIONS) += genksyms
Sam Ravnborg12715d22006-08-08 20:43:39 +020036subdir-y += mod
Serge E. Hallyn93c06cb2008-08-26 14:47:57 -050037subdir-$(CONFIG_SECURITY_SELINUX) += selinux
David Gibson9fffb552009-04-30 15:25:53 +100038subdir-$(CONFIG_DTC) += dtc
Linus Torvalds1da177e2005-04-16 15:20:36 -070039
40# Let clean descend into subdirs
Masahiro Yamadac43ceca2014-04-17 11:47:47 +090041subdir- += basic kconfig package