Back to home page

LXR

 
 

    


0001 ###
0002 # scripts contains sources for various helper programs used throughout
0003 # the kernel for the build process.
0004 # ---------------------------------------------------------------------------
0005 # kallsyms:      Find all symbols in vmlinux
0006 # pnmttologo:    Convert pnm files to logo files
0007 # conmakehash:   Create chartable
0008 # conmakehash:   Create arrays for initializing the kernel console tables
0009 # docproc:       Used in Documentation/DocBook
0010 # check-lc_ctype: Used in Documentation/DocBook
0011 
0012 HOST_EXTRACFLAGS += -I$(srctree)/tools/include
0013 
0014 hostprogs-$(CONFIG_KALLSYMS)     += kallsyms
0015 hostprogs-$(CONFIG_LOGO)         += pnmtologo
0016 hostprogs-$(CONFIG_VT)           += conmakehash
0017 hostprogs-$(BUILD_C_RECORDMCOUNT) += recordmcount
0018 hostprogs-$(CONFIG_BUILDTIME_EXTABLE_SORT) += sortextable
0019 hostprogs-$(CONFIG_ASN1)         += asn1_compiler
0020 hostprogs-$(CONFIG_MODULE_SIG)   += sign-file
0021 hostprogs-$(CONFIG_SYSTEM_TRUSTED_KEYRING) += extract-cert
0022 hostprogs-$(CONFIG_SYSTEM_EXTRA_CERTIFICATE) += insert-sys-cert
0023 
0024 HOSTCFLAGS_sortextable.o = -I$(srctree)/tools/include
0025 HOSTCFLAGS_asn1_compiler.o = -I$(srctree)/include 
0026 HOSTLOADLIBES_sign-file = -lcrypto
0027 HOSTLOADLIBES_extract-cert = -lcrypto
0028 
0029 always          := $(hostprogs-y) $(hostprogs-m)
0030 
0031 # The following hostprogs-y programs are only build on demand
0032 hostprogs-y += unifdef docproc check-lc_ctype
0033 
0034 # These targets are used internally to avoid "is up to date" messages
0035 PHONY += build_unifdef build_docproc build_check-lc_ctype
0036 build_unifdef: $(obj)/unifdef
0037         @:
0038 build_docproc: $(obj)/docproc
0039         @:
0040 build_check-lc_ctype: $(obj)/check-lc_ctype
0041         @:
0042 
0043 subdir-$(CONFIG_MODVERSIONS) += genksyms
0044 subdir-y                     += mod
0045 subdir-$(CONFIG_SECURITY_SELINUX) += selinux
0046 subdir-$(CONFIG_DTC)         += dtc
0047 subdir-$(CONFIG_GDB_SCRIPTS) += gdb
0048 
0049 # Let clean descend into subdirs
0050 subdir- += basic kconfig package gcc-plugins