Bill Hoffa | 5f93f1d | 2014-06-26 21:02:48 -0500 | [diff] [blame] | 1 | ################################################################################ |
| 2 | # |
| 3 | # hostboot |
| 4 | # |
| 5 | ################################################################################ |
| 6 | |
Andrew Geissler | b790d77 | 2015-03-01 21:21:35 -0600 | [diff] [blame] | 7 | HOSTBOOT_VERSION ?= 3593853a4323d9ec7de1ad6502e22b3e66af03ae |
Nick Bofferding | 7b463b1 | 2014-11-07 14:27:33 -0600 | [diff] [blame] | 8 | HOSTBOOT_SITE ?= $(call github,open-power,hostboot,$(HOSTBOOT_VERSION)) |
Brian Silver | 015b591 | 2014-08-07 15:50:15 -0500 | [diff] [blame] | 9 | |
Bill Hoffa | 5f93f1d | 2014-06-26 21:02:48 -0500 | [diff] [blame] | 10 | HOSTBOOT_LICENSE = Apache-2.0 |
| 11 | HOSTBOOT_DEPENDENCIES = host-binutils |
| 12 | |
| 13 | HOSTBOOT_INSTALL_IMAGES = YES |
| 14 | HOSTBOOT_INSTALL_TARGET = NO |
| 15 | |
| 16 | HOSTBOOT_ENV_VARS=$(TARGET_MAKE_ENV) \ |
| 17 | CONFIG_FILE=$(BR2_EXTERNAL)/configs/hostboot/$(BR2_HOSTBOOT_CONFIG_FILE) \ |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame^] | 18 | OPENPOWER_BUILD=1 CROSS_PREFIX=$(TARGET_CROSS) HOST_PREFIX="" HOST_BINUTILS_DIR=$(HOST_BINUTILS_DIR) \ |
| 19 | HOSTBOOT_VERSION=`cat $(HOSTBOOT_VERSION_FILE)` |
Bill Hoffa | 5f93f1d | 2014-06-26 21:02:48 -0500 | [diff] [blame] | 20 | |
| 21 | define HOSTBOOT_BUILD_CMDS |
Brian Silver | 6a3264f | 2014-07-07 13:04:22 -0500 | [diff] [blame] | 22 | $(HOSTBOOT_ENV_VARS) bash -c 'cd $(@D) && source ./env.bash && $(MAKE)' |
Bill Hoffa | 5f93f1d | 2014-06-26 21:02:48 -0500 | [diff] [blame] | 23 | endef |
| 24 | |
| 25 | define HOSTBOOT_INSTALL_IMAGES_CMDS |
| 26 | cd $(@D) && $(@D)/src/build/tools/hbDistribute --openpower $(STAGING_DIR)/hostboot_build_images/ |
| 27 | endef |
| 28 | |
| 29 | $(eval $(generic-package)) |