blob: 3d68d4e884248fa74e1551271e4ff4a88d4b9efd [file] [log] [blame]
Brian Silvercb565552014-12-11 12:51:36 -06001################################################################################
2#
3# occ
4#
5################################################################################
6
7OCC_VERSION ?= 6d6e33e87de7f4413f8a6c4712059d439159fded
8OCC_SITE ?= $(call github,open-power,occ,$(OCC_VERSION))
9OCC_LICENSE = Apache-2.0
10OCC_DEPENDENCIES = host-binutils p8-pore-binutils
11
12OCC_INSTALL_IMAGES = YES
13OCC_INSTALL_TARGET = NO
14
15OCC_STAGING_DIR = $(STAGING_DIR)/occ
16
17define 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
21endef
22
23define OCC_INSTALL_IMAGES_CMDS
24 mkdir -p $(STAGING_DIR)/occ
25 cp $(@D)/src/image.bin $(OCC_STAGING_DIR)/$(BR2_OCC_BIN_FILENAME)
26endef
27
28$(eval $(generic-package))