make TARGET=sparc -j
Peter Jones <[email protected]>
| Newsgroups | gmane.linux.aurora.devel |
|---|---|
| Message-ID | <[email protected]> |
So, I think this patch makes make -j work on sparc32 kernels. It's a
*little* kludgy, but it doesn't change anything outside of arch/sparc/ ,
so it's not unbearably bad. This diff is against some bk export I did
quite a while ago, but it works against the kernel we shipped in aurora 1
(2.4.21 or so), so if anybody can't get it working or wants me to look at
some specific newer tree, let me know.
diff -ur linux-2.4-export-orig/arch/sparc/Makefile linux-2.4-export-new/arch/sparc/Makefile
--- linux-2.4-export-orig/arch/sparc/Makefile Sun Feb 16 01:23:12 2003
+++ linux-2.4-export-new/arch/sparc/Makefile Sun May 18 14:07:02 2003
@@ -45,6 +45,7 @@
$(TOPDIR)/arch/sparc/lib/lib.a
# This one has to come last
+_dir_arch/sparc/boot : $(patsubst %, _dir_%, $(SUBDIRS))
SUBDIRS += arch/sparc/boot
CORE_FILES_NO_BTFIX := $(CORE_FILES)
CORE_FILES += arch/sparc/boot/btfix.o
diff -ur linux-2.4-export-orig/arch/sparc/boot/Makefile linux-2.4-export-new/arch/sparc/boot/Makefile
--- linux-2.4-export-orig/arch/sparc/boot/Makefile Sun Feb 16 01:24:48 2003
+++ linux-2.4-export-new/arch/sparc/boot/Makefile Sun May 18 13:55:44 2003
@@ -26,11 +26,14 @@
BTLIBS := $(CORE_FILES_NO_BTFIX) $(FILESYSTEMS) \
$(DRIVERS) $(NETWORKS)
-# I wanted to make this depend upon BTOBJS so that a parallel
-# build would work, but this fails because $(HEAD) cannot work
-# properly as it will cause head.o to be built with the implicit
-# rules not the ones in kernel/Makefile. Someone please fix. --DaveM
-vmlinux.o: dummy
+GENFILES := include/linux/version.h include/linux/compile.h $(foreach dirname, $(CORE_FILES_NO_BTFIX), _dir_$(dir $(dirname)))
+.PHONY : $(GENFILES)
+GENFILES += $(BTOBJS)
+
+$(GENFILES) :
+ $(MAKE) -C $(TOPDIR) $@
+
+vmlinux.o: $(GENFILES)
$(LD) -r $(patsubst %,$(TOPDIR)/%,$(BTOBJS)) \
--start-group \
$(patsubst %,$(TOPDIR)/%,$(BTLIBS)) \
--
Peter
"Don't everyone thank me at once!"
-- Solo