Lines Matching +full:sig +full:- +full:dir +full:- +full:cmd
1 # SPDX-License-Identifier: GPL-2.0
12 install-y :=
14 ifeq ($(KBUILD_EXTMOD)$(sign-only),)
17 $(shell rm -fr $(MODLIB)/kernel $(MODLIB)/build)
19 install-$(CONFIG_MODULES) += $(addprefix $(MODLIB)/, build modules.order)
22 $(call cmd,symlink)
25 cmd_symlink = ln -s $(CURDIR) $@
28 $(call cmd,install_modorder)
34 install-y += $(addprefix $(MODLIB)/, modules.builtin modules.builtin.modinfo)
37 $(call cmd,install)
41 modules := $(call read-file, $(MODORDER))
53 suffix-y :=
54 suffix-$(CONFIG_MODULE_COMPRESS_GZIP) := .gz
55 suffix-$(CONFIG_MODULE_COMPRESS_XZ) := .xz
56 suffix-$(CONFIG_MODULE_COMPRESS_ZSTD) := .zst
58 modules := $(patsubst $(extmod_prefix)%.o, $(dst)/%.ko$(suffix-y), $(modules))
59 install-$(CONFIG_MODULES) += $(modules)
61 __modinst: $(install-y)
74 # --strip-debug will be used. Otherwise, INSTALL_MOD_STRIP value will be used
79 strip-option := --strip-debug
81 strip-option := $(INSTALL_MOD_STRIP)
85 cmd_strip = $(STRIP) $(strip-option) $@
99 sig-key := $(if $(wildcard $(CONFIG_MODULE_SIG_KEY)),,$(srctree)/)$(CONFIG_MODULE_SIG_KEY)
101 sig-key := $(CONFIG_MODULE_SIG_KEY)
104 … cmd_sign = scripts/sign-file $(CONFIG_MODULE_SIG_HASH) "$(sig-key)" certs/signing_key.x509 $@ \
107 ifeq ($(sign-only),)
116 $(foreach dir, $(sort $(dir $(install-y))), $(shell mkdir -p $(dir)))
119 $(call cmd,install)
120 $(call cmd,strip)
121 $(call cmd,sign)
127 depmod: $(install-y)
128 $(call cmd,depmod)
137 $(call cmd,sign)
145 cmd_gzip = $(KGZIP) -n -f $<
147 cmd_xz = $(XZ) --check=crc32 --lzma2=dict=1MiB -f $<
149 cmd_zstd = $(ZSTD) -T0 --rm -f -q $<
152 $(call cmd,gzip)
155 $(call cmd,xz)
158 $(call cmd,zstd)