blob: e38830568a42512c71a143dd20ed0e50e87323ae [file] [log] [blame]
Bill Hoffa5f93f1d2014-06-26 21:02:48 -05001################################################################################
2#
3# hostboot
4#
5################################################################################
6
Andrew Geisslerb790d772015-03-01 21:21:35 -06007HOSTBOOT_VERSION ?= 3593853a4323d9ec7de1ad6502e22b3e66af03ae
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) \
Stephen Cpreke7254c72015-02-19 14:33:38 -060018 OPENPOWER_BUILD=1 CROSS_PREFIX=$(TARGET_CROSS) HOST_PREFIX="" HOST_BINUTILS_DIR=$(HOST_BINUTILS_DIR) \
19 HOSTBOOT_VERSION=`cat $(HOSTBOOT_VERSION_FILE)`
Bill Hoffa5f93f1d2014-06-26 21:02:48 -050020
21define HOSTBOOT_BUILD_CMDS
Brian Silver6a3264f2014-07-07 13:04:22 -050022 $(HOSTBOOT_ENV_VARS) bash -c 'cd $(@D) && source ./env.bash && $(MAKE)'
Bill Hoffa5f93f1d2014-06-26 21:02:48 -050023endef
24
25define HOSTBOOT_INSTALL_IMAGES_CMDS
26 cd $(@D) && $(@D)/src/build/tools/hbDistribute --openpower $(STAGING_DIR)/hostboot_build_images/
27endef
28
29$(eval $(generic-package))