Brian Silver | cb56555 | 2014-12-11 12:51:36 -0600 | [diff] [blame] | 1 | ################################################################################ |
| 2 | # |
| 3 | # occ |
| 4 | # |
| 5 | ################################################################################ |
| 6 | |
Bill Hoffa | 3ebdb3a | 2015-01-16 13:47:38 -0600 | [diff] [blame] | 7 | OCC_VERSION ?= 0a19fa3049ce60d8d9f5905cd05c1018cbdfb253 |
Brian Silver | cb56555 | 2014-12-11 12:51:36 -0600 | [diff] [blame] | 8 | OCC_SITE ?= $(call github,open-power,occ,$(OCC_VERSION)) |
| 9 | OCC_LICENSE = Apache-2.0 |
Patrick Williams | 01f14c8 | 2014-12-11 19:03:42 -0600 | [diff] [blame] | 10 | OCC_DEPENDENCIES = host-binutils host-p8-pore-binutils |
Brian Silver | cb56555 | 2014-12-11 12:51:36 -0600 | [diff] [blame] | 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)) |