add another parallel build fix
[openwrt.git] / target / linux / generic-2.4 / patches / 051-parallel_build.patch
1 --- linux-2.4.32/arch/mips/Makefile.old 2006-10-18 21:11:18.110720000 +0200
2 +++ linux-2.4.32/arch/mips/Makefile     2006-10-18 21:12:32.570720000 +0200
3 @@ -752,6 +752,7 @@
4  HEAD := arch/mips/kernel/head.o arch/mips/kernel/init_task.o
5  
6  SUBDIRS := $(addprefix arch/mips/, tools) $(SUBDIRS) $(addprefix arch/mips/, kernel mm lib)
7 +$(SUBDIRS): $(TOPDIR)/include/asm-$(ARCH)/offset.h
8  CORE_FILES := arch/mips/kernel/kernel.o arch/mips/mm/mm.o $(CORE_FILES)
9  LIBS := arch/mips/lib/lib.a $(LIBS)
10  
11 @@ -799,7 +800,7 @@
12         $(MAKE) -C arch/$(ARCH)/tools mrproper
13  
14  archdep:
15 -       if [ ! -f $(TOPDIR)/include/asm-$(ARCH)/offset.h ]; then \
16 -               touch $(TOPDIR)/include/asm-$(ARCH)/offset.h; \
17 -       fi;
18         @$(MAKEBOOT) dep
19 +
20 +$(TOPDIR)/include/asm-$(ARCH)/offset.h:
21 +       @$(MAKE) -C arch/mips/tools