# IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # $Source: import/tools/imageProcs/cme_image.mk $ # # OpenPOWER HCODE Project # # COPYRIGHT 2016,2018 # [+] International Business Machines Corp. # # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or # implied. See the License for the specific language governing # permissions and limitations under the License. # # IBM_PROLOG_END_TAG # $1 == chipId define BUILD_CME_IMAGE $(eval IMAGE=$1.cme_image) $(eval $(IMAGE)_PATH=$(IMAGEPATH)/cme_image) $(eval $(IMAGE)_LINK_SCRIPT=cme_image.cmd) $(eval $(IMAGE)_LAYOUT=$(IMAGEPATH)/cme_image/cme_image.o) $(eval cme_image_COMMONFLAGS += -I$(ROOTPATH)/chips/p9/xip/) # files with multiple DD level content to be generated $(eval $(call BUILD_DD_LEVEL_CONTAINER,$1,cme)) # files to be appended to image $(eval $(IMAGE)_FILE_HCODE=$$($(IMAGE)_DD_CONT_cme)) # dependencies for appending image sections in sequence: # - file to be appended # - all dependencies of previously appended sections or on raw image # - append operation as to other section that has to be finished first $(eval $(IMAGE)_DEPS_HCODE =$$($(IMAGE)_FILE_HCODE)) $(eval $(IMAGE)_DEPS_HCODE+=$$($(IMAGE)_PATH)/.$(IMAGE).setbuild_host) $(eval $(IMAGE)_DEPS_REPORT =$$($(IMAGE)_DEPS_HCODE)) $(eval $(IMAGE)_DEPS_REPORT+=$$($(IMAGE)_PATH)/.$(IMAGE).append.hcode) # image build using all files and serialised by dependencies $(eval $(call XIP_TOOL,append,.hcode,$$($(IMAGE)_DEPS_HCODE),$$($(IMAGE)_FILE_HCODE) 1)) # create image report for image with all files appended $(eval $(call XIP_TOOL,report,,$$($(IMAGE)_DEPS_REPORT))) $(eval $(call BUILD_XIPIMAGE)) endef $(eval CHIPS := $(filter-out centaur ocmb,$(CHIPS))) $(foreach chip,$(CHIPS),\ $(foreach chipId, $($(chip)_CHIPID),\ $(eval $(call BUILD_CME_IMAGE,$(chipId)))))