[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190314175705.11671-1-dianders@chromium.org>
Date: Thu, 14 Mar 2019 10:57:05 -0700
From: Douglas Anderson <dianders@...omium.org>
To: Masahiro Yamada <yamada.masahiro@...ionext.com>
Cc: Douglas Anderson <dianders@...omium.org>,
Michal Marek <michal.lkml@...kovi.net>,
linux-kernel@...r.kernel.org, linux-kbuild@...r.kernel.org
Subject: [PATCH] kbuild: If the module stripping command fails the build should abort
If the call to strip returns an error code then it makes sense for the
build to fail. Currently we'll just chug along and ship unstripped
modules.
Fixes: e2a666d52b48 ("kbuild: sign the modules at install time")
Signed-off-by: Douglas Anderson <dianders@...omium.org>
---
scripts/Makefile.modinst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/Makefile.modinst b/scripts/Makefile.modinst
index ff5ca9817a85..5d05c43c6f31 100644
--- a/scripts/Makefile.modinst
+++ b/scripts/Makefile.modinst
@@ -22,7 +22,7 @@ quiet_cmd_modules_install = INSTALL $@
cmd_modules_install = \
mkdir -p $(2) ; \
cp $@ $(2) ; \
- $(mod_strip_cmd) $(2)/$(notdir $@) ; \
+ $(mod_strip_cmd) $(2)/$(notdir $@) && \
$(mod_sign_cmd) $(2)/$(notdir $@) $(patsubst %,|| true,$(KBUILD_EXTMOD)) && \
$(mod_compress_cmd) $(2)/$(notdir $@)
--
2.21.0.360.g471c308f928-goog
Powered by blists - more mailing lists