blob: c06f4997d7008e772fce5f8591bb1ed018e8101e [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
9
H. Peter Anvin6520fe52012-05-08 21:22:24 +030010HOST_EXTRACFLAGS += -I$(srctree)/tools/include
11
Linus Torvalds1da177e2005-04-16 15:20:36 -070012hostprogs-$(CONFIG_KALLSYMS) += kallsyms
13hostprogs-$(CONFIG_LOGO) += pnmtologo
14hostprogs-$(CONFIG_VT) += conmakehash
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
David Howells4520c6a2012-09-21 23:31:13 +010017hostprogs-$(CONFIG_ASN1) += asn1_compiler
David Woodhouse770f2b92015-07-20 21:16:34 +010018hostprogs-$(CONFIG_MODULE_SIG) += sign-file
19hostprogs-$(CONFIG_SYSTEM_TRUSTED_KEYRING) += extract-cert
Mehmet Kayaalpc4c36102015-11-24 16:18:05 -050020hostprogs-$(CONFIG_SYSTEM_EXTRA_CERTIFICATE) += insert-sys-cert
Linus Torvalds1da177e2005-04-16 15:20:36 -070021
David Daneyd59a1682012-04-24 11:23:14 -070022HOSTCFLAGS_sortextable.o = -I$(srctree)/tools/include
David Howells4520c6a2012-09-21 23:31:13 +010023HOSTCFLAGS_asn1_compiler.o = -I$(srctree)/include
David Howells3f1e1be2015-07-20 21:16:27 +010024HOSTLOADLIBES_sign-file = -lcrypto
David Woodhouse1329e8c2015-07-20 21:16:30 +010025HOSTLOADLIBES_extract-cert = -lcrypto
Linus Torvalds1da177e2005-04-16 15:20:36 -070026
Ross Birof2443ab2006-09-30 23:27:25 -070027always := $(hostprogs-y) $(hostprogs-m)
Linus Torvalds1da177e2005-04-16 15:20:36 -070028
Sam Ravnborg07aea3a2006-07-23 20:47:50 +020029# The following hostprogs-y programs are only build on demand
Jonathan Corbet52b3f232017-06-23 14:17:38 -060030hostprogs-y += unifdef
Sam Ravnborg07aea3a2006-07-23 20:47:50 +020031
Peter Foleybffd2022011-05-02 22:48:03 +020032# These targets are used internally to avoid "is up to date" messages
Jonathan Corbet52b3f232017-06-23 14:17:38 -060033PHONY += build_unifdef
Masahiro Yamadabfdfaea2014-01-20 14:08:08 +090034build_unifdef: $(obj)/unifdef
Mike Waychisone1b702c2011-03-14 23:34:25 -070035 @:
36
Linus Torvalds1da177e2005-04-16 15:20:36 -070037subdir-$(CONFIG_MODVERSIONS) += genksyms
Sam Ravnborg12715d22006-08-08 20:43:39 +020038subdir-y += mod
Serge E. Hallyn93c06cb2008-08-26 14:47:57 -050039subdir-$(CONFIG_SECURITY_SELINUX) += selinux
David Gibson9fffb552009-04-30 15:25:53 +100040subdir-$(CONFIG_DTC) += dtc
Jan Kiszka3ee7b3f2015-02-17 13:46:36 -080041subdir-$(CONFIG_GDB_SCRIPTS) += gdb
Linus Torvalds1da177e2005-04-16 15:20:36 -070042
43# Let clean descend into subdirs
Emese Revfy6b90bd42016-05-24 00:09:38 +020044subdir- += basic kconfig package gcc-plugins