All of lore.kernel.org
 help / color / mirror / Atom feed
* Makefile improvement for 2.4 kernel
@ 2005-02-14 19:23 Krzysztof Helt
  0 siblings, 0 replies; only message in thread
From: Krzysztof Helt @ 2005-02-14 19:23 UTC (permalink / raw)
  To: sparclinux

[-- Attachment #1: Type: text/plain, Size: 497 bytes --]

Here is a atch which forces the arch/sparc/boot directory being built 
after all other arch/sparc/* directories. On my 2-way SS20 it makes 
"make -j3 vmlinux" working in the first pass. Someone can test it on 
machine with more CPUs. I post it here for judgement if it is a correct 
way to force the correct order of kernel build. I am not sure if I can 
use variables from the main makefile int the arch/sparc/Makefile.

If it is useful, please merge it into the kernel tree.

Regards,
Krzysztof

[-- Attachment #2: smp-makefile.patch --]
[-- Type: text/x-patch, Size: 871 bytes --]

--- arch/sparc/Makefile.old	2004-12-08 22:26:06.000000000 +0100
+++ arch/sparc/Makefile	2005-02-14 19:13:22.000000000 +0100
@@ -35,7 +35,7 @@
 
 HEAD := arch/sparc/kernel/head.o arch/sparc/kernel/init_task.o
 
-SUBDIRS += arch/sparc/kernel arch/sparc/lib arch/sparc/prom \
+PRE_BT_SUBDIRS := arch/sparc/kernel arch/sparc/lib arch/sparc/prom \
 	arch/sparc/mm arch/sparc/math-emu
 
 CORE_FILES := arch/sparc/kernel/kernel.o arch/sparc/mm/mm.o $(CORE_FILES) \
@@ -45,10 +45,13 @@
 	$(TOPDIR)/arch/sparc/lib/lib.a
 
 # This one has to come last
-SUBDIRS += arch/sparc/boot
+SUBDIRS += $(PRE_BT_SUBDIRS) arch/sparc/boot
 CORE_FILES_NO_BTFIX := $(CORE_FILES)
 CORE_FILES += arch/sparc/boot/btfix.o
 
+# The boot dir should be built as the last one
+$(patsubst %, _dir_%, arch/sparc/boot ): $(patsubst %, _dir_%, $(PRE_BT_SUBDIRS) )
+
 export	CORE_FILES_NO_BTFIX
 
 archclean:

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-02-14 19:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-14 19:23 Makefile improvement for 2.4 kernel Krzysztof Helt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.