Stewart Smith | 03671c0 | 2017-02-17 14:57:57 +1100 | [diff] [blame] | 1 | ################################################################################ |
| 2 | # |
| 3 | # occ for power8 |
| 4 | # |
| 5 | ################################################################################ |
| 6 | |
hostboot | d51c0c5 | 2019-07-17 02:30:33 -0500 | [diff] [blame] | 7 | OCC_P8_VERSION ?= 28b9f6edc698d19ccb721beaf8de8b786c11f990 |
Stewart Smith | 03671c0 | 2017-02-17 14:57:57 +1100 | [diff] [blame] | 8 | OCC_P8_SITE ?= $(call github,open-power,occ,$(OCC_P8_VERSION)) |
| 9 | OCC_P8_LICENSE = Apache-2.0 |
| 10 | |
| 11 | OCC_P8_LICENSE_FILES = src/LICENSE |
| 12 | |
| 13 | OCC_P8_INSTALL_IMAGES = YES |
| 14 | OCC_P8_INSTALL_TARGET = NO |
| 15 | |
| 16 | OCC_P8_STAGING_DIR = $(STAGING_DIR)/occ |
| 17 | |
| 18 | OCC_P8_IMAGE_BIN_PATH = src/image.bin |
| 19 | OCC_P8_DEPENDENCIES = host-binutils host-p8-pore-binutils |
| 20 | |
| 21 | define OCC_P8_BUILD_CMDS |
| 22 | cd $(@D)/src && \ |
| 23 | make POREPATH=$(P8_PORE_BINUTILS_BIN)/bin/ OCC_OP_BUILD=1 CROSS_PREFIX=$(TARGET_CROSS) all && \ |
| 24 | make tracehash && \ |
| 25 | make combineImage |
| 26 | endef |
| 27 | |
| 28 | OCC_P8_BUILD_CMDS ?= $(OCC_P8_BUILD_CMDS_P8) |
| 29 | |
| 30 | define OCC_P8_INSTALL_IMAGES_CMDS |
| 31 | mkdir -p $(STAGING_DIR)/occ |
| 32 | cp $(@D)/$(OCC_P8_IMAGE_BIN_PATH) $(OCC_P8_STAGING_DIR)/$(BR2_OCC_P8_BIN_FILENAME) |
| 33 | endef |
| 34 | |
| 35 | $(eval $(generic-package)) |