blob: 3fa1ecdfbd8fc96a6acf9ed87180ebe03e0820a4 [file] [log] [blame]
Bill Hoffa5f93f1d2014-06-26 21:02:48 -05001################################################################################
2#
3# hostboot_binaries
4#
5################################################################################
6
William Hoffa9ee62072017-10-04 21:39:46 -05007
hostboot761a0cd2018-05-01 01:17:03 -05008HOSTBOOT_BINARIES_VERSION ?= 148fbe195c171dc05a823ea05e82d1bd01bdabaa
Nick Bofferding815ac662014-11-07 14:26:55 -06009HOSTBOOT_BINARIES_SITE ?= $(call github,open-power,hostboot-binaries,$(HOSTBOOT_BINARIES_VERSION))
Bill Hoffa7ad6a872017-03-29 17:53:41 -050010
Bill Hoffa5f93f1d2014-06-26 21:02:48 -050011HOSTBOOT_BINARIES_LICENSE = Apache-2.0
Stewart Smithb16ba5b2017-01-10 12:55:55 +110012HOSTBOOT_BINARIES_LICENSE_FILES = LICENSE
Bill Hoffa5f93f1d2014-06-26 21:02:48 -050013
14HOSTBOOT_BINARIES_INSTALL_IMAGES = YES
15HOSTBOOT_BINARIES_INSTALL_TARGET = NO
16
Richard J. Knight3f0e29c2017-10-13 10:39:01 -050017NIMBUS_RING_FILE=p9n.hw.rings.bin
18NIMBUS_RING_OVERLAYS_FILE=p9n.hw.overlays.bin
19
Dean Sannerc2776802017-03-17 07:45:41 -050020#for P9 the hw_ref image is changing to not be padded with ECC. However
21#all the other op-build files use the end name result. Thus replace ".hdr.bin.ecc"
22#with ".bin"
23BIN_FILENAME ?= $(if $(BR2_OPENPOWER_POWER9),$(subst hdr.bin.ecc,bin,$(BR2_HOSTBOOT_BINARY_WINK_FILENAME)),$(BR2_HOSTBOOT_BINARY_WINK_FILENAME))
24
Bill Hoffa5f93f1d2014-06-26 21:02:48 -050025define HOSTBOOT_BINARIES_INSTALL_IMAGES_CMDS
26 $(INSTALL) -D $(@D)/cvpd.bin $(STAGING_DIR)/hostboot_binaries/cvpd.bin
Dean Sannerc2776802017-03-17 07:45:41 -050027 $(INSTALL) -D $(@D)/$(BIN_FILENAME) $(STAGING_DIR)/hostboot_binaries/
Brian Silver131189b2014-11-10 08:11:22 -060028 $(INSTALL) -D $(@D)/$(BR2_HOSTBOOT_BINARY_SBEC_FILENAME) $(STAGING_DIR)/hostboot_binaries/
29 $(INSTALL) -D $(@D)/$(BR2_HOSTBOOT_BINARY_SBE_FILENAME) $(STAGING_DIR)/hostboot_binaries/
Bill Hoffafbd4fbf2017-10-10 20:41:22 -050030 $(INSTALL) -D $(@D)/gpu_gpe1.bin $(STAGING_DIR)/hostboot_binaries/gpu_gpe1.bin
Richard J. Knight3f0e29c2017-10-13 10:39:01 -050031 $(INSTALL) -D $(@D)/$(NIMBUS_RING_FILE) $(STAGING_DIR)/hostboot_binaries/
32 $(INSTALL) -D $(@D)/$(NIMBUS_RING_OVERLAYS_FILE) $(STAGING_DIR)/hostboot_binaries/
33 $(INSTALL) -D $(@D)/$(BR2_HOSTBOOT_BINARY_IONV_FILENAME) $(STAGING_DIR)/hostboot_binaries/
Bill Hoffa5f93f1d2014-06-26 21:02:48 -050034endef
35
36$(eval $(generic-package))