Blame view

scripts/Makefile 1.32 KB
b24413180   Greg Kroah-Hartman   License cleanup: ...
1
  # SPDX-License-Identifier: GPL-2.0
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2
3
4
  ###
  # scripts contains sources for various helper programs used throughout
  # the kernel for the build process.
6520fe556   H. Peter Anvin   x86, realmode: 16...
5

faabed295   Masahiro Yamada   kbuild: introduce...
6
7
8
9
10
11
12
13
  hostprogs-always-$(CONFIG_BUILD_BIN2C)			+= bin2c
  hostprogs-always-$(CONFIG_KALLSYMS)			+= kallsyms
  hostprogs-always-$(BUILD_C_RECORDMCOUNT)		+= recordmcount
  hostprogs-always-$(CONFIG_BUILDTIME_TABLE_SORT)		+= sorttable
  hostprogs-always-$(CONFIG_ASN1)				+= asn1_compiler
  hostprogs-always-$(CONFIG_MODULE_SIG_FORMAT)		+= sign-file
  hostprogs-always-$(CONFIG_SYSTEM_TRUSTED_KEYRING)	+= extract-cert
  hostprogs-always-$(CONFIG_SYSTEM_EXTRA_CERTIFICATE)	+= insert-sys-cert
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
14

109167063   Shile Zhang   scripts/sorttable...
15
  HOSTCFLAGS_sorttable.o = -I$(srctree)/tools/include
4520c6a49   David Howells   X.509: Add simple...
16
  HOSTCFLAGS_asn1_compiler.o = -I$(srctree)/include
8377bd2b9   Laura Abbott   kbuild: Rename HO...
17
18
  HOSTLDLIBS_sign-file = -lcrypto
  HOSTLDLIBS_extract-cert = -lcrypto
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
19

57fa18994   Shile Zhang   scripts/sorttable...
20
21
22
23
24
25
26
27
  ifdef CONFIG_UNWINDER_ORC
  ifeq ($(ARCH),x86_64)
  ARCH := x86
  endif
  HOSTCFLAGS_sorttable.o += -I$(srctree)/tools/arch/x86/include
  HOSTCFLAGS_sorttable.o += -DUNWINDER_ORC_ENABLED
  HOSTLDLIBS_sorttable = -lpthread
  endif
5f2fb52fa   Masahiro Yamada   kbuild: rename ho...
28
29
  # The following programs are only built on demand
  hostprogs += unifdef
07aea3a71   Sam Ravnborg   kbuild: use in-ke...
30

596b0474d   Masahiro Yamada   kbuild: preproces...
31
32
  # The module linker script is preprocessed on demand
  targets += module.lds
ce2fd53a1   Masahiro Yamada   kbuild: descend i...
33
  subdir-$(CONFIG_GCC_PLUGINS) += gcc-plugins
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
34
  subdir-$(CONFIG_MODVERSIONS) += genksyms
93c06cbbf   Serge E. Hallyn   selinux: add supp...
35
  subdir-$(CONFIG_SECURITY_SELINUX) += selinux
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
36
37
  
  # Let clean descend into subdirs
46a63d4b0   Masahiro Yamada   kbuild: pkg: clea...
38
  subdir-	+= basic dtc gdb kconfig mod