Bill Hoffa | 128bda4 | 2019-07-10 16:34:55 -0500 | [diff] [blame] | 1 | ################################################################################ |
| 2 | # |
| 3 | # ocmb-explorer-fw |
| 4 | # |
| 5 | ################################################################################ |
| 6 | |
| 7 | |
| 8 | OCMB_EXPLORER_FW_VERSION ?= $(call qstrip,$(BR2_OCMB_EXPLORER_FW_VERSION)) |
Klaus Heinrich Kiwi | 8b923b1 | 2020-08-10 15:03:44 -0500 | [diff] [blame] | 9 | OCMB_EXPLORER_FW_SOURCE ?= $(call qstrip,$(BR2_OCMB_EXPLORER_FW_SOURCE)) |
| 10 | OCMB_EXPLORER_FW_SITE ?= $(call qstrip,$(BR2_OCMB_EXPLORER_FW_SITE)) |
Bill Hoffa | 128bda4 | 2019-07-10 16:34:55 -0500 | [diff] [blame] | 11 | |
| 12 | OCMB_EXPLORER_FW_LICENSE = Apache-2.0 |
Klaus Heinrich Kiwi | 8b923b1 | 2020-08-10 15:03:44 -0500 | [diff] [blame] | 13 | OCMB_EXPLORER_FW_LICENSE_FILES = LICENSE.pdf |
Bill Hoffa | 128bda4 | 2019-07-10 16:34:55 -0500 | [diff] [blame] | 14 | |
| 15 | OCMB_EXPLORER_FW_INSTALL_IMAGES = YES |
| 16 | OCMB_EXPLORER_FW_INSTALL_TARGET = NO |
| 17 | |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 18 | ifeq ($(BR2_PACKAGE_OPENPOWER_PNOR_P10),y) |
| 19 | OCMBFW_FILENAME = $(call qstrip,$(BR2_OCMBFW_FILENAME)) |
| 20 | else |
| 21 | OCMBFW_FILENAME = $(call qstrip,$(BR2_OCMBFW_P10_FILENAME)) |
| 22 | endif |
| 23 | |
Bill Hoffa | 128bda4 | 2019-07-10 16:34:55 -0500 | [diff] [blame] | 24 | # Commands to extract and install the Open Capi Memory Buffer Firmware (OCMBFW) |
| 25 | define OCMB_EXPLORER_FW_INSTALL_IMAGES_CMDS |
Klaus Heinrich Kiwi | 01fa05b | 2020-06-17 19:20:33 -0300 | [diff] [blame] | 26 | $(INSTALL) -D $(@D)/$(call qstrip,$(BR2_OCMBFW_FILENAME)) $(BINARIES_DIR)/ |
Bill Hoffa | 128bda4 | 2019-07-10 16:34:55 -0500 | [diff] [blame] | 27 | endef |
| 28 | |
| 29 | define OCMB_EXPLORER_FW_EXTRACT_CMDS |
Klaus Heinrich Kiwi | 8b923b1 | 2020-08-10 15:03:44 -0500 | [diff] [blame] | 30 | $(UNZIP) -d $(@D) $(OCMB_EXPLORER_FW_DL_DIR)/$(OCMB_EXPLORER_FW_SOURCE) |
| 31 | mv $(@D)/*LICENSE*.pdf $(@D)/LICENSE.pdf |
Bill Hoffa | 128bda4 | 2019-07-10 16:34:55 -0500 | [diff] [blame] | 32 | endef |
| 33 | |
| 34 | $(eval $(generic-package)) |