Uncle George writes:
> I really just want to edit serial.c, anf have just serial.c compile.
>
> But when it comes to Linux-2.2.12-20 ( from RedHat ), a lot more .c
> routines get built.
> It would seem that the dependencies for linux et al are too dependent on
> each other ! Is this a bug, or just a way to convince folks with slow &
> workable machines to upgrade ?
>
> On a 486, this is a painful way to edit the serial.c driver !
serial.c can be built as a module, and therefore is in SYMTAB_OBJS. I've
tried submitting a patch to Linus many times to cleanup the SYMTAB_OBJS
dependencies (each .o depends on *all* SYMTAB sources), but each time I
get no response, and the patch does not go in.
The fix is actually very very trivial:
--- /mnt/src/kernel-sources/orig/v2.2/linux/Rules.make Wed Nov 3 19:30:49 1999
+++ linux/Rules.make Tue Dec 21 22:53:23 1999
@@ -256,7 +256,8 @@
endif # CONFIG_MODVERSIONS
ifneq "$(strip $(SYMTAB_OBJS))" ""
-$(SYMTAB_OBJS): $(TOPDIR)/include/linux/modversions.h $(SYMTAB_OBJS:.o=.c)
+$(SYMTAB_OBJS): $(TOPDIR)/include/linux/modversions.h #$(SYMTAB_OBJS:.o=.c)
+$(SYMTAB_OBJS): %.o: %.c
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(CFLAGS_$@) -DEXPORT_SYMTAB -c $(@:.o=.c)
@ ( \
echo 'ifeq ($(strip $(subst $(comma),:,$(CFLAGS) $(EXTRA_CFLAGS) $(CFLAGS_$@) -DEXPORT_SYMTAB)),$$(strip $$(subst $$(comma),:,$$(CFLAGS) $$(EXTRA_CFLAGS) $$(CFLAGS_$@) -DEXPORT_SYMTAB)))' ; \
_____
|_____| ------------------------------------------------- ---+---+-
| | Russell King rmk@arm.linux.org.uk --- ---
| | | | http://www.arm.linux.org.uk/~rmk/aboutme.html / / |
| +-+-+ --- -+-
/ | THE developer of ARM Linux |+| /|\
/ | | | --- |
+-+-+ ------------------------------------------------- /\\\ |
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Mon Feb 07 2000 - 21:00:14 EST