Bill Hoffa | 5f93f1d | 2014-06-26 21:02:48 -0500 | [diff] [blame] | 1 | ################################################################################ |
| 2 | # |
| 3 | # hostboot |
| 4 | # |
| 5 | ################################################################################ |
| 6 | |
Brian Silver | 137a00a | 2014-11-11 12:09:53 -0600 | [diff] [blame] | 7 | HOSTBOOT_VERSION ?= 6c5f08212c150d69a931fa4fa1354b6a3aac61e8 |
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) \ |
Brian Silver | 131189b | 2014-11-10 08:11:22 -0600 | [diff] [blame] | 18 | OPENPOWER_BUILD=1 CROSS_PREFIX=$(TARGET_CROSS) HOST_PREFIX="" HOST_BINUTILS_DIR=$(HOST_BINUTILS_DIR) |
Bill Hoffa | 5f93f1d | 2014-06-26 21:02:48 -0500 | [diff] [blame] | 19 | |
| 20 | define HOSTBOOT_BUILD_CMDS |
Brian Silver | 6a3264f | 2014-07-07 13:04:22 -0500 | [diff] [blame] | 21 | $(HOSTBOOT_ENV_VARS) bash -c 'cd $(@D) && source ./env.bash && $(MAKE)' |
Bill Hoffa | 5f93f1d | 2014-06-26 21:02:48 -0500 | [diff] [blame] | 22 | endef |
| 23 | |
| 24 | define HOSTBOOT_INSTALL_IMAGES_CMDS |
| 25 | cd $(@D) && $(@D)/src/build/tools/hbDistribute --openpower $(STAGING_DIR)/hostboot_build_images/ |
| 26 | endef |
| 27 | |
| 28 | $(eval $(generic-package)) |