xref: /openbmc/linux/scripts/Makefile (revision 10916706)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
21da177e4SLinus Torvalds###
31da177e4SLinus Torvalds# scripts contains sources for various helper programs used throughout
41da177e4SLinus Torvalds# the kernel for the build process.
51da177e4SLinus Torvalds# ---------------------------------------------------------------------------
61da177e4SLinus Torvalds# kallsyms:      Find all symbols in vmlinux
7556b0f58SDavid Woodhouse# conmakehash:   Create chartable
81da177e4SLinus Torvalds# conmakehash:	 Create arrays for initializing the kernel console tables
91da177e4SLinus Torvalds
106520fe55SH. Peter AnvinHOST_EXTRACFLAGS += -I$(srctree)/tools/include
116520fe55SH. Peter Anvin
12c417fbceSMasahiro Yamadahostprogs-$(CONFIG_BUILD_BIN2C)  += bin2c
131da177e4SLinus Torvaldshostprogs-$(CONFIG_KALLSYMS)     += kallsyms
141da177e4SLinus Torvaldshostprogs-$(CONFIG_VT)           += conmakehash
1572441cb1SSteven Rostedthostprogs-$(BUILD_C_RECORDMCOUNT) += recordmcount
1610916706SShile Zhanghostprogs-$(CONFIG_BUILDTIME_TABLE_SORT) += sorttable
174520c6a4SDavid Howellshostprogs-$(CONFIG_ASN1)	 += asn1_compiler
18c8424e77SThiago Jung Bauermannhostprogs-$(CONFIG_MODULE_SIG_FORMAT) += sign-file
19770f2b98SDavid Woodhousehostprogs-$(CONFIG_SYSTEM_TRUSTED_KEYRING) += extract-cert
20c4c36105SMehmet Kayaalphostprogs-$(CONFIG_SYSTEM_EXTRA_CERTIFICATE) += insert-sys-cert
211da177e4SLinus Torvalds
2210916706SShile ZhangHOSTCFLAGS_sorttable.o = -I$(srctree)/tools/include
234520c6a4SDavid HowellsHOSTCFLAGS_asn1_compiler.o = -I$(srctree)/include
248377bd2bSLaura AbbottHOSTLDLIBS_sign-file = -lcrypto
258377bd2bSLaura AbbottHOSTLDLIBS_extract-cert = -lcrypto
261da177e4SLinus Torvalds
27f2443ab6SRoss Biroalways		:= $(hostprogs-y) $(hostprogs-m)
281da177e4SLinus Torvalds
2907aea3a7SSam Ravnborg# The following hostprogs-y programs are only build on demand
3052b3f239SJonathan Corbethostprogs-y += unifdef
3107aea3a7SSam Ravnborg
32ce2fd53aSMasahiro Yamadasubdir-$(CONFIG_GCC_PLUGINS) += gcc-plugins
331da177e4SLinus Torvaldssubdir-$(CONFIG_MODVERSIONS) += genksyms
3493c06cbbSSerge E. Hallynsubdir-$(CONFIG_SECURITY_SELINUX) += selinux
351da177e4SLinus Torvalds
361da177e4SLinus Torvalds# Let clean descend into subdirs
3746a63d4bSMasahiro Yamadasubdir-	+= basic dtc gdb kconfig mod
38