Matt Ploetz | 43c30c9 | 2015-02-18 17:17:44 -0600 | [diff] [blame^] | 1 | ################################################################################ |
| 2 | # |
| 3 | # firestone_xml |
| 4 | # |
| 5 | ################################################################################ |
| 6 | |
| 7 | FIRESTONE_XML_VERSION ?= deb3693d8708cc13f369ed6f9a66dc4bf9df4ae8 |
| 8 | FIRESTONE_XML_SITE ?= $(call github,open-power,firestone-xml,$(FIRESTONE_XML_VERSION)) |
| 9 | |
| 10 | FIRESTONE_XML_LICENSE = Apache-2.0 |
| 11 | FIRESTONE_XML_DEPENDENCIES = hostboot-install-images openpower-mrw-install-images common-p8-xml-install-images |
| 12 | |
| 13 | FIRESTONE_XML_INSTALL_IMAGES = YES |
| 14 | FIRESTONE_XML_INSTALL_TARGET = NO |
| 15 | |
| 16 | MRW_SCRATCH=$(STAGING_DIR)/openpower_mrw_scratch |
| 17 | MRW_HB_TOOLS=$(STAGING_DIR)/hostboot_build_images |
| 18 | |
| 19 | define FIRESTONE_XML_BUILD_CMDS |
| 20 | # copy the firestone xml where the common lives |
| 21 | bash -c 'mkdir -p $(MRW_SCRATCH) && cp -r $(@D)/* $(MRW_SCRATCH)' |
| 22 | |
| 23 | # generate the system mrw xml |
| 24 | # Not processing until actaul xml is here |
| 25 | # perl -I $(MRW_HB_TOOLS) \ |
| 26 | # $(MRW_HB_TOOLS)/processMrw.pl -x $(MRW_SCRATCH)/palmetto.xml |
| 27 | endef |
| 28 | |
| 29 | define FIRESTONE_XML_INSTALL_IMAGES_CMDS |
| 30 | |
| 31 | # merge in any system specific attributes, hostboot attributes |
| 32 | $(MRW_HB_TOOLS)/mergexml.sh $(MRW_SCRATCH)/$(BR2_PALMETTO_SYSTEM_XML_FILENAME) \ |
| 33 | $(MRW_HB_TOOLS)/attribute_types.xml \ |
| 34 | $(MRW_HB_TOOLS)/attribute_types_hb.xml \ |
| 35 | $(MRW_HB_TOOLS)/target_types_merged.xml \ |
| 36 | $(MRW_HB_TOOLS)/target_types_hb.xml \ |
| 37 | $(MRW_SCRATCH)/$(BR2_FIRESTONE_MRW_XML_FILENAME) > $(MRW_HB_TOOLS)/temporary_hb.hb.xml; |
| 38 | |
| 39 | # creating the targeting binary |
| 40 | $(MRW_HB_TOOLS)/xmltohb.pl \ |
| 41 | --hb-xml-file=$(MRW_HB_TOOLS)/temporary_hb.hb.xml \ |
| 42 | --fapi-attributes-xml-file=$(MRW_HB_TOOLS)/fapiattrs.xml \ |
| 43 | --src-output-dir=none \ |
| 44 | --img-output-dir=$(MRW_HB_TOOLS)/ \ |
| 45 | --vmm-consts-file=$(MRW_HB_TOOLS)/vmmconst.h --noshort-enums |
| 46 | |
| 47 | mv $(MRW_HB_TOOLS)/targeting.bin $(MRW_HB_TOOLS)/$(BR2_OPENPOWER_TARGETING_BIN_FILENAME) |
| 48 | endef |
| 49 | |
| 50 | $(eval $(generic-package)) |