Skip to contentSkip to conversation

tools/objtool/Makefile: don't assume sync-check.sh is executable

PATCH New [email protected] 1 participant 1 message Jan 13, 2018 objtool

lore
Share & tools
lore
#0 lore raw

PATCH 4/4 tools/objtool/Makefile: don't assume sync-check.sh is executable

From: Andrew Morton <[email protected]>
Subject: tools/objtool/Makefile: don't assume sync-check.sh is executable

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 Joakim Tjernlund <[email protected]>

Cc Ingo Molnar <[email protected]>
Cc Josh Poimboeuf <[email protected]>

---

 tools/objtool/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/objtool/Makefile renamed from tools/objtool/Makefile~tools-objtool-makefile-dont-assume-sync-checksh-is-executable +1 -1
diff -puN tools/objtool/Makefile~tools-objtool-makefile-dont-assume-sync-checksh-is-executable 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 $@
 
 

_