]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
modules: don't call eu-strip if it doesn't exist.
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 28 Sep 2012 05:52:04 +0000 (15:22 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 2 Oct 2012 03:29:43 +0000 (12:59 +0930)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: David Howells <dhowells@redhat.com>
scripts/Makefile.modpost

index 90b1bb1911832a97adef7619ec339c389b6f4989..2a4d1a176526d33f48695eba3ad422d0befa3fec 100644 (file)
@@ -165,11 +165,13 @@ endif
 
 # We strip the module as best we can - note that using both strip and eu-strip
 # results in a smaller module than using either alone.
+EU_STRIP = $(shell which eu-strip || echo true)
+
 quiet_cmd_sign_ko_stripped_ko_unsigned = STRIP [M] $@
       cmd_sign_ko_stripped_ko_unsigned = \
                cp $< $@ && \
                strip -x -g $@ && \
-               eu-strip $@
+               $(EU_STRIP) $@
 
 ifeq ($(SIGN_MODULES),1)