Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f6a79af8 authored by Rusty Russell's avatar Rusty Russell
Browse files

modules: don't break modules_install on external modules with no key.



The script still spits out an error ("Can't read private key") but we
don't break modules_install.

Reported-by: default avatarBruno Wolff III <bruno@wolff.to>
Original-patch-by: default avatarJosh Boyer <jwboyer@redhat.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 59ef28b1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -16,8 +16,9 @@ PHONY += $(modules)
__modinst: $(modules)
	@:

# Don't stop modules_install if we can't sign external modules.
quiet_cmd_modules_install = INSTALL $@
      cmd_modules_install = mkdir -p $(2); cp $@ $(2) ; $(mod_strip_cmd) $(2)/$(notdir $@) ; $(mod_sign_cmd) $(2)/$(notdir $@)
      cmd_modules_install = mkdir -p $(2); cp $@ $(2) ; $(mod_strip_cmd) $(2)/$(notdir $@) ; $(mod_sign_cmd) $(2)/$(notdir $@) $(patsubst %,|| true,$(KBUILD_EXTMOD))

# Modules built outside the kernel source tree go into extra by default
INSTALL_MOD_DIR ?= extra