blob: c3f6796a8d998d8a195caacb8cd36bde2c9a5d2a [file] [log] [blame]
Bill Hoffa128bda42019-07-10 16:34:55 -05001################################################################################
2#
3# ocmb-explorer-fw
4#
5################################################################################
6
7
8OCMB_EXPLORER_FW_VERSION ?= $(call qstrip,$(BR2_OCMB_EXPLORER_FW_VERSION))
Klaus Heinrich Kiwi8b923b12020-08-10 15:03:44 -05009OCMB_EXPLORER_FW_SOURCE ?= $(call qstrip,$(BR2_OCMB_EXPLORER_FW_SOURCE))
10OCMB_EXPLORER_FW_SITE ?= $(call qstrip,$(BR2_OCMB_EXPLORER_FW_SITE))
Bill Hoffa128bda42019-07-10 16:34:55 -050011
12OCMB_EXPLORER_FW_LICENSE = Apache-2.0
Klaus Heinrich Kiwi8b923b12020-08-10 15:03:44 -050013OCMB_EXPLORER_FW_LICENSE_FILES = LICENSE.pdf
Bill Hoffa128bda42019-07-10 16:34:55 -050014
15OCMB_EXPLORER_FW_INSTALL_IMAGES = YES
16OCMB_EXPLORER_FW_INSTALL_TARGET = NO
17
Klaus Heinrich Kiwid2551242020-07-16 16:59:04 -030018ifeq ($(BR2_PACKAGE_OPENPOWER_PNOR_P10),y)
19OCMBFW_FILENAME = $(call qstrip,$(BR2_OCMBFW_FILENAME))
20else
21OCMBFW_FILENAME = $(call qstrip,$(BR2_OCMBFW_P10_FILENAME))
22endif
23
Bill Hoffa128bda42019-07-10 16:34:55 -050024# Commands to extract and install the Open Capi Memory Buffer Firmware (OCMBFW)
25define OCMB_EXPLORER_FW_INSTALL_IMAGES_CMDS
Klaus Heinrich Kiwi01fa05b2020-06-17 19:20:33 -030026 $(INSTALL) -D $(@D)/$(call qstrip,$(BR2_OCMBFW_FILENAME)) $(BINARIES_DIR)/
Bill Hoffa128bda42019-07-10 16:34:55 -050027endef
28
29define OCMB_EXPLORER_FW_EXTRACT_CMDS
Klaus Heinrich Kiwi8b923b12020-08-10 15:03:44 -050030 $(UNZIP) -d $(@D) $(OCMB_EXPLORER_FW_DL_DIR)/$(OCMB_EXPLORER_FW_SOURCE)
31 mv $(@D)/*LICENSE*.pdf $(@D)/LICENSE.pdf
Bill Hoffa128bda42019-07-10 16:34:55 -050032endef
33
34$(eval $(generic-package))