From: Andrew Morton Date: Sat, 13 Jan 2018 00:53:17 +0000 (-0800) Subject: tools/objtool/Makefile: don't assume sync-check.sh is executable X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=50c1c6cc09dcea608ace4bd258714d01909fed45;p=android-x86%2Fkernel.git tools/objtool/Makefile: don't assume sync-check.sh is executable commit 0f908ccbeca99ddf0ad60afa710e72aded4a5ea7 upstream. patch(1) loses the x bit. So if a user follows our patching instructions in Documentation/admin-guide/README.rst, their kernel will not compile. Fixes: 3bd51c5a371de ("objtool: Move kernel headers/code sync check to a script") Reported-by: Nicolas Bock Reported-by Joakim Tjernlund Cc: Ingo Molnar Cc: Josh Poimboeuf Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Cc: Holger Hoffstätte Signed-off-by: Greg Kroah-Hartman --- diff --git a/tools/objtool/Makefile b/tools/objtool/Makefile index ae0272f9a091..e6acc281dd37 100644 --- a/tools/objtool/Makefile +++ b/tools/objtool/Makefile @@ -46,7 +46,7 @@ $(OBJTOOL_IN): fixdep FORCE @$(MAKE) $(build)=objtool $(OBJTOOL): $(LIBSUBCMD) $(OBJTOOL_IN) - @./sync-check.sh + @$(CONFIG_SHELL) ./sync-check.sh $(QUIET_LINK)$(CC) $(OBJTOOL_IN) $(LDFLAGS) -o $@