Files
kernel/scripts/Makefile
T

40 lines
1.4 KiB
Makefile
Raw Normal View History

# SPDX-License-Identifier: GPL-2.0
2005-04-16 15:20:36 -07:00
###
# scripts contains sources for various helper programs used throughout
# the kernel for the build process.
# ---------------------------------------------------------------------------
# kallsyms: Find all symbols in vmlinux
# pnmttologo: Convert pnm files to logo files
2009-01-10 14:53:15 +00:00
# conmakehash: Create chartable
2005-04-16 15:20:36 -07:00
# conmakehash: Create arrays for initializing the kernel console tables
HOST_EXTRACFLAGS += -I$(srctree)/tools/include
hostprogs-$(CONFIG_BUILD_BIN2C) += bin2c
2005-04-16 15:20:36 -07:00
hostprogs-$(CONFIG_KALLSYMS) += kallsyms
hostprogs-$(CONFIG_LOGO) += pnmtologo
hostprogs-$(CONFIG_VT) += conmakehash
hostprogs-$(BUILD_C_RECORDMCOUNT) += recordmcount
hostprogs-$(CONFIG_BUILDTIME_EXTABLE_SORT) += sortextable
2012-09-21 23:31:13 +01:00
hostprogs-$(CONFIG_ASN1) += asn1_compiler
hostprogs-$(CONFIG_MODULE_SIG) += sign-file
hostprogs-$(CONFIG_SYSTEM_TRUSTED_KEYRING) += extract-cert
hostprogs-$(CONFIG_SYSTEM_EXTRA_CERTIFICATE) += insert-sys-cert
2005-04-16 15:20:36 -07:00
HOSTCFLAGS_sortextable.o = -I$(srctree)/tools/include
2012-09-21 23:31:13 +01:00
HOSTCFLAGS_asn1_compiler.o = -I$(srctree)/include
HOSTLDLIBS_sign-file = -lcrypto
HOSTLDLIBS_extract-cert = -lcrypto
2005-04-16 15:20:36 -07:00
always := $(hostprogs-y) $(hostprogs-m)
2005-04-16 15:20:36 -07:00
2006-07-23 20:47:50 +02:00
# The following hostprogs-y programs are only build on demand
2017-06-23 14:17:38 -06:00
hostprogs-y += unifdef
2006-07-23 20:47:50 +02:00
subdir-$(CONFIG_GCC_PLUGINS) += gcc-plugins
2005-04-16 15:20:36 -07:00
subdir-$(CONFIG_MODVERSIONS) += genksyms
subdir-$(CONFIG_SECURITY_SELINUX) += selinux
2005-04-16 15:20:36 -07:00
# Let clean descend into subdirs
subdir- += basic dtc gdb kconfig mod package