[PATCH] fixes to top-level Makefile (-pre3)

From: Alexander Viro (viro@math.psu.edu)
Date: Thu May 17 2001 - 05:56:40 EST


On Thu, 17 May 2001, Kai Germaschewski wrote:

> This part is not necessary. The ordering of subdir-y only has to do with
> compilation ordering, not with link order. The link order for
> drivers/char/* is set explicitly in the toplevel Makefile.

        Oh, crap. Right you are. OK, but it means that we need to change
toplevel Makefile to handle the changes done in -pre3. Thanks for spotting.

        Linus, could you please apply the following? That's _not_ for
i2c - this is what I ought to do in the patches that went into -pre3
instead of changing the order in drivers/Makefile.

        Self-LART applied.
                                                                Al

--- 2.4.5-pre3/Makefile Wed May 16 16:26:31 2001
+++ linux-test/Makefile Thu May 17 06:47:44 2001
@@ -118,11 +118,7 @@
 
 CORE_FILES =kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o
 NETWORKS =net/network.o
-DRIVERS =drivers/block/block.o \
- drivers/char/char.o \
- drivers/misc/misc.o \
- drivers/net/net.o \
- drivers/media/media.o
+
 LIBS =$(TOPDIR)/lib/lib.a
 SUBDIRS =kernel drivers mm fs net ipc lib
 
@@ -132,6 +128,11 @@
 DRIVERS- :=
 
 DRIVERS-$(CONFIG_PARPORT) += drivers/parport/driver.o
+DRIVERS-y += drivers/char/char.o \
+ drivers/block/block.o \
+ drivers/misc/misc.o \
+ drivers/net/net.o \
+ drivers/media/media.o
 DRIVERS-$(CONFIG_AGP) += drivers/char/agp/agp.o
 DRIVERS-$(CONFIG_DRM) += drivers/char/drm/drm.o
 DRIVERS-$(CONFIG_NUBUS) += drivers/nubus/nubus.a
@@ -177,7 +178,7 @@
 DRIVERS-$(CONFIG_ACPI) += drivers/acpi/acpi.o
 DRIVERS-$(CONFIG_MD) += drivers/md/mddev.o
 
-DRIVERS += $(DRIVERS-y)
+DRIVERS := $(DRIVERS-y)
 
 
 # files removed with 'make clean'

-
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 : Wed May 23 2001 - 21:00:22 EST