blob: bd529dd61baa3f71a01bf22458a9c396d3e3e674 [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))
Ilya Smirnovd56cef72021-06-23 09:34:37 -05008HOSTBOOT_BINARIES_SITE ?= $(call github,open-power,hostboot-binaries,$(HOSTBOOT_BINARIES_VERSION))
Bill Hoffa7ad6a872017-03-29 17:53:41 -05009
Bill Hoffa5f93f1d2014-06-26 21:02:48 -050010HOSTBOOT_BINARIES_LICENSE = Apache-2.0
Stewart Smithb16ba5b2017-01-10 12:55:55 +110011HOSTBOOT_BINARIES_LICENSE_FILES = LICENSE
Bill Hoffa5f93f1d2014-06-26 21:02:48 -050012
13HOSTBOOT_BINARIES_INSTALL_IMAGES = YES
14HOSTBOOT_BINARIES_INSTALL_TARGET = NO
15
Nick Bofferding40f80402019-09-10 18:07:04 -050016# Creating Install Commands specific to P9
Mike Baiocchi909ca462019-05-09 08:51:35 -050017# -- P9 does not need the SBE files ('sbe' package is used in P9)
18# -- P9 uses the 'hcode' package to build the BR2_HOSTBOOT_BINARY_WINK_FILENAME
19
20###################################
Mike Baiocchi909ca462019-05-09 08:51:35 -050021# P9:
22ifeq ($(BR2_OPENPOWER_POWER9),y)
23
Richard J. Knight3f0e29c2017-10-13 10:39:01 -050024NIMBUS_RING_FILE=p9n.hw.rings.bin
25NIMBUS_RING_OVERLAYS_FILE=p9n.hw.overlays.bin
26
Mike Baiocchi3652aea2019-05-07 10:13:21 -050027AXONE_RING_FILE=p9a.hw.rings.bin
28AXONE_RING_OVERLAYS_FILE=p9a.hw.overlays.bin
29
Dean Sannerc2776802017-03-17 07:45:41 -050030
Bill Hoffa5f93f1d2014-06-26 21:02:48 -050031define HOSTBOOT_BINARIES_INSTALL_IMAGES_CMDS
32 $(INSTALL) -D $(@D)/cvpd.bin $(STAGING_DIR)/hostboot_binaries/cvpd.bin
Bill Hoffafbd4fbf2017-10-10 20:41:22 -050033 $(INSTALL) -D $(@D)/gpu_gpe1.bin $(STAGING_DIR)/hostboot_binaries/gpu_gpe1.bin
Mike Baiocchi909ca462019-05-09 08:51:35 -050034 $(INSTALL) -D $(@D)/$(BR2_HOSTBOOT_BINARY_IONV_FILENAME) $(STAGING_DIR)/hostboot_binaries/
35 $(INSTALL) -D $(@D)/$(BR2_HOSTBOOT_BINARY_SBEC_FILENAME) $(STAGING_DIR)/hostboot_binaries/
Richard J. Knight3f0e29c2017-10-13 10:39:01 -050036 $(INSTALL) -D $(@D)/$(NIMBUS_RING_FILE) $(STAGING_DIR)/hostboot_binaries/
37 $(INSTALL) -D $(@D)/$(NIMBUS_RING_OVERLAYS_FILE) $(STAGING_DIR)/hostboot_binaries/
Mike Baiocchi3652aea2019-05-07 10:13:21 -050038 $(INSTALL) -D $(@D)/$(AXONE_RING_FILE) $(STAGING_DIR)/hostboot_binaries/
39 $(INSTALL) -D $(@D)/$(AXONE_RING_OVERLAYS_FILE) $(STAGING_DIR)/hostboot_binaries/
Bill Hoffa5f93f1d2014-06-26 21:02:48 -050040endef
Mike Baiocchi909ca462019-05-09 08:51:35 -050041endif
42
Nick Bofferdingf390b6f2019-10-08 11:55:42 -050043###################################
Bill Hoffafbcb7112019-12-13 13:59:49 -060044# P10:
45ifeq ($(BR2_OPENPOWER_POWER10),y)
Bill Hoffa5db414e2019-11-22 11:03:45 -060046
Klaus Heinrich Kiwid2551242020-07-16 16:59:04 -030047ifeq ($(BR2_PACKAGE_OPENPOWER_PNOR_P10),y)
48BINARY_IONV_FILENAME=$(BR2_HOSTBOOT_P10_BINARY_IONV_FILENAME)
49BINARY_SBEC_FILENAME=$(BR2_HOSTBOOT_P10_BINARY_SBEC_FILENAME)
50else
51BINARY_IONV_FILENAME=$(BR2_HOSTBOOT_BINARY_IONV_FILENAME)
52BINARY_SBEC_FILENAME=$(BR2_HOSTBOOT_BINARY_SBEC_FILENAME)
53endif
54
Bill Hoffa5db414e2019-11-22 11:03:45 -060055P10_RING_DYNAMIC_FILE=p10.hw.dynamic.bin
56P10_RING_OVERLAYS_FILE=p10.hw.overlays.bin
57P10_RING_QME_FILE=p10.hw.qme.rings.bin
58P10_RING_SBE_FILE=p10.hw.sbe.rings.bin
hostboot0dd36c12020-03-24 00:31:38 -050059P10_RING_FA_EC_CL2_FILE=p10.hw.fa_ec_cl2_far.bin
60P10_RING_FA_EC_MMA_FILE=p10.hw.fa_ec_mma_far.bin
61P10_RING_FA_OVRD_FILE=p10.hw.fa_ring_ovrd.bin
hostbooteaae3b52020-07-04 07:40:59 -050062P10_RING_DYNAMIC_FEATURES_FILE=p10.dynamic_features.bin
63P10_RING_DYNAMIC_SERVICES_FILE=p10.dynamic_services.bin
Bill Hoffaa85cd892020-09-23 13:58:09 -050064P10_RING_HDCT_FILE=p10.hw.hdct.bin
Bill Hoffa5db414e2019-11-22 11:03:45 -060065
66define HOSTBOOT_BINARIES_INSTALL_IMAGES_CMDS
Nick Bofferdingf390b6f2019-10-08 11:55:42 -050067 $(INSTALL) -D $(@D)/gpu_gpe1.bin $(STAGING_DIR)/hostboot_binaries/gpu_gpe1.bin
Klaus Heinrich Kiwid2551242020-07-16 16:59:04 -030068 $(INSTALL) -D $(@D)/$(BINARY_IONV_FILENAME) $(STAGING_DIR)/hostboot_binaries/
69 $(INSTALL) -D $(@D)/$(BINARY_SBEC_FILENAME) $(STAGING_DIR)/hostboot_binaries/
Bill Hoffa5db414e2019-11-22 11:03:45 -060070 $(INSTALL) -D $(@D)/$(P10_RING_DYNAMIC_FILE) $(STAGING_DIR)/hostboot_binaries/
71 $(INSTALL) -D $(@D)/$(P10_RING_OVERLAYS_FILE) $(STAGING_DIR)/hostboot_binaries/
72 $(INSTALL) -D $(@D)/$(P10_RING_QME_FILE) $(STAGING_DIR)/hostboot_binaries/
73 $(INSTALL) -D $(@D)/$(P10_RING_SBE_FILE) $(STAGING_DIR)/hostboot_binaries/
hostboot0dd36c12020-03-24 00:31:38 -050074 $(INSTALL) -D $(@D)/$(P10_RING_FA_EC_CL2_FILE) $(STAGING_DIR)/hostboot_binaries/
75 $(INSTALL) -D $(@D)/$(P10_RING_FA_EC_MMA_FILE) $(STAGING_DIR)/hostboot_binaries/
76 $(INSTALL) -D $(@D)/$(P10_RING_FA_OVRD_FILE) $(STAGING_DIR)/hostboot_binaries/
hostbooteaae3b52020-07-04 07:40:59 -050077 $(INSTALL) -D $(@D)/$(P10_RING_DYNAMIC_FEATURES_FILE) $(STAGING_DIR)/hostboot_binaries/
78 $(INSTALL) -D $(@D)/$(P10_RING_DYNAMIC_SERVICES_FILE) $(STAGING_DIR)/hostboot_binaries/
Bill Hoffaa85cd892020-09-23 13:58:09 -050079 $(INSTALL) -D $(@D)/$(P10_RING_HDCT_FILE) $(STAGING_DIR)/hostboot_binaries/
Nick Bofferdingf390b6f2019-10-08 11:55:42 -050080endef
81endif
Bill Hoffa5f93f1d2014-06-26 21:02:48 -050082
83$(eval $(generic-package))