Skip to contentSkip to conversation

Makefile: Fix install error with make -j option

PATCH In review Robert Richter 2 participants 3 messages May 2, 2013 – Jul 3, 2013 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile: Fix install error with make -j option

From: Robert Richter <[email protected]>

Make modules_install fails with -j option:

DEPMOD
Usage: .../.source/linux/scripts/depmod.sh /sbin/depmod <kernelrelease> make[1]: *** [_modinst_post] Error 1

Adding kernelrelease dependency to fix this.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index 46263d8..0205e79 100644
@@ -979,7 +979,7 @@ _modinst_:
 # boot a modules.dep even before / is mounted read-write.  However the
 # boot script depmod is the master version.
 PHONY += _modinst_post
-_modinst_post: _modinst_
+_modinst_post: include/config/kernel.release _modinst_
 	$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.fwinst obj=firmware __fw_modinst
 	$(call cmd,depmod)
 
Signature · 1 line
1.8.1.1
#1 lore raw

Michal,

please apply this fix, ideally for v3.10 if possible.

Thanks,

-Robert

Quoted 31 lines · Robert Richter

From: Robert Richter <[email protected]>

Make modules_install fails with -j option:

DEPMOD
Usage: .../.source/linux/scripts/depmod.sh /sbin/depmod <kernelrelease> make[1]: *** [_modinst_post] Error 1

Adding kernelrelease dependency to fix this.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index 46263d8..0205e79 100644
@@ -979,7 +979,7 @@ _modinst_:
 # boot a modules.dep even before / is mounted read-write.  However the
 # boot script depmod is the master version.
 PHONY += _modinst_post
-_modinst_post: _modinst_
+_modinst_post: include/config/kernel.release _modinst_
 	$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.fwinst obj=firmware __fw_modinst
 	$(call cmd,depmod)
 
Signature · 1 line
1.8.1.1
#2 lore raw
Quoted 3 lines · Robert Richter

Michal,

please apply this fix, ideally for v3.10 if possible.

I applied it to kbuild.git#kbuild now, with Cc:
<[email protected]>.

Michal

Quoted 42 lines

Thanks,

-Robert

Quoted 31 lines · Robert Richter

From: Robert Richter <[email protected]>

Make modules_install fails with -j option:

DEPMOD
Usage: .../.source/linux/scripts/depmod.sh /sbin/depmod <kernelrelease> make[1]: *** [_modinst_post] Error 1

Adding kernelrelease dependency to fix this.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index 46263d8..0205e79 100644
@@ -979,7 +979,7 @@ _modinst_:
 # boot a modules.dep even before / is mounted read-write.  However the
 # boot script depmod is the master version.
 PHONY += _modinst_post
-_modinst_post: _modinst_
+_modinst_post: include/config/kernel.release _modinst_
 	$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.fwinst obj=firmware __fw_modinst
 	$(call cmd,depmod)
 
Signature · 1 line
1.8.1.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html