blob: 5fb584059c22ce3a22a8c61bf1c1d97dafd022da [file] [log] [blame]
Stewart Smith03671c02017-02-17 14:57:57 +11001################################################################################
2#
3# hostboot for POWER8
4#
5################################################################################
Mike Baiocchi027044e2018-11-13 10:15:11 -06006HOSTBOOT_P8_VERSION ?= c35645e2d863e37a4356d141713e082505c51e94
Stewart Smith03671c02017-02-17 14:57:57 +11007
8HOSTBOOT_P8_SITE ?= $(call github,open-power,hostboot,$(HOSTBOOT_P8_VERSION))
9
10HOSTBOOT_P8_LICENSE = Apache-2.0
11HOSTBOOT_P8_LICENSE_FILES = LICENSE
12HOSTBOOT_P8_DEPENDENCIES = host-binutils
13
14HOSTBOOT_P8_INSTALL_IMAGES = YES
15HOSTBOOT_P8_INSTALL_TARGET = NO
16
17HOSTBOOT_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
22HOSTBOOT_P8_POST_PATCH_HOOKS += HOSTBOOT_P8_APPLY_PATCHES
23
24define HOSTBOOT_P8_BUILD_CMDS
25 $(HOSTBOOT_P8_ENV_VARS) bash -c 'cd $(@D) && source ./env.bash && $(MAKE)'
26endef
27
28define HOSTBOOT_P8_INSTALL_IMAGES_CMDS
29 cd $(@D) && source ./env.bash && $(@D)/src/build/tools/hbDistribute --openpower $(STAGING_DIR)/hostboot_build_images/
30endef
31
32$(eval $(generic-package))