blob: 3e7c6f18fa797e23884906622dbfe8db03eb9936 [file] [log] [blame]
Bill Hoffa5f93f1d2014-06-26 21:02:48 -05001################################################################################
2#
3# hostboot
4#
5################################################################################
6
Brian Silver137a00a2014-11-11 12:09:53 -06007HOSTBOOT_VERSION ?= 6c5f08212c150d69a931fa4fa1354b6a3aac61e8
Nick Bofferding7b463b12014-11-07 14:27:33 -06008HOSTBOOT_SITE ?= $(call github,open-power,hostboot,$(HOSTBOOT_VERSION))
Brian Silver015b5912014-08-07 15:50:15 -05009
Bill Hoffa5f93f1d2014-06-26 21:02:48 -050010HOSTBOOT_LICENSE = Apache-2.0
11HOSTBOOT_DEPENDENCIES = host-binutils
12
13HOSTBOOT_INSTALL_IMAGES = YES
14HOSTBOOT_INSTALL_TARGET = NO
15
16HOSTBOOT_ENV_VARS=$(TARGET_MAKE_ENV) \
17 CONFIG_FILE=$(BR2_EXTERNAL)/configs/hostboot/$(BR2_HOSTBOOT_CONFIG_FILE) \
Brian Silver131189b2014-11-10 08:11:22 -060018 OPENPOWER_BUILD=1 CROSS_PREFIX=$(TARGET_CROSS) HOST_PREFIX="" HOST_BINUTILS_DIR=$(HOST_BINUTILS_DIR)
Bill Hoffa5f93f1d2014-06-26 21:02:48 -050019
20define HOSTBOOT_BUILD_CMDS
Brian Silver6a3264f2014-07-07 13:04:22 -050021 $(HOSTBOOT_ENV_VARS) bash -c 'cd $(@D) && source ./env.bash && $(MAKE)'
Bill Hoffa5f93f1d2014-06-26 21:02:48 -050022endef
23
24define HOSTBOOT_INSTALL_IMAGES_CMDS
25 cd $(@D) && $(@D)/src/build/tools/hbDistribute --openpower $(STAGING_DIR)/hostboot_build_images/
26endef
27
28$(eval $(generic-package))