Makefile improvement for 2.4 kernel
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
sparc/Makefile renamed from sparc/Makefile.old +5 -2
@@ -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: