Brian Silver | cb56555 | 2014-12-11 12:51:36 -0600 | [diff] [blame^] | 1 | ################################################################################ |
| 2 | # |
| 3 | # occ |
| 4 | # |
| 5 | ################################################################################ |
| 6 | |
| 7 | OCC_VERSION ?= 6d6e33e87de7f4413f8a6c4712059d439159fded |
| 8 | OCC_SITE ?= $(call github,open-power,occ,$(OCC_VERSION)) |
| 9 | OCC_LICENSE = Apache-2.0 |
| 10 | OCC_DEPENDENCIES = host-binutils p8-pore-binutils |
| 11 | |
| 12 | OCC_INSTALL_IMAGES = YES |
| 13 | OCC_INSTALL_TARGET = NO |
| 14 | |
| 15 | OCC_STAGING_DIR = $(STAGING_DIR)/occ |
| 16 | |
| 17 | define OCC_BUILD_CMDS |
| 18 | cd $(@D)/src && \ |
| 19 | make POREPATH=$(P8_PORE_BINUTILS_BIN)/bin/ OCC_OP_BUILD=1 CROSS_PREFIX=$(TARGET_CROSS) all && \ |
| 20 | make combineImage |
| 21 | endef |
| 22 | |
| 23 | define OCC_INSTALL_IMAGES_CMDS |
| 24 | mkdir -p $(STAGING_DIR)/occ |
| 25 | cp $(@D)/src/image.bin $(OCC_STAGING_DIR)/$(BR2_OCC_BIN_FILENAME) |
| 26 | endef |
| 27 | |
| 28 | $(eval $(generic-package)) |