Bill Hoffa | 5f93f1d | 2014-06-26 21:02:48 -0500 | [diff] [blame] | 1 | ################################################################################ |
| 2 | # |
| 3 | # hostboot |
| 4 | # |
| 5 | ################################################################################ |
hostboot | e88868d | 2016-12-01 00:07:25 -0600 | [diff] [blame] | 6 | HOSTBOOT_VERSION_BRANCH_MASTER_P8 ?= e28b28fa9995ab3039b44f2c200fdbbc58313677 |
hostboot | 9c0522c | 2016-12-23 00:07:30 -0600 | [diff] [blame^] | 7 | HOSTBOOT_VERSION_BRANCH_MASTER ?= abc4a878dc90b34f48ec66554776717490fd2efb |
Bill Hoffa | 5f93f1d | 2014-06-26 21:02:48 -0500 | [diff] [blame] | 8 | |
Matt Ploetz | 3a184dd | 2016-08-26 17:21:06 -0500 | [diff] [blame] | 9 | HOSTBOOT_VERSION ?= $(if $(BR2_OPENPOWER_POWER9),$(HOSTBOOT_VERSION_BRANCH_MASTER),$(HOSTBOOT_VERSION_BRANCH_MASTER_P8)) |
Nick Bofferding | 7b463b1 | 2014-11-07 14:27:33 -0600 | [diff] [blame] | 10 | HOSTBOOT_SITE ?= $(call github,open-power,hostboot,$(HOSTBOOT_VERSION)) |
Brian Silver | 015b591 | 2014-08-07 15:50:15 -0500 | [diff] [blame] | 11 | |
Bill Hoffa | 5f93f1d | 2014-06-26 21:02:48 -0500 | [diff] [blame] | 12 | HOSTBOOT_LICENSE = Apache-2.0 |
| 13 | HOSTBOOT_DEPENDENCIES = host-binutils |
| 14 | |
| 15 | HOSTBOOT_INSTALL_IMAGES = YES |
| 16 | HOSTBOOT_INSTALL_TARGET = NO |
| 17 | |
| 18 | HOSTBOOT_ENV_VARS=$(TARGET_MAKE_ENV) \ |
| 19 | CONFIG_FILE=$(BR2_EXTERNAL)/configs/hostboot/$(BR2_HOSTBOOT_CONFIG_FILE) \ |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 20 | OPENPOWER_BUILD=1 CROSS_PREFIX=$(TARGET_CROSS) HOST_PREFIX="" HOST_BINUTILS_DIR=$(HOST_BINUTILS_DIR) \ |
Matt Ploetz | 3a184dd | 2016-08-26 17:21:06 -0500 | [diff] [blame] | 21 | HOSTBOOT_VERSION=`cat $(HOSTBOOT_VERSION_FILE)` |
| 22 | |
| 23 | define HOSTBOOT_APPLY_PATCHES |
| 24 | if [ "$(BR2_OPENPOWER_POWER9)" == "y" ]; then \ |
| 25 | $(APPLY_PATCHES) $(@D) $(BR2_EXTERNAL)/package/hostboot/p9Patches \*.patch; \ |
| 26 | if [ -d $(BR2_EXTERNAL)/custom/patches/hostboot/p9Patches ]; then \ |
| 27 | $(APPLY_PATCHES) $(@D) $(BR2_EXTERNAL)/custom/patches/hostboot/p9Patches \*.patch; \ |
| 28 | fi; \ |
| 29 | fi; \ |
| 30 | if [ "$(BR2_OPENPOWER_POWER8)" == "y" ]; then \ |
| 31 | $(APPLY_PATCHES) $(@D) $(BR2_EXTERNAL)/package/hostboot/p8Patches \*.patch; \ |
| 32 | if [ -d $(BR2_EXTERNAL)/custom/patches/hostboot/p8Patches ]; then \ |
| 33 | $(APPLY_PATCHES) $(@D) $(BR2_EXTERNAL)/custom/patches/hostboot/p8Patches \*.patch; \ |
| 34 | fi; \ |
| 35 | fi; |
| 36 | endef |
| 37 | |
| 38 | HOSTBOOT_POST_PATCH_HOOKS += HOSTBOOT_APPLY_PATCHES |
Bill Hoffa | 5f93f1d | 2014-06-26 21:02:48 -0500 | [diff] [blame] | 39 | |
| 40 | define HOSTBOOT_BUILD_CMDS |
Brian Silver | 6a3264f | 2014-07-07 13:04:22 -0500 | [diff] [blame] | 41 | $(HOSTBOOT_ENV_VARS) bash -c 'cd $(@D) && source ./env.bash && $(MAKE)' |
Bill Hoffa | 5f93f1d | 2014-06-26 21:02:48 -0500 | [diff] [blame] | 42 | endef |
| 43 | |
| 44 | define HOSTBOOT_INSTALL_IMAGES_CMDS |
Stephen Cprek | 2cf08e2 | 2016-07-13 10:38:12 -0500 | [diff] [blame] | 45 | cd $(@D) && source ./env.bash && $(@D)/src/build/tools/hbDistribute --openpower $(STAGING_DIR)/hostboot_build_images/ |
Bill Hoffa | 5f93f1d | 2014-06-26 21:02:48 -0500 | [diff] [blame] | 46 | endef |
| 47 | |
| 48 | $(eval $(generic-package)) |