Nick Bofferding | f390b6f | 2019-10-08 11:55:42 -0500 | [diff] [blame] | 1 | ################################################################################ |
| 2 | # |
| 3 | # Hostboot for POWER10 |
| 4 | # |
| 5 | ################################################################################ |
| 6 | |
| 7 | HOSTBOOT_P10_VERSION = $(call qstrip,$(BR2_HOSTBOOT_P10_VERSION)) |
| 8 | # TODO: WORKAROUND: Need to reenable next line and comment out the two lines |
| 9 | # after that, when code is propagated to a public repo |
| 10 | #HOSTBOOT_P10_SITE ?= $(call github,open-power,hostboot,$(HOSTBOOT_P10_VERSION)) |
Nicholas E Bofferding | bf4fdae | 2019-11-14 00:00:33 -0600 | [diff] [blame] | 11 | HOSTBOOT_P10_SITE ?= git@github.ibm.com:open-power/hostboot.git |
Nick Bofferding | e2293ba | 2019-11-14 14:38:29 -0600 | [diff] [blame] | 12 | HOSTBOOT_P10_SITE_METHOD ?= git |
Nick Bofferding | f390b6f | 2019-10-08 11:55:42 -0500 | [diff] [blame] | 13 | |
| 14 | HOSTBOOT_P10_LICENSE = Apache-2.0 |
| 15 | HOSTBOOT_P10_LICENSE_FILES = LICENSE |
Bill Hoffa | 17ad4d0 | 2019-12-12 11:12:17 -0600 | [diff] [blame] | 16 | HOSTBOOT_P10_DEPENDENCIES = host-binutils fsp-trace |
Nick Bofferding | f390b6f | 2019-10-08 11:55:42 -0500 | [diff] [blame] | 17 | |
| 18 | HOSTBOOT_P10_INSTALL_IMAGES = YES |
| 19 | HOSTBOOT_P10_INSTALL_TARGET = NO |
| 20 | |
| 21 | HOSTBOOT_P10_ENV_VARS=$(TARGET_MAKE_ENV) PERL_USE_UNSAFE_INC=1 \ |
| 22 | CONFIG_FILE=$(BR2_EXTERNAL_OP_BUILD_PATH)/configs/hostboot/$(BR2_HOSTBOOT_P10_CONFIG_FILE) \ |
| 23 | OPENPOWER_BUILD=1 CROSS_PREFIX="$(CCACHE) $(TARGET_CROSS)" HOST_PREFIX="" HOST_BINUTILS_DIR=$(HOST_BINUTILS_DIR) \ |
| 24 | HOSTBOOT_VERSION=`cat $(HOSTBOOT_P10_VERSION_FILE)` |
| 25 | |
Bill Hoffa | 17ad4d0 | 2019-12-12 11:12:17 -0600 | [diff] [blame] | 26 | FSP_TRACE_IMAGES_DIR = $(STAGING_DIR)/fsp-trace/ |
| 27 | |
Nick Bofferding | f390b6f | 2019-10-08 11:55:42 -0500 | [diff] [blame] | 28 | # TODO: WORKAROUND: Currently the git clone causes a bad symlink |
| 29 | # to be created for src/include/usr/tracinterface.H; so delete it and rebuild it |
| 30 | # manually |
| 31 | define HOSTBOOT_P10_BUILD_CMDS |
| 32 | $(HOSTBOOT_P10_ENV_VARS) bash -c 'cd $(@D) && rm -f src/include/usr/tracinterface.H && cp src/include/usr/trace/interface.H src/include/usr/tracinterface.H && source ./env.bash && $(MAKE)' |
| 33 | endef |
| 34 | |
| 35 | define HOSTBOOT_P10_INSTALL_IMAGES_CMDS |
Nicholas E Bofferding | fcdf248 | 2019-11-14 17:54:27 -0600 | [diff] [blame] | 36 | cd $(@D) && $(HOSTBOOT_P10_ENV_VARS) source ./env.bash && $(@D)/src/build/tools/hbDistribute --openpower $(STAGING_DIR)/hostboot_build_images/ |
Bill Hoffa | 17ad4d0 | 2019-12-12 11:12:17 -0600 | [diff] [blame] | 37 | cd $(@D) && $(HOSTBOOT_P10_ENV_VARS) source ./env.bash && $(@D)/src/build/tools/hbDistribute --openpower-sim $(STAGING_DIR)/hostboot_sim_data/ |
| 38 | cp $(FSP_TRACE_IMAGES_DIR)/fsp-trace $(STAGING_DIR)/hostboot_sim_data/ |
| 39 | mkdir -p $(OUTPUT_IMAGES_DIR)/sim/ |
| 40 | tar -zcvf $(OUTPUT_IMAGES_DIR)/sim/hostboot_sim.tar -C $(STAGING_DIR)/hostboot_sim_data/ . |
Nick Bofferding | f390b6f | 2019-10-08 11:55:42 -0500 | [diff] [blame] | 41 | endef |
| 42 | |
| 43 | $(eval $(generic-package)) |