Re: [2.5.63] aha152x, module issues

From: Sam Ravnborg (sam@ravnborg.org)
Date: Tue Mar 04 2003 - 15:43:28 EST


On Mon, Mar 03, 2003 at 05:11:10PM -0500, Bill Davidsen wrote:
> scripts/Makefile.modinst:16: *** Uh-oh, you have stale module entries. You messed with SUBDIRS, do not complain if something goes wrong.

This happens if you have encountered a compile error in a module.
In this case you did not succeed the compilation of fs/binfmt_aout,
and therefore no .o file can be located.
kbuild assumes this is because you have messed with SUBDIRS, which is wrong.

Kai - the following patch fixes this for me.

        Sam

===== scripts/Makefile.build 1.31 vs edited =====
--- 1.31/scripts/Makefile.build Wed Feb 19 23:42:13 2003
+++ edited/scripts/Makefile.build Tue Mar 4 21:40:47 2003
@@ -163,12 +163,12 @@
 # Single-part modules are special since we need to mark them in $(MODVERDIR)
 
 $(single-used-m): %.o: %.c FORCE
- $(touch-module)
 ifdef CONFIG_MODVERSIONS
         $(call if_changed_rule,vcc_o_c)
 else
         $(call if_changed_dep,cc_o_c)
 endif
+ $(touch-module)
 
 quiet_cmd_cc_lst_c = MKLST $@
       cmd_cc_lst_c = $(CC) $(c_flags) -g -c -o $*.o $< && \
@@ -262,8 +262,8 @@
         $(call if_changed,link_multi-y)
 
 $(multi-used-m) : %.o: $(multi-objs-m) FORCE
- $(touch-module)
         $(call if_changed,link_multi-m)
+ $(touch-module)
 
 targets += $(multi-used-y) $(multi-used-m)
 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Mar 07 2003 - 22:00:25 EST