From ebd315c945b1ae325c21dc266b80fb47e367fabc Mon Sep 17 00:00:00 2001 From: Prachi Gupta Date: Thu, 8 Oct 2015 20:12:47 -0500 Subject: IfCompiler: allow procedures to compile against fapi2_ifCompiler plat Change-Id: I375981c828c052a3bb42e85ea57880f3267ff500 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/21120 Tested-by: Jenkins Server Reviewed-by: STEPHEN M. CPREK Reviewed-by: A. Patrick Williams III Reviewed-by: Jennifer A. Stofer --- src/import/tools/build/common.dir/script.rules.mk | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/import/tools') diff --git a/src/import/tools/build/common.dir/script.rules.mk b/src/import/tools/build/common.dir/script.rules.mk index e7b915cef..81df4afe8 100644 --- a/src/import/tools/build/common.dir/script.rules.mk +++ b/src/import/tools/build/common.dir/script.rules.mk @@ -33,7 +33,10 @@ # * $(GENERATED)_PATH - Optional path to put output into. # * $(GENERATED)_COMMAND_PATH - Path to tool, assumed to be the current # directory of the .mk file if not given. -BUILD_GENERATED = $(eval $(call __BUILD_GENERATED)) +# Input: +# * Optional input to delay the running of BUILD_GENERATED macro to a +# later phase EXE or MODULE. +BUILD_GENERATED = $(eval $(call __BUILD_GENERATED,$1)) # Order of operations: # * Define _PATH and _COMMAND_PATH if they do not exist. @@ -64,7 +67,7 @@ $(call __CLEAN_TARGET,$$($(GENERATED)_PATH)/.$(GENERATED).built) $(foreach target,$(TARGETS),\ $(call __CLEAN_TARGET,$$($(GENERATED)_PATH)/$(target))) -GEN_TARGETS += $$($(GENERATED)_PATH)/.$(GENERATED).built +$(or $1,GEN)_TARGETS += $$($(GENERATED)_PATH)/.$(GENERATED).built GENERATED:= COMMAND:= -- cgit v1.2.1