051-parallel_build.patch 727 B

123456789101112131415161718192021
  1. --- a/arch/mips/Makefile
  2. +++ b/arch/mips/Makefile
  3. @@ -739,6 +739,7 @@ LINKFLAGS += -T arch/$(ARCH)/ld.script
  4. HEAD := arch/mips/kernel/head.o arch/mips/kernel/init_task.o
  5. SUBDIRS := $(addprefix arch/mips/, tools) $(SUBDIRS) $(addprefix arch/mips/, kernel mm lib)
  6. +$(SUBDIRS): $(TOPDIR)/include/asm-$(ARCH)/offset.h
  7. CORE_FILES := arch/mips/kernel/kernel.o arch/mips/mm/mm.o $(CORE_FILES)
  8. LIBS := arch/mips/lib/lib.a $(LIBS)
  9. @@ -785,7 +786,7 @@ archmrproper:
  10. $(MAKE) -C arch/$(ARCH)/tools mrproper
  11. archdep:
  12. - if [ ! -f $(TOPDIR)/include/asm-$(ARCH)/offset.h ]; then \
  13. - touch $(TOPDIR)/include/asm-$(ARCH)/offset.h; \
  14. - fi;
  15. @$(MAKEBOOT) dep
  16. +
  17. +$(TOPDIR)/include/asm-$(ARCH)/offset.h:
  18. + @$(MAKE) -C arch/mips/tools