blob: f47247f95ab1779b997b0fe8f23a7e170dc40dd5 [file] [log] [blame]
Bill Hoffa5f93f1d2014-06-26 21:02:48 -05001################################################################################
2#
3# hostboot_binaries
4#
5################################################################################
6
Dean Sannerc2776802017-03-17 07:45:41 -05007HOSTBOOT_BINARIES_VERSION ?= 82b82cd06369f42a68935043427fa2bb5628372e
Nick Bofferding815ac662014-11-07 14:26:55 -06008HOSTBOOT_BINARIES_SITE ?= $(call github,open-power,hostboot-binaries,$(HOSTBOOT_BINARIES_VERSION))
Bill Hoffa5f93f1d2014-06-26 21:02:48 -05009HOSTBOOT_BINARIES_LICENSE = Apache-2.0
Stewart Smithb16ba5b2017-01-10 12:55:55 +110010HOSTBOOT_BINARIES_LICENSE_FILES = LICENSE
Bill Hoffa5f93f1d2014-06-26 21:02:48 -050011
12HOSTBOOT_BINARIES_INSTALL_IMAGES = YES
13HOSTBOOT_BINARIES_INSTALL_TARGET = NO
14
Dean Sannerc2776802017-03-17 07:45:41 -050015#for P9 the hw_ref image is changing to not be padded with ECC. However
16#all the other op-build files use the end name result. Thus replace ".hdr.bin.ecc"
17#with ".bin"
18BIN_FILENAME ?= $(if $(BR2_OPENPOWER_POWER9),$(subst hdr.bin.ecc,bin,$(BR2_HOSTBOOT_BINARY_WINK_FILENAME)),$(BR2_HOSTBOOT_BINARY_WINK_FILENAME))
19
Bill Hoffa5f93f1d2014-06-26 21:02:48 -050020define HOSTBOOT_BINARIES_INSTALL_IMAGES_CMDS
21 $(INSTALL) -D $(@D)/cvpd.bin $(STAGING_DIR)/hostboot_binaries/cvpd.bin
Dean Sannerc2776802017-03-17 07:45:41 -050022 $(INSTALL) -D $(@D)/$(BIN_FILENAME) $(STAGING_DIR)/hostboot_binaries/
Brian Silver131189b2014-11-10 08:11:22 -060023 $(INSTALL) -D $(@D)/$(BR2_HOSTBOOT_BINARY_SBEC_FILENAME) $(STAGING_DIR)/hostboot_binaries/
24 $(INSTALL) -D $(@D)/$(BR2_HOSTBOOT_BINARY_SBE_FILENAME) $(STAGING_DIR)/hostboot_binaries/
Bill Hoffa5f93f1d2014-06-26 21:02:48 -050025endef
26
27$(eval $(generic-package))