From c9e4130af2578554e0f30316745a0bc54366a6fd Mon Sep 17 00:00:00 2001 From: ppisa Date: Tue, 2 Mar 2004 19:47:45 +0000 Subject: [PATCH] Added dependencies between top-level passes invocation for parallel make. --- Makefile.rules | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Makefile.rules b/Makefile.rules index 55c89f0..b415d0b 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -102,7 +102,8 @@ include $(SOURCES_DIR)/Makefile.omk OMK_INCLUDED := 1 endif -export SOURCES_DIR MAKERULES_DIR RELATIVE_DIR LINUX_DIR LINUX_VERSION RTL_DIR CONFIG_FILE +export SOURCES_DIR MAKERULES_DIR RELATIVE_DIR LINUX_DIR LINUX_VERSION RTL_DIR +export CONFIG_FILE OMK_SERIALIZE_INCLUDED CFLAGS += -ggdb CFLAGS += -O2 @@ -145,6 +146,17 @@ KERN_OBJS_DIR = $(KERN_BUILD_DIR)/$(RELATIVE_DIR) .PHONY: check-dir-local include-pass-local library-pass-local binary-pass-local .PHONY: utils-pass-local kernel-lib-pass-local kernel-pass-local default-config-pass-local +# Some support to serialize some targets for parallel make +ifneq ($(OMK_SERIALIZE_INCLUDED),y) +include-pass: check-dir +library-pass: include-pass +binary-pass utils-pass: library-pass +kernel-lib-pass: include-pass +kernel-pass: kernel-lib-pass + +OMK_SERIALIZE_INCLUDED = y +endif + default: check-dir include-pass library-pass binary-pass utils-pass kernel-lib-pass kernel-pass -- 2.39.2