Bill Hoffa | 5f93f1d | 2014-06-26 21:02:48 -0500 | [diff] [blame] | 1 | ################################################################################ |
| 2 | # |
| 3 | # openpower_pnor |
| 4 | # |
| 5 | ################################################################################ |
| 6 | |
hostboot | 5ad5b75 | 2020-12-02 01:11:04 -0600 | [diff] [blame^] | 7 | OPENPOWER_PNOR_VERSION ?= aa4c350255616b6406830fd6b564aebefaf7add4 |
Nick Bofferding | b82aaef | 2014-11-07 14:29:18 -0600 | [diff] [blame] | 8 | OPENPOWER_PNOR_SITE ?= $(call github,open-power,pnor,$(OPENPOWER_PNOR_VERSION)) |
Brian Silver | cb56555 | 2014-12-11 12:51:36 -0600 | [diff] [blame] | 9 | |
Bill Hoffa | 5f93f1d | 2014-06-26 21:02:48 -0500 | [diff] [blame] | 10 | OPENPOWER_PNOR_LICENSE = Apache-2.0 |
Stewart Smith | b16ba5b | 2017-01-10 12:55:55 +1100 | [diff] [blame] | 11 | OPENPOWER_PNOR_LICENSE_FILES = LICENSE |
Lei YU | 98c3c06 | 2019-03-06 16:09:02 +0800 | [diff] [blame] | 12 | OPENPOWER_PNOR_DEPENDENCIES = hostboot-binaries machine-xml skiboot host-openpower-ffs capp-ucode host-openpower-pnor-util |
Bill Hoffa | 5f93f1d | 2014-06-26 21:02:48 -0500 | [diff] [blame] | 13 | |
Richard J. Knight | 3f0e29c | 2017-10-13 10:39:01 -0500 | [diff] [blame] | 14 | ifeq ($(BR2_OPENPOWER_POWER9),y) |
| 15 | OPENPOWER_PNOR_DEPENDENCIES += hcode |
| 16 | endif |
| 17 | |
William A. Kennington III | 036c7d7 | 2017-03-17 12:58:56 -0700 | [diff] [blame] | 18 | ifeq ($(BR2_PACKAGE_IMA_CATALOG),y) |
| 19 | OPENPOWER_PNOR_DEPENDENCIES += ima-catalog |
| 20 | endif |
| 21 | |
Stewart Smith | 898245e | 2016-03-30 15:26:23 +1100 | [diff] [blame] | 22 | ifeq ($(BR2_PACKAGE_SKIBOOT_EMBED_PAYLOAD),n) |
Joel Stanley | 2aff5ba | 2015-02-01 14:49:18 +1030 | [diff] [blame] | 23 | |
| 24 | ifeq ($(BR2_TARGET_ROOTFS_INITRAMFS),y) |
Stewart Smith | 906bdba | 2015-08-26 16:05:20 +1000 | [diff] [blame] | 25 | OPENPOWER_PNOR_DEPENDENCIES += linux-rebuild-with-initramfs |
Joel Stanley | 2aff5ba | 2015-02-01 14:49:18 +1030 | [diff] [blame] | 26 | else |
| 27 | OPENPOWER_PNOR_DEPENDENCIES += linux |
| 28 | endif |
| 29 | |
| 30 | endif |
| 31 | |
Elizabeth Liner | fbd6c45 | 2016-03-31 10:38:17 -0500 | [diff] [blame] | 32 | ifeq ($(BR2_OPENPOWER_PNOR_XZ_ENABLED),y) |
Jeremy Kerr | c780084 | 2016-07-22 14:01:17 +0800 | [diff] [blame] | 33 | OPENPOWER_PNOR_DEPENDENCIES += host-xz |
Nick Bofferding | 54deceb | 2017-06-28 23:07:35 -0500 | [diff] [blame] | 34 | XZ_ARG=-xz_compression |
| 35 | endif |
| 36 | |
| 37 | OPENPOWER_PNOR_DEPENDENCIES += host-sb-signing-utils |
| 38 | |
| 39 | ifeq ($(BR2_OPENPOWER_SECUREBOOT_KEY_TRANSITION_TO_DEV),y) |
| 40 | KEY_TRANSITION_ARG=-key_transition imprint |
| 41 | else ifeq ($(BR2_OPENPOWER_SECUREBOOT_KEY_TRANSITION_TO_PROD),y) |
| 42 | KEY_TRANSITION_ARG=-key_transition production |
| 43 | endif |
| 44 | |
| 45 | ifneq ($(BR2_OPENPOWER_SECUREBOOT_SIGN_MODE),"") |
| 46 | SIGN_MODE_ARG=-sign_mode $(BR2_OPENPOWER_SECUREBOOT_SIGN_MODE) |
Elizabeth Liner | fbd6c45 | 2016-03-31 10:38:17 -0500 | [diff] [blame] | 47 | endif |
| 48 | |
Matt Ploetz | b4d85b1 | 2016-09-29 20:24:14 -0500 | [diff] [blame] | 49 | ifeq ($(BR2_OPENPOWER_POWER9),y) |
| 50 | OPENPOWER_RELEASE=p9 |
Matt Ploetz | b4d85b1 | 2016-09-29 20:24:14 -0500 | [diff] [blame] | 51 | endif |
| 52 | |
Bill Hoffa | 5f93f1d | 2014-06-26 21:02:48 -0500 | [diff] [blame] | 53 | OPENPOWER_PNOR_INSTALL_IMAGES = YES |
| 54 | OPENPOWER_PNOR_INSTALL_TARGET = NO |
| 55 | |
Bill Hoffa | 5f93f1d | 2014-06-26 21:02:48 -0500 | [diff] [blame] | 56 | HOSTBOOT_IMAGE_DIR=$(STAGING_DIR)/hostboot_build_images/ |
Richard J. Knight | 3f0e29c | 2017-10-13 10:39:01 -0500 | [diff] [blame] | 57 | HOSTBOOT_BINARY_DIR = $(STAGING_DIR)/hostboot_binaries |
| 58 | |
| 59 | HCODE_STAGING_DIR = $(STAGING_DIR)/hcode |
| 60 | |
Sachin Gupta | df0b6a0 | 2017-03-16 08:59:51 -0500 | [diff] [blame] | 61 | SBE_BINARY_DIR = $(STAGING_DIR)/sbe_binaries/ |
Bill Hoffa | 5f93f1d | 2014-06-26 21:02:48 -0500 | [diff] [blame] | 62 | OPENPOWER_PNOR_SCRATCH_DIR = $(STAGING_DIR)/openpower_pnor_scratch/ |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 63 | OPENPOWER_VERSION_DIR = $(STAGING_DIR)/openpower_version |
Elizabeth Liner | d1a29c1 | 2017-05-15 18:03:21 -0500 | [diff] [blame] | 64 | OPENPOWER_MRW_SCRATCH_DIR = $(STAGING_DIR)/openpower_mrw_scratch |
Ilya Smirnov | 2e3ba64 | 2017-09-15 12:18:35 -0500 | [diff] [blame] | 65 | OUTPUT_BUILD_DIR = $(STAGING_DIR)/../../../build/ |
| 66 | OUTPUT_IMAGES_DIR = $(STAGING_DIR)/../../../images/ |
Joel Stanley | 7bfd120 | 2019-03-05 16:11:44 +1030 | [diff] [blame] | 67 | HOSTBOOT_BUILD_IMAGES_DIR = $(STAGING_DIR)/hostboot_build_images/ |
Luis Fernandez | dcc24ec | 2019-10-01 23:52:35 -0500 | [diff] [blame] | 68 | # See Open-Power's Hostboot repo, file: src/build/buildpnor/PnorUtils.pm, |
| 69 | # function: loadPnorLayout(); at the end of that function the generated XML file |
| 70 | # is concatenated with "WithOffsets.xml" |
| 71 | GENERATED_PNOR_LAYOUT_FILES = $(shell find "$(OPENPOWER_PNOR_SCRATCH_DIR)" -maxdepth 1 -name "*WithOffsets.xml") |
Ilya Smirnov | 2e3ba64 | 2017-09-15 12:18:35 -0500 | [diff] [blame] | 72 | |
| 73 | FILES_TO_TAR = $(HOSTBOOT_BUILD_IMAGES_DIR)/* \ |
Klaus Heinrich Kiwi | 1a083ef | 2020-05-20 15:06:13 -0300 | [diff] [blame] | 74 | $(OUTPUT_BUILD_DIR)/skiboot-$(SKIBOOT_VERSION)/skiboot.elf \ |
| 75 | $(OUTPUT_BUILD_DIR)/skiboot-$(SKIBOOT_VERSION)/skiboot.map \ |
| 76 | $(OUTPUT_BUILD_DIR)/linux-$(LINUX_VERSION)/.config \ |
| 77 | $(OUTPUT_BUILD_DIR)/linux-$(LINUX_VERSION)/vmlinux \ |
| 78 | $(OUTPUT_BUILD_DIR)/linux-$(LINUX_VERSION)/System.map \ |
Luis Fernandez | dcc24ec | 2019-10-01 23:52:35 -0500 | [diff] [blame] | 79 | $(OUTPUT_IMAGES_DIR)/zImage.epapr \ |
| 80 | $(GENERATED_PNOR_LAYOUT_FILES) |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 81 | |
| 82 | # Subpackages we want to include in the version info (do not include openpower-pnor) |
Stewart Smith | 03671c0 | 2017-02-17 14:57:57 +1100 | [diff] [blame] | 83 | OPENPOWER_VERSIONED_SUBPACKAGES = skiboot |
Nick Bofferding | 40f8040 | 2019-09-10 18:07:04 -0500 | [diff] [blame] | 84 | |
Stewart Smith | 03671c0 | 2017-02-17 14:57:57 +1100 | [diff] [blame] | 85 | ifeq ($(BR2_PACKAGE_HOSTBOOT),y) |
| 86 | OPENPOWER_VERSIONED_SUBPACKAGES += hostboot occ |
| 87 | endif |
Bill Hoffa | 4bbdddb | 2020-06-17 23:04:16 -0500 | [diff] [blame] | 88 | ifeq ($(BR2_PACKAGE_OCMB_EXPLORER_FW),y) |
| 89 | OPENPOWER_VERSIONED_SUBPACKAGES += ocmb-explorer-fw |
| 90 | endif |
Stewart Smith | 03671c0 | 2017-02-17 14:57:57 +1100 | [diff] [blame] | 91 | OPENPOWER_VERSIONED_SUBPACKAGES += linux petitboot machine-xml hostboot-binaries capp-ucode |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 92 | OPENPOWER_PNOR = openpower-pnor |
Bill Hoffa | 5f93f1d | 2014-06-26 21:02:48 -0500 | [diff] [blame] | 93 | |
Sachin Gupta | df0b6a0 | 2017-03-16 08:59:51 -0500 | [diff] [blame] | 94 | ifeq ($(BR2_OPENPOWER_POWER9),y) |
Stewart Smith | 736a08b | 2018-04-19 19:00:26 -0500 | [diff] [blame] | 95 | OPENPOWER_PNOR_DEPENDENCIES += sbe hcode |
| 96 | OPENPOWER_VERSIONED_SUBPACKAGES += sbe hcode |
Sachin Gupta | df0b6a0 | 2017-03-16 08:59:51 -0500 | [diff] [blame] | 97 | endif |
| 98 | |
Nick Bofferding | 40f8040 | 2019-09-10 18:07:04 -0500 | [diff] [blame] | 99 | ifeq ($(BR2_PACKAGE_OCC),y) |
Stewart Smith | 03671c0 | 2017-02-17 14:57:57 +1100 | [diff] [blame] | 100 | OCC_BIN_FILENAME=$(BR2_OCC_BIN_FILENAME) |
| 101 | endif |
| 102 | |
Klaus Heinrich Kiwi | 01fa05b | 2020-06-17 19:20:33 -0300 | [diff] [blame] | 103 | ifeq ($(BR2_PACKAGE_OCMB_EXPLORER_FW),y) |
| 104 | OCMB_EXPLORER_FW_URL=$(call qstrip,$(OCMB_EXPLORER_FW_SITE)/$(OCMB_EXPLORER_FW_SOURCE)) |
| 105 | endif |
| 106 | |
Bill Hoffa | 5f93f1d | 2014-06-26 21:02:48 -0500 | [diff] [blame] | 107 | define OPENPOWER_PNOR_INSTALL_IMAGES_CMDS |
| 108 | mkdir -p $(OPENPOWER_PNOR_SCRATCH_DIR) |
Brian Silver | 015b591 | 2014-08-07 15:50:15 -0500 | [diff] [blame] | 109 | |
Brian Silver | 137a00a | 2014-11-11 12:09:53 -0600 | [diff] [blame] | 110 | $(TARGET_MAKE_ENV) $(@D)/update_image.pl \ |
Matt Ploetz | b4d85b1 | 2016-09-29 20:24:14 -0500 | [diff] [blame] | 111 | -release $(OPENPOWER_RELEASE) \ |
Brian Silver | 015b591 | 2014-08-07 15:50:15 -0500 | [diff] [blame] | 112 | -op_target_dir $(HOSTBOOT_IMAGE_DIR) \ |
Brian Silver | 131189b | 2014-11-10 08:11:22 -0600 | [diff] [blame] | 113 | -hb_image_dir $(HOSTBOOT_IMAGE_DIR) \ |
| 114 | -scratch_dir $(OPENPOWER_PNOR_SCRATCH_DIR) \ |
| 115 | -hb_binary_dir $(HOSTBOOT_BINARY_DIR) \ |
Richard J. Knight | 3f0e29c | 2017-10-13 10:39:01 -0500 | [diff] [blame] | 116 | -hcode_dir $(HCODE_STAGING_DIR) \ |
Brian Silver | 131189b | 2014-11-10 08:11:22 -0600 | [diff] [blame] | 117 | -targeting_binary_filename $(BR2_OPENPOWER_TARGETING_ECC_FILENAME) \ |
Brian Silver | 137a00a | 2014-11-11 12:09:53 -0600 | [diff] [blame] | 118 | -targeting_binary_source $(BR2_OPENPOWER_TARGETING_BIN_FILENAME) \ |
Mike Baiocchi | 027044e | 2018-11-13 10:15:11 -0600 | [diff] [blame] | 119 | -targeting_RO_binary_filename $(BR2_OPENPOWER_TARGETING_ECC_FILENAME).protected \ |
| 120 | -targeting_RO_binary_source $(BR2_OPENPOWER_TARGETING_BIN_FILENAME).protected \ |
| 121 | -targeting_RW_binary_filename $(BR2_OPENPOWER_TARGETING_ECC_FILENAME).unprotected \ |
| 122 | -targeting_RW_binary_source $(BR2_OPENPOWER_TARGETING_BIN_FILENAME).unprotected \ |
Brian Silver | 137a00a | 2014-11-11 12:09:53 -0600 | [diff] [blame] | 123 | -sbe_binary_filename $(BR2_HOSTBOOT_BINARY_SBE_FILENAME) \ |
Sachin Gupta | df0b6a0 | 2017-03-16 08:59:51 -0500 | [diff] [blame] | 124 | -sbe_binary_dir $(SBE_BINARY_DIR) \ |
Brian Silver | cb56555 | 2014-12-11 12:51:36 -0600 | [diff] [blame] | 125 | -sbec_binary_filename $(BR2_HOSTBOOT_BINARY_SBEC_FILENAME) \ |
Matt Ploetz | af3f64e | 2015-05-14 14:49:55 -0500 | [diff] [blame] | 126 | -wink_binary_filename $(BR2_HOSTBOOT_BINARY_WINK_FILENAME) \ |
Stewart Smith | 03671c0 | 2017-02-17 14:57:57 +1100 | [diff] [blame] | 127 | -occ_binary_filename $(OCC_STAGING_DIR)/$(OCC_BIN_FILENAME) \ |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 128 | -capp_binary_filename $(BINARIES_DIR)/$(BR2_CAPP_UCODE_BIN_FILENAME) \ |
Matt Ploetz | dfd5a47 | 2017-01-19 13:13:55 -0600 | [diff] [blame] | 129 | -ima_catalog_binary_filename $(BINARIES_DIR)/$(BR2_IMA_CATALOG_FILENAME) \ |
Elizabeth Liner | fbd6c45 | 2016-03-31 10:38:17 -0500 | [diff] [blame] | 130 | -openpower_version_filename $(OPENPOWER_PNOR_VERSION_FILE) \ |
Elizabeth Liner | d1a29c1 | 2017-05-15 18:03:21 -0500 | [diff] [blame] | 131 | -wof_binary_filename $(OPENPOWER_MRW_SCRATCH_DIR)/$(BR2_WOFDATA_FILENAME) \ |
Elizabeth Liner | fa06931 | 2017-08-07 23:33:01 -0500 | [diff] [blame] | 132 | -memd_binary_filename $(OPENPOWER_MRW_SCRATCH_DIR)/$(BR2_MEMDDATA_FILENAME) \ |
Elizabeth Liner | fbd6c45 | 2016-03-31 10:38:17 -0500 | [diff] [blame] | 133 | -payload $(BINARIES_DIR)/$(BR2_SKIBOOT_LID_NAME) \ |
Nick Bofferding | 54deceb | 2017-06-28 23:07:35 -0500 | [diff] [blame] | 134 | -payload_filename $(BR2_SKIBOOT_LID_XZ_NAME) \ |
| 135 | -binary_dir $(BINARIES_DIR) \ |
| 136 | -bootkernel_filename $(LINUX_IMAGE_NAME) \ |
Klaus Heinrich Kiwi | 1a083ef | 2020-05-20 15:06:13 -0300 | [diff] [blame] | 137 | -ocmbfw_version $(OCMB_EXPLORER_FW_VERSION) \ |
Klaus Heinrich Kiwi | 01fa05b | 2020-06-17 19:20:33 -0300 | [diff] [blame] | 138 | -ocmbfw_url $(OCMB_EXPLORER_FW_URL) \ |
Bill Hoffa | 128bda4 | 2019-07-10 16:34:55 -0500 | [diff] [blame] | 139 | -ocmbfw_original_filename $(BINARIES_DIR)/$(BR2_OCMBFW_FILENAME) \ |
Bill Hoffa | a48d7fa | 2019-06-10 08:59:10 -0500 | [diff] [blame] | 140 | -ocmbfw_binary_filename $(OPENPOWER_PNOR_SCRATCH_DIR)/$(BR2_OCMBFW_PROCESSED_FILENAME) \ |
Nick Bofferding | 54deceb | 2017-06-28 23:07:35 -0500 | [diff] [blame] | 141 | -pnor_layout $(@D)/"$(OPENPOWER_RELEASE)"Layouts/$(BR2_OPENPOWER_PNOR_XML_LAYOUT_FILENAME) \ |
| 142 | $(XZ_ARG) $(KEY_TRANSITION_ARG) $(SIGN_MODE_ARG) \ |
Bill Hoffa | 5f93f1d | 2014-06-26 21:02:48 -0500 | [diff] [blame] | 143 | |
| 144 | mkdir -p $(STAGING_DIR)/pnor/ |
Brian Silver | 131189b | 2014-11-10 08:11:22 -0600 | [diff] [blame] | 145 | $(TARGET_MAKE_ENV) $(@D)/create_pnor_image.pl \ |
Matt Ploetz | b4d85b1 | 2016-09-29 20:24:14 -0500 | [diff] [blame] | 146 | -release $(OPENPOWER_RELEASE) \ |
| 147 | -xml_layout_file $(@D)/"$(OPENPOWER_RELEASE)"Layouts/$(BR2_OPENPOWER_PNOR_XML_LAYOUT_FILENAME) \ |
Brian Silver | 131189b | 2014-11-10 08:11:22 -0600 | [diff] [blame] | 148 | -pnor_filename $(STAGING_DIR)/pnor/$(BR2_OPENPOWER_PNOR_FILENAME) \ |
| 149 | -hb_image_dir $(HOSTBOOT_IMAGE_DIR) \ |
| 150 | -scratch_dir $(OPENPOWER_PNOR_SCRATCH_DIR) \ |
| 151 | -outdir $(STAGING_DIR)/pnor/ \ |
Nick Bofferding | 54deceb | 2017-06-28 23:07:35 -0500 | [diff] [blame] | 152 | -payload $(OPENPOWER_PNOR_SCRATCH_DIR)/$(BR2_SKIBOOT_LID_XZ_NAME) \ |
| 153 | -bootkernel $(OPENPOWER_PNOR_SCRATCH_DIR)/$(LINUX_IMAGE_NAME) \ |
Brian Silver | 131189b | 2014-11-10 08:11:22 -0600 | [diff] [blame] | 154 | -sbe_binary_filename $(BR2_HOSTBOOT_BINARY_SBE_FILENAME) \ |
| 155 | -sbec_binary_filename $(BR2_HOSTBOOT_BINARY_SBEC_FILENAME) \ |
Matt Ploetz | af3f64e | 2015-05-14 14:49:55 -0500 | [diff] [blame] | 156 | -wink_binary_filename $(BR2_HOSTBOOT_BINARY_WINK_FILENAME) \ |
Stewart Smith | 03671c0 | 2017-02-17 14:57:57 +1100 | [diff] [blame] | 157 | -occ_binary_filename $(OCC_STAGING_DIR)/$(OCC_BIN_FILENAME) \ |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 158 | -targeting_binary_filename $(BR2_OPENPOWER_TARGETING_ECC_FILENAME) \ |
Mike Baiocchi | 027044e | 2018-11-13 10:15:11 -0600 | [diff] [blame] | 159 | -targeting_RO_binary_filename $(BR2_OPENPOWER_TARGETING_ECC_FILENAME).protected \ |
| 160 | -targeting_RW_binary_filename $(BR2_OPENPOWER_TARGETING_ECC_FILENAME).unprotected \ |
Elizabeth Liner | d1a29c1 | 2017-05-15 18:03:21 -0500 | [diff] [blame] | 161 | -wofdata_binary_filename $(OPENPOWER_PNOR_SCRATCH_DIR)/$(BR2_WOFDATA_BINARY_FILENAME) \ |
Elizabeth Liner | fa06931 | 2017-08-07 23:33:01 -0500 | [diff] [blame] | 162 | -memddata_binary_filename $(OPENPOWER_PNOR_SCRATCH_DIR)/$(BR2_MEMDDATA_BINARY_FILENAME) \ |
Bill Hoffa | a48d7fa | 2019-06-10 08:59:10 -0500 | [diff] [blame] | 163 | -ocmbfw_binary_filename $(OPENPOWER_PNOR_SCRATCH_DIR)/$(BR2_OCMBFW_PROCESSED_FILENAME) \ |
Nick Bofferding | c92d451 | 2018-10-10 11:46:46 -0500 | [diff] [blame] | 164 | -openpower_version_filename $(OPENPOWER_PNOR_SCRATCH_DIR)/openpower_pnor_version.bin |
Bill Hoffa | 5f93f1d | 2014-06-26 21:02:48 -0500 | [diff] [blame] | 165 | |
Brian Silver | 131189b | 2014-11-10 08:11:22 -0600 | [diff] [blame] | 166 | $(INSTALL) $(STAGING_DIR)/pnor/$(BR2_OPENPOWER_PNOR_FILENAME) $(BINARIES_DIR) |
Brian Horton | 06c2a88 | 2015-04-09 13:32:55 -0500 | [diff] [blame] | 167 | |
| 168 | # if this config has an UPDATE_FILENAME defined, create a 32M (1/2 size) |
| 169 | # image that only updates the non-golden side |
| 170 | if [ "$(BR2_OPENPOWER_PNOR_UPDATE_FILENAME)" != "" ]; then \ |
| 171 | dd if=$(STAGING_DIR)/pnor/$(BR2_OPENPOWER_PNOR_FILENAME) of=$(STAGING_DIR)/pnor/$(BR2_OPENPOWER_PNOR_UPDATE_FILENAME) bs=32M count=1; \ |
| 172 | $(INSTALL) $(STAGING_DIR)/pnor/$(BR2_OPENPOWER_PNOR_UPDATE_FILENAME) $(BINARIES_DIR); \ |
| 173 | fi |
Charles P. Hofer | 0ca27df | 2017-08-10 14:20:00 -0500 | [diff] [blame] | 174 | |
Lei YU | 98c3c06 | 2019-03-06 16:09:02 +0800 | [diff] [blame] | 175 | # If this is a VPNOR system, run the generate-tar command and |
Charles P. Hofer | 0ca27df | 2017-08-10 14:20:00 -0500 | [diff] [blame] | 176 | # create a tarball |
| 177 | if [ "$(BR2_BUILD_PNOR_SQUASHFS)" == "y" ]; then \ |
Adriana Kobylak | 7577ea3 | 2020-02-07 13:44:16 -0600 | [diff] [blame] | 178 | PATH=$(HOST_DIR)/usr/bin:$(PATH) $(HOST_DIR)/usr/bin/generate-tar -i squashfs -m $(BR2_OPENPOWER_CONFIG_NAME) -f $(STAGING_DIR)/pnor/$(BR2_OPENPOWER_PNOR_FILENAME).squashfs.tar $(STAGING_DIR)/pnor/$(BR2_OPENPOWER_PNOR_FILENAME) -s; \ |
Charles P. Hofer | 0ca27df | 2017-08-10 14:20:00 -0500 | [diff] [blame] | 179 | $(INSTALL) $(STAGING_DIR)/pnor/$(BR2_OPENPOWER_PNOR_FILENAME).squashfs.tar $(BINARIES_DIR); \ |
Lei YU | 98c3c06 | 2019-03-06 16:09:02 +0800 | [diff] [blame] | 180 | else \ |
Adriana Kobylak | 7577ea3 | 2020-02-07 13:44:16 -0600 | [diff] [blame] | 181 | PATH=$(HOST_DIR)/usr/bin:$(PATH) $(HOST_DIR)/usr/bin/generate-tar -i static -m $(BR2_OPENPOWER_CONFIG_NAME) -f $(STAGING_DIR)/pnor/$(BR2_OPENPOWER_PNOR_FILENAME).static.tar.gz $(STAGING_DIR)/pnor/$(BR2_OPENPOWER_PNOR_FILENAME) -s; \ |
Lei YU | 98c3c06 | 2019-03-06 16:09:02 +0800 | [diff] [blame] | 182 | $(INSTALL) $(STAGING_DIR)/pnor/$(BR2_OPENPOWER_PNOR_FILENAME).static.tar.gz $(BINARIES_DIR); \ |
Charles P. Hofer | 0ca27df | 2017-08-10 14:20:00 -0500 | [diff] [blame] | 183 | fi |
Ilya Smirnov | 2e3ba64 | 2017-09-15 12:18:35 -0500 | [diff] [blame] | 184 | |
Bill Hoffa | 70375bd | 2018-08-31 15:53:59 -0500 | [diff] [blame] | 185 | #Create Debug Tarball |
| 186 | mkdir -p $(STAGING_DIR)/pnor/host_fw_debug_tarball_files/ |
| 187 | cp -r $(FILES_TO_TAR) $(STAGING_DIR)/pnor/host_fw_debug_tarball_files/ |
| 188 | tar -zcvf $(OUTPUT_IMAGES_DIR)/host_fw_debug.tar -C $(STAGING_DIR)/pnor/host_fw_debug_tarball_files/ . |
Ilya Smirnov | 2e3ba64 | 2017-09-15 12:18:35 -0500 | [diff] [blame] | 189 | |
Bill Hoffa | 5f93f1d | 2014-06-26 21:02:48 -0500 | [diff] [blame] | 190 | endef |
| 191 | |
| 192 | $(eval $(generic-package)) |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 193 | # Generate openPOWER pnor version string by combining subpackage version string files |
| 194 | $(eval $(call OPENPOWER_VERSION,$(OPENPOWER_PNOR))) |