summaryrefslogtreecommitdiffstats
path: root/src/build/Makefile
diff options
context:
space:
mode:
authorspashabk-in <shakeebbk@in.ibm.com>2017-12-09 09:36:11 -0600
committerSachin Gupta <sgupta2m@in.ibm.com>2018-01-19 04:26:41 -0500
commit8a863e816e41837dc954eba4b0962efcb0117889 (patch)
tree445824b8f8300753ecbe7d16950252c6b6621319 /src/build/Makefile
parentc149d7d8d8b884aba84cc90ddc98597a9e35581e (diff)
downloadtalos-sbe-8a863e816e41837dc954eba4b0962efcb0117889.tar.gz
talos-sbe-8a863e816e41837dc954eba4b0962efcb0117889.zip
[SBE-code-re-org][6] Build configuration
Makefile re-org for project specific build Change-Id: I51893710979f19cf00e41725c83d1c0c653c4b60 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/50744 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src/build/Makefile')
-rw-r--r--src/build/Makefile19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/build/Makefile b/src/build/Makefile
index 66856533..c6b1cc40 100644
--- a/src/build/Makefile
+++ b/src/build/Makefile
@@ -22,7 +22,20 @@
# permissions and limitations under the License.
#
# IBM_PROLOG_END_TAG
+############################################################################
+# Image settings
+# pass argument img=seeprom/pibmem
+# By default seeprom image is built
+ifndef img
+export img = seeprom
+endif
+# pass argument project=power/zthemis
+# By default power image is built
+ifndef project
+export project = power
+endif
+###########################################################################
#Pull in the definitions that affect all makefiles for this image
include img_defs.mk
@@ -152,7 +165,7 @@ LINK_SCRIPT_SBE = $(addprefix $(OBJDIR)/build/linkerscripts, linkscriptsbe)
# ---- SEEPROM Image ------
# This removes all unecessary headers from the ELF executable
$(IMG_DIR)/$(IMAGE_SEEPROM_NAME).bin $(IMG_DIR)/$(IMAGE_SEEPROM_NAME).dis: $(IMG_DIR)/$(IMAGE_SEEPROM_NAME).out
- ./parsAndCutElf.py $(IMAGE_SUFFIX)
+ ./parsAndCutElf.py $(IMAGE_SUFFIX) $(IMG_DIR)
$(OBJDUMP) -S $< > $(IMG_DIR)/$(IMAGE_SEEPROM_NAME).dis
#create a linked ELF executable
@@ -240,7 +253,7 @@ report: $(P9_XIP_TOOL) $(IMG_DIR)/$(IMAGE_SEEPROM_NAME).bin
# Create build Info file
buildInfo:
- python buildInfo.py $(OBJDIR)
+ python buildInfo.py $(GENFILES_DIR)
#Create an obj directory if needed
@@ -341,7 +354,7 @@ tracehash:
#clean the kernel directory first, then the application level clean
clean:
rm -fr $(SBE_ROOT_DIR)/obj
- rm -fr $(IMG_DIR)
+ rm -fr $(IMG_ROOT_DIR)
#Add dependencies to header files
ifneq ($(MAKECMDGOALS),clean)
OpenPOWER on IntegriCloud