The modules_sign target is currently only available for in-tree modules, but it actually works for external modules as well. Move the modules_sign rule to the common part.
Showing the changes to scripts (1 of 2 files). Show all
Unified · Split
| @@ -11,7 +11,7 @@ include $(srctree)/scripts/Kbuild.include · 10 unmodified lines | ||
| 11 | 11 | |
| 12 | 12 | install-y := |
| 13 | 13 | |
| 14 | −ifeq ($(KBUILD_EXTMOD)$(modules_sign_only),) | |
| 14 | +ifeq ($(KBUILD_EXTMOD)$(sign-only),) | |
| 15 | 15 | |
| 16 | 16 | # remove the old directory and symlink |
| 17 | 17 | $(shell rm -fr $(MODLIB)/kernel $(MODLIB)/build) |
| @@ -104,7 +104,7 @@ quiet_cmd_sign = SIGN $@ · 86 unmodified lines | ||
| 104 | 104 | cmd_sign = scripts/sign-file $(CONFIG_MODULE_SIG_HASH) "$(sig-key)" certs/signing_key.x509 $@ \ |
| 105 | 105 | $(if $(KBUILD_EXTMOD),|| true) |
| 106 | 106 | |
| 107 | −ifeq ($(modules_sign_only),) | |
| 107 | +ifeq ($(sign-only),) | |
| 108 | 108 | |
| 109 | 109 | # During modules_install, modules are signed only when CONFIG_MODULE_SIG_ALL=y. |
| 110 | 110 | ifndef CONFIG_MODULE_SIG_ALL |