From 24281c00dd4dc72d5ceffb671f3d16820bc0a2d7 Mon Sep 17 00:00:00 2001 From: Martin Peschke Date: Thu, 25 Aug 2016 12:19:34 +0200 Subject: P9-XIP: Makefile accepts parameter that specifies output directory To be used by SBE image build flow. Change-Id: I079dbb99224eb74d2c729e70bf40846c8ddaef38 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28777 Tested-by: PPE CI Tested-by: Jenkins Server Reviewed-by: Claus M. Olsen Reviewed-by: Sachin Gupta Reviewed-by: Jennifer A. Stofer --- import/chips/p9/xip/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/import/chips/p9/xip/Makefile b/import/chips/p9/xip/Makefile index 51f257b1..5531840c 100644 --- a/import/chips/p9/xip/Makefile +++ b/import/chips/p9/xip/Makefile @@ -28,6 +28,7 @@ # Make targets: # all : Builds P9-XIP code and tools in $(OBJ_DIR)/ # clean : Removes the $(OBJ_DIR)/ directory +# BINDIR can be passed in to determine the ouput directory ############################################################################ # Locations of required headers. @@ -40,7 +41,11 @@ XIP_FLAGS += -DFAPI2_NO_FFDC CXX_FLAGS += -std=c++11 +ifdef BINDIR +OBJ_DIR = $(BINDIR) +else OBJ_DIR = bin +endif # Under Linux the scheme is to use a common compiler to create procedures. # However, the common compiler can be VERY slow, so if the system compiler is -- cgit v1.2.3