blob: 2fa2d7fda4bd20a67f9927361fd034e32dc64964 [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
Klaus Heinrich Kiwid2551242020-07-16 16:59:04 -030065ifeq ($(BR2_PACKAGE_OPENPOWER_PNOR_P10),y)
66BINARY_IONV_FILENAME=$(BR2_HOSTBOOT_P10_BINARY_IONV_FILENAME)
67BINARY_SBEC_FILENAME=$(BR2_HOSTBOOT_P10_BINARY_SBEC_FILENAME)
68else
69BINARY_IONV_FILENAME=$(BR2_HOSTBOOT_BINARY_IONV_FILENAME)
70BINARY_SBEC_FILENAME=$(BR2_HOSTBOOT_BINARY_SBEC_FILENAME)
71endif
72
Bill Hoffa5db414e2019-11-22 11:03:45 -060073P10_RING_DYNAMIC_FILE=p10.hw.dynamic.bin
74P10_RING_OVERLAYS_FILE=p10.hw.overlays.bin
75P10_RING_QME_FILE=p10.hw.qme.rings.bin
76P10_RING_SBE_FILE=p10.hw.sbe.rings.bin
hostboot0dd36c12020-03-24 00:31:38 -050077P10_RING_FA_EC_CL2_FILE=p10.hw.fa_ec_cl2_far.bin
78P10_RING_FA_EC_MMA_FILE=p10.hw.fa_ec_mma_far.bin
79P10_RING_FA_OVRD_FILE=p10.hw.fa_ring_ovrd.bin
hostbooteaae3b52020-07-04 07:40:59 -050080P10_RING_DYNAMIC_FEATURES_FILE=p10.dynamic_features.bin
81P10_RING_DYNAMIC_SERVICES_FILE=p10.dynamic_services.bin
Bill Hoffaa85cd892020-09-23 13:58:09 -050082P10_RING_HDCT_FILE=p10.hw.hdct.bin
Bill Hoffa5db414e2019-11-22 11:03:45 -060083
84define HOSTBOOT_BINARIES_INSTALL_IMAGES_CMDS
Nick Bofferdingf390b6f2019-10-08 11:55:42 -050085 $(INSTALL) -D $(@D)/gpu_gpe1.bin $(STAGING_DIR)/hostboot_binaries/gpu_gpe1.bin
Klaus Heinrich Kiwid2551242020-07-16 16:59:04 -030086 $(INSTALL) -D $(@D)/$(BINARY_IONV_FILENAME) $(STAGING_DIR)/hostboot_binaries/
87 $(INSTALL) -D $(@D)/$(BINARY_SBEC_FILENAME) $(STAGING_DIR)/hostboot_binaries/
Bill Hoffa5db414e2019-11-22 11:03:45 -060088 $(INSTALL) -D $(@D)/$(P10_RING_DYNAMIC_FILE) $(STAGING_DIR)/hostboot_binaries/
89 $(INSTALL) -D $(@D)/$(P10_RING_OVERLAYS_FILE) $(STAGING_DIR)/hostboot_binaries/
90 $(INSTALL) -D $(@D)/$(P10_RING_QME_FILE) $(STAGING_DIR)/hostboot_binaries/
91 $(INSTALL) -D $(@D)/$(P10_RING_SBE_FILE) $(STAGING_DIR)/hostboot_binaries/
hostboot0dd36c12020-03-24 00:31:38 -050092 $(INSTALL) -D $(@D)/$(P10_RING_FA_EC_CL2_FILE) $(STAGING_DIR)/hostboot_binaries/
93 $(INSTALL) -D $(@D)/$(P10_RING_FA_EC_MMA_FILE) $(STAGING_DIR)/hostboot_binaries/
94 $(INSTALL) -D $(@D)/$(P10_RING_FA_OVRD_FILE) $(STAGING_DIR)/hostboot_binaries/
hostbooteaae3b52020-07-04 07:40:59 -050095 $(INSTALL) -D $(@D)/$(P10_RING_DYNAMIC_FEATURES_FILE) $(STAGING_DIR)/hostboot_binaries/
96 $(INSTALL) -D $(@D)/$(P10_RING_DYNAMIC_SERVICES_FILE) $(STAGING_DIR)/hostboot_binaries/
Bill Hoffaa85cd892020-09-23 13:58:09 -050097 $(INSTALL) -D $(@D)/$(P10_RING_HDCT_FILE) $(STAGING_DIR)/hostboot_binaries/
Nick Bofferdingf390b6f2019-10-08 11:55:42 -050098endef
99endif
Bill Hoffa5f93f1d2014-06-26 21:02:48 -0500100
101$(eval $(generic-package))