Skip to contentSkip to conversation

3.0-rc3 patch compile issue

PATCH Alex,Shi 1 participant 1 message Jun 14, 2011 Kbuild

lore
Share & tools
lore

Alex,Shi

author
#0 lore raw

The rc3
patch(http://www.kernel.org/pub/linux/kernel/v3.0/testing/patch-3.0-rc3.bz2) can not be compiled since srcipts/depmod.sh is not executable but Makefile want to it be.

$ ll scripts/depmod.sh 
-rw-rw-r-- 1 alexs alexs 1231 2011-06-14 16:11 scripts/depmod.sh

But the file attribute is correct in Linus' git tree. So, the guys need to update above patch file or change something in Makefile.

---

Makefile +1 -1
index badb923..2a26917 100644
@@ -1526,7 +1526,7 @@ quiet_cmd_rmfiles = $(if $(wildcard $(rm-files)),CLEAN   $(wildcard $(rm-files))
 
 # Run depmod only if we have System.map and depmod is executable
 quiet_cmd_depmod = DEPMOD  $(KERNELRELEASE)
-      cmd_depmod = $(srctree)/scripts/depmod.sh $(DEPMOD) $(KERNELRELEASE)
+      cmd_depmod = $(shell $(CONFIG_SHELL) $(srctree)/scripts/depmod.sh $(DEPMOD) $(KERNELRELEASE))
 
 # Create temporary dir for module support files
 # clean it up only when building all modules