blob: 1f813e056044969a3f93f643d84349d66b6ee9c8 [file] [log] [blame]
Bill Hoffa5f93f1d2014-06-26 21:02:48 -05001################################################################################
2#
3# hostboot_binaries
4#
5################################################################################
6
Stewart Smith062ec2d2018-04-29 20:24:20 -05007HOSTBOOT_BINARIES_VERSION = $(call qstrip,$(BR2_HOSTBOOT_BINARIES_VERSION))
Bill Hoffa5db414e2019-11-22 11:03:45 -06008# TODO: WORKAROUND: Need to reenable next line and comment out the two lines
9# after that, when code is propagated to a public repo
10#HOSTBOOT_BINARIES_SITE ?= $(call github,open-power,hostboot-binaries,$(HOSTBOOT_BINARIES_VERSION))
11HOSTBOOT_BINARIES_SITE ?= git@github.ibm.com:open-power/hostboot-binaries.git
12HOSTBOOT_BINARIES_SITE_METHOD ?= git
Bill Hoffa7ad6a872017-03-29 17:53:41 -050013
Bill Hoffa5f93f1d2014-06-26 21:02:48 -050014HOSTBOOT_BINARIES_LICENSE = Apache-2.0
Stewart Smithb16ba5b2017-01-10 12:55:55 +110015HOSTBOOT_BINARIES_LICENSE_FILES = LICENSE
Bill Hoffa5f93f1d2014-06-26 21:02:48 -050016
17HOSTBOOT_BINARIES_INSTALL_IMAGES = YES
18HOSTBOOT_BINARIES_INSTALL_TARGET = NO
19
Mike Baiocchi909ca462019-05-09 08:51:35 -050020# Creating Install Commands specific to P8 and P9
21# -- P8 does not need the nimbus and axone ring files
22# -- P9 does not need the SBE files ('sbe' package is used in P9)
23# -- P9 uses the 'hcode' package to build the BR2_HOSTBOOT_BINARY_WINK_FILENAME
24
25###################################
26# P8:
27ifeq ($(BR2_OPENPOWER_POWER8),y)
28define HOSTBOOT_BINARIES_INSTALL_IMAGES_CMDS
29 $(INSTALL) -D $(@D)/cvpd.bin $(STAGING_DIR)/hostboot_binaries/cvpd.bin
30 $(INSTALL) -D $(@D)/$(BR2_HOSTBOOT_BINARY_WINK_FILENAME) $(STAGING_DIR)/hostboot_binaries/
31 $(INSTALL) -D $(@D)/$(BR2_HOSTBOOT_BINARY_IONV_FILENAME) $(STAGING_DIR)/hostboot_binaries/
32 $(INSTALL) -D $(@D)/$(BR2_HOSTBOOT_BINARY_SBEC_FILENAME) $(STAGING_DIR)/hostboot_binaries/
33 $(INSTALL) -D $(@D)/$(BR2_HOSTBOOT_BINARY_SBE_FILENAME) $(STAGING_DIR)/hostboot_binaries/
34 $(INSTALL) -D $(@D)/gpu_gpe1.bin $(STAGING_DIR)/hostboot_binaries/gpu_gpe1.bin
35endef
36endif
37
38###################################
39# P9:
40ifeq ($(BR2_OPENPOWER_POWER9),y)
41
Richard J. Knight3f0e29c2017-10-13 10:39:01 -050042NIMBUS_RING_FILE=p9n.hw.rings.bin
43NIMBUS_RING_OVERLAYS_FILE=p9n.hw.overlays.bin
44
Mike Baiocchi3652aea2019-05-07 10:13:21 -050045AXONE_RING_FILE=p9a.hw.rings.bin
46AXONE_RING_OVERLAYS_FILE=p9a.hw.overlays.bin
47
Dean Sannerc2776802017-03-17 07:45:41 -050048
Bill Hoffa5f93f1d2014-06-26 21:02:48 -050049define HOSTBOOT_BINARIES_INSTALL_IMAGES_CMDS
50 $(INSTALL) -D $(@D)/cvpd.bin $(STAGING_DIR)/hostboot_binaries/cvpd.bin
Bill Hoffafbd4fbf2017-10-10 20:41:22 -050051 $(INSTALL) -D $(@D)/gpu_gpe1.bin $(STAGING_DIR)/hostboot_binaries/gpu_gpe1.bin
Mike Baiocchi909ca462019-05-09 08:51:35 -050052 $(INSTALL) -D $(@D)/$(BR2_HOSTBOOT_BINARY_IONV_FILENAME) $(STAGING_DIR)/hostboot_binaries/
53 $(INSTALL) -D $(@D)/$(BR2_HOSTBOOT_BINARY_SBEC_FILENAME) $(STAGING_DIR)/hostboot_binaries/
Richard J. Knight3f0e29c2017-10-13 10:39:01 -050054 $(INSTALL) -D $(@D)/$(NIMBUS_RING_FILE) $(STAGING_DIR)/hostboot_binaries/
55 $(INSTALL) -D $(@D)/$(NIMBUS_RING_OVERLAYS_FILE) $(STAGING_DIR)/hostboot_binaries/
Mike Baiocchi3652aea2019-05-07 10:13:21 -050056 $(INSTALL) -D $(@D)/$(AXONE_RING_FILE) $(STAGING_DIR)/hostboot_binaries/
57 $(INSTALL) -D $(@D)/$(AXONE_RING_OVERLAYS_FILE) $(STAGING_DIR)/hostboot_binaries/
Bill Hoffa5f93f1d2014-06-26 21:02:48 -050058endef
Mike Baiocchi909ca462019-05-09 08:51:35 -050059endif
60
Nick Bofferdingf390b6f2019-10-08 11:55:42 -050061###################################
Bill Hoffafbcb7112019-12-13 13:59:49 -060062# P10:
63ifeq ($(BR2_OPENPOWER_POWER10),y)
Bill Hoffa5db414e2019-11-22 11:03:45 -060064
65P10_RING_DYNAMIC_FILE=p10.hw.dynamic.bin
66P10_RING_OVERLAYS_FILE=p10.hw.overlays.bin
67P10_RING_QME_FILE=p10.hw.qme.rings.bin
68P10_RING_SBE_FILE=p10.hw.sbe.rings.bin
hostboot0dd36c12020-03-24 00:31:38 -050069P10_RING_FA_EC_CL2_FILE=p10.hw.fa_ec_cl2_far.bin
70P10_RING_FA_EC_MMA_FILE=p10.hw.fa_ec_mma_far.bin
71P10_RING_FA_OVRD_FILE=p10.hw.fa_ring_ovrd.bin
hostbooteaae3b52020-07-04 07:40:59 -050072P10_RING_DYNAMIC_FEATURES_FILE=p10.dynamic_features.bin
73P10_RING_DYNAMIC_SERVICES_FILE=p10.dynamic_services.bin
Bill Hoffaa85cd892020-09-23 13:58:09 -050074P10_RING_HDCT_FILE=p10.hw.hdct.bin
Bill Hoffa5db414e2019-11-22 11:03:45 -060075
76define HOSTBOOT_BINARIES_INSTALL_IMAGES_CMDS
Nick Bofferdingf390b6f2019-10-08 11:55:42 -050077 $(INSTALL) -D $(@D)/gpu_gpe1.bin $(STAGING_DIR)/hostboot_binaries/gpu_gpe1.bin
78 $(INSTALL) -D $(@D)/$(BR2_HOSTBOOT_BINARY_IONV_FILENAME) $(STAGING_DIR)/hostboot_binaries/
79 $(INSTALL) -D $(@D)/$(BR2_HOSTBOOT_BINARY_SBEC_FILENAME) $(STAGING_DIR)/hostboot_binaries/
Bill Hoffa5db414e2019-11-22 11:03:45 -060080 $(INSTALL) -D $(@D)/$(P10_RING_DYNAMIC_FILE) $(STAGING_DIR)/hostboot_binaries/
81 $(INSTALL) -D $(@D)/$(P10_RING_OVERLAYS_FILE) $(STAGING_DIR)/hostboot_binaries/
82 $(INSTALL) -D $(@D)/$(P10_RING_QME_FILE) $(STAGING_DIR)/hostboot_binaries/
83 $(INSTALL) -D $(@D)/$(P10_RING_SBE_FILE) $(STAGING_DIR)/hostboot_binaries/
hostboot0dd36c12020-03-24 00:31:38 -050084 $(INSTALL) -D $(@D)/$(P10_RING_FA_EC_CL2_FILE) $(STAGING_DIR)/hostboot_binaries/
85 $(INSTALL) -D $(@D)/$(P10_RING_FA_EC_MMA_FILE) $(STAGING_DIR)/hostboot_binaries/
86 $(INSTALL) -D $(@D)/$(P10_RING_FA_OVRD_FILE) $(STAGING_DIR)/hostboot_binaries/
hostbooteaae3b52020-07-04 07:40:59 -050087 $(INSTALL) -D $(@D)/$(P10_RING_DYNAMIC_FEATURES_FILE) $(STAGING_DIR)/hostboot_binaries/
88 $(INSTALL) -D $(@D)/$(P10_RING_DYNAMIC_SERVICES_FILE) $(STAGING_DIR)/hostboot_binaries/
Bill Hoffaa85cd892020-09-23 13:58:09 -050089 $(INSTALL) -D $(@D)/$(P10_RING_HDCT_FILE) $(STAGING_DIR)/hostboot_binaries/
Nick Bofferdingf390b6f2019-10-08 11:55:42 -050090endef
91endif
Bill Hoffa5f93f1d2014-06-26 21:02:48 -050092
93$(eval $(generic-package))