Stewart Smith | 03671c0 | 2017-02-17 14:57:57 +1100 | [diff] [blame] | 1 | ################################################################################ |
| 2 | # |
| 3 | # hostboot for POWER8 |
| 4 | # |
| 5 | ################################################################################ |
Mike Baiocchi | 027044e | 2018-11-13 10:15:11 -0600 | [diff] [blame^] | 6 | HOSTBOOT_P8_VERSION ?= c35645e2d863e37a4356d141713e082505c51e94 |
Stewart Smith | 03671c0 | 2017-02-17 14:57:57 +1100 | [diff] [blame] | 7 | |
| 8 | HOSTBOOT_P8_SITE ?= $(call github,open-power,hostboot,$(HOSTBOOT_P8_VERSION)) |
| 9 | |
| 10 | HOSTBOOT_P8_LICENSE = Apache-2.0 |
| 11 | HOSTBOOT_P8_LICENSE_FILES = LICENSE |
| 12 | HOSTBOOT_P8_DEPENDENCIES = host-binutils |
| 13 | |
| 14 | HOSTBOOT_P8_INSTALL_IMAGES = YES |
| 15 | HOSTBOOT_P8_INSTALL_TARGET = NO |
| 16 | |
| 17 | HOSTBOOT_P8_ENV_VARS=$(TARGET_MAKE_ENV) \ |
| 18 | CONFIG_FILE=$(BR2_EXTERNAL_OP_BUILD_PATH)/configs/hostboot/$(BR2_HOSTBOOT_P8_CONFIG_FILE) \ |
| 19 | OPENPOWER_BUILD=1 CROSS_PREFIX=$(TARGET_CROSS) HOST_PREFIX="" HOST_BINUTILS_DIR=$(HOST_BINUTILS_DIR) \ |
| 20 | HOSTBOOT_P8_VERSION=`cat $(HOSTBOOT_P8_VERSION_FILE)` |
| 21 | |
| 22 | HOSTBOOT_P8_POST_PATCH_HOOKS += HOSTBOOT_P8_APPLY_PATCHES |
| 23 | |
| 24 | define HOSTBOOT_P8_BUILD_CMDS |
| 25 | $(HOSTBOOT_P8_ENV_VARS) bash -c 'cd $(@D) && source ./env.bash && $(MAKE)' |
| 26 | endef |
| 27 | |
| 28 | define HOSTBOOT_P8_INSTALL_IMAGES_CMDS |
| 29 | cd $(@D) && source ./env.bash && $(@D)/src/build/tools/hbDistribute --openpower $(STAGING_DIR)/hostboot_build_images/ |
| 30 | endef |
| 31 | |
| 32 | $(eval $(generic-package)) |