Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame^] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | ### |
| 3 | # scripts contains sources for various helper programs used throughout |
| 4 | # the kernel for the build process. |
| 5 | # --------------------------------------------------------------------------- |
| 6 | # kallsyms: Find all symbols in vmlinux |
| 7 | # pnmttologo: Convert pnm files to logo files |
David Woodhouse | 556b0f5 | 2009-01-10 14:53:15 +0000 | [diff] [blame] | 8 | # conmakehash: Create chartable |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | # conmakehash: Create arrays for initializing the kernel console tables |
| 10 | |
H. Peter Anvin | 6520fe5 | 2012-05-08 21:22:24 +0300 | [diff] [blame] | 11 | HOST_EXTRACFLAGS += -I$(srctree)/tools/include |
| 12 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | hostprogs-$(CONFIG_KALLSYMS) += kallsyms |
| 14 | hostprogs-$(CONFIG_LOGO) += pnmtologo |
| 15 | hostprogs-$(CONFIG_VT) += conmakehash |
Steven Rostedt | 72441cb | 2010-10-13 17:12:30 -0400 | [diff] [blame] | 16 | hostprogs-$(BUILD_C_RECORDMCOUNT) += recordmcount |
David Daney | a79f248 | 2012-04-19 14:59:55 -0700 | [diff] [blame] | 17 | hostprogs-$(CONFIG_BUILDTIME_EXTABLE_SORT) += sortextable |
David Howells | 4520c6a | 2012-09-21 23:31:13 +0100 | [diff] [blame] | 18 | hostprogs-$(CONFIG_ASN1) += asn1_compiler |
David Woodhouse | 770f2b9 | 2015-07-20 21:16:34 +0100 | [diff] [blame] | 19 | hostprogs-$(CONFIG_MODULE_SIG) += sign-file |
| 20 | hostprogs-$(CONFIG_SYSTEM_TRUSTED_KEYRING) += extract-cert |
Mehmet Kayaalp | c4c3610 | 2015-11-24 16:18:05 -0500 | [diff] [blame] | 21 | hostprogs-$(CONFIG_SYSTEM_EXTRA_CERTIFICATE) += insert-sys-cert |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | |
David Daney | d59a168 | 2012-04-24 11:23:14 -0700 | [diff] [blame] | 23 | HOSTCFLAGS_sortextable.o = -I$(srctree)/tools/include |
David Howells | 4520c6a | 2012-09-21 23:31:13 +0100 | [diff] [blame] | 24 | HOSTCFLAGS_asn1_compiler.o = -I$(srctree)/include |
David Howells | 3f1e1be | 2015-07-20 21:16:27 +0100 | [diff] [blame] | 25 | HOSTLOADLIBES_sign-file = -lcrypto |
David Woodhouse | 1329e8c | 2015-07-20 21:16:30 +0100 | [diff] [blame] | 26 | HOSTLOADLIBES_extract-cert = -lcrypto |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | |
Ross Biro | f2443ab | 2006-09-30 23:27:25 -0700 | [diff] [blame] | 28 | always := $(hostprogs-y) $(hostprogs-m) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 29 | |
Sam Ravnborg | 07aea3a | 2006-07-23 20:47:50 +0200 | [diff] [blame] | 30 | # The following hostprogs-y programs are only build on demand |
Jonathan Corbet | 52b3f23 | 2017-06-23 14:17:38 -0600 | [diff] [blame] | 31 | hostprogs-y += unifdef |
Sam Ravnborg | 07aea3a | 2006-07-23 20:47:50 +0200 | [diff] [blame] | 32 | |
Peter Foley | bffd202 | 2011-05-02 22:48:03 +0200 | [diff] [blame] | 33 | # These targets are used internally to avoid "is up to date" messages |
Jonathan Corbet | 52b3f23 | 2017-06-23 14:17:38 -0600 | [diff] [blame] | 34 | PHONY += build_unifdef |
Masahiro Yamada | bfdfaea | 2014-01-20 14:08:08 +0900 | [diff] [blame] | 35 | build_unifdef: $(obj)/unifdef |
Mike Waychison | e1b702c | 2011-03-14 23:34:25 -0700 | [diff] [blame] | 36 | @: |
| 37 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 38 | subdir-$(CONFIG_MODVERSIONS) += genksyms |
Sam Ravnborg | 12715d2 | 2006-08-08 20:43:39 +0200 | [diff] [blame] | 39 | subdir-y += mod |
Serge E. Hallyn | 93c06cb | 2008-08-26 14:47:57 -0500 | [diff] [blame] | 40 | subdir-$(CONFIG_SECURITY_SELINUX) += selinux |
David Gibson | 9fffb55 | 2009-04-30 15:25:53 +1000 | [diff] [blame] | 41 | subdir-$(CONFIG_DTC) += dtc |
Jan Kiszka | 3ee7b3f | 2015-02-17 13:46:36 -0800 | [diff] [blame] | 42 | subdir-$(CONFIG_GDB_SCRIPTS) += gdb |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 43 | |
| 44 | # Let clean descend into subdirs |
Emese Revfy | 6b90bd4 | 2016-05-24 00:09:38 +0200 | [diff] [blame] | 45 | subdir- += basic kconfig package gcc-plugins |